mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-11-23 02:59:18 +01:00
Improvements
This commit is contained in:
parent
dfe4a20643
commit
682669c978
@ -0,0 +1,36 @@
|
||||
#include <fatfs/ff.h>
|
||||
#include <libdragon.h>
|
||||
|
||||
#include "rom_patcher.h"
|
||||
|
||||
|
||||
rom_patcher_err_t rom_patcher_load_file (char *path)
|
||||
{
|
||||
// ROM file should be loaded befoe patch is applied.
|
||||
// apply patch dependent on extension.
|
||||
//return apply_patch_type_ips(path);
|
||||
//return apply_patch_type_bps(path);
|
||||
//return apply_patch_type_aps(path);
|
||||
//return apply_patch_type_xdelta(path);
|
||||
return PATCH_ERR_IO;
|
||||
}
|
||||
|
||||
rom_patcher_err_t apply_patch_type_ips(char *path)
|
||||
{
|
||||
return PATCH_ERR_INVALID;
|
||||
}
|
||||
|
||||
rom_patcher_err_t apply_patch_type_bps(char *path)
|
||||
{
|
||||
return PATCH_ERR_INVALID;
|
||||
}
|
||||
|
||||
rom_patcher_err_t apply_patch_type_aps(char *path)
|
||||
{
|
||||
return PATCH_ERR_INVALID;
|
||||
}
|
||||
|
||||
rom_patcher_err_t apply_patch_type_xdelta(char *path)
|
||||
{
|
||||
return PATCH_ERR_UNSUPPORTED;
|
||||
}
|
@ -17,8 +17,9 @@ typedef enum {
|
||||
PATCH_ERR_IO,
|
||||
PATCH_ERR_NO_FILE,
|
||||
PATCH_ERR_INVALID,
|
||||
PATCH_ERR_UNSUPPORTED,
|
||||
} rom_patcher_err_t;
|
||||
|
||||
rom_patcher_err_t rom_patcher_load (char *path);
|
||||
rom_patcher_err_t rom_patcher_load_file (char *path);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user