umd-livepatch/main.c
2025-03-26 15:58:14 +01:00

33 lines
759 B
C

/**
* @file main.c
* @author Karim Vergnes <me@thesola.io>
* @copyright GPLv2
* @brief live patch application module for UMD games
*
* This module intercepts read commands from UMD, and selectively replaces them
* with contents from a given rdiff file.
* This allows patches such as translations to be applied to physical media
* without requiring a dump.
*/
#include <pspkernel.h>
#include <string.h>
PSP_MODULE_INFO("umd_livepatch", PSP_MODULE_KERNEL, 0, 8);
int module_found = 0;
int loader_found = 0;
#define MAX_MODULE_NUMBER 256
int module_start(SceSize argc, void *argp)
{
Kprintf("------------------\nUMD Livepatch starting...\n");
#ifdef CUSTOM_PATH
//get_plugin_path(argp);
#endif
}
// vim: ft=c.doxygen