mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
patch/gg support, 1.201 release
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@58 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
68cba51e20
commit
b67ef287e7
8 changed files with 456 additions and 8 deletions
|
@ -21,8 +21,9 @@
|
|||
#include "asmutils.h"
|
||||
#include "cpuctrl.h"
|
||||
|
||||
#include "Pico/PicoInt.h"
|
||||
#include "zlib/zlib.h"
|
||||
#include <Pico/PicoInt.h>
|
||||
#include <Pico/Patch.h>
|
||||
#include <zlib/zlib.h>
|
||||
|
||||
|
||||
#ifdef BENCHMARK
|
||||
|
@ -229,6 +230,8 @@ int emu_ReloadRom(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
PicoPatchUnload();
|
||||
|
||||
// check for movie file
|
||||
if(movie_data) {
|
||||
free(movie_data);
|
||||
|
@ -269,6 +272,16 @@ int emu_ReloadRom(void)
|
|||
}
|
||||
get_ext(romFileName, ext);
|
||||
}
|
||||
else if (!strcmp(ext, ".pat")) {
|
||||
int dummy;
|
||||
PicoPatchLoad(romFileName);
|
||||
dummy = try_rfn_cut() || try_rfn_cut();
|
||||
if (!dummy) {
|
||||
sprintf(menuErrorMsg, "Could't find a ROM to patch.");
|
||||
return 0;
|
||||
}
|
||||
get_ext(romFileName, ext);
|
||||
}
|
||||
|
||||
// check for MegaCD image
|
||||
cd_state = cd_check(ext, &used_rom_name);
|
||||
|
@ -351,6 +364,11 @@ int emu_ReloadRom(void)
|
|||
strncpy(currentConfig.lastRomFile, romFileName, sizeof(currentConfig.lastRomFile)-1);
|
||||
currentConfig.lastRomFile[sizeof(currentConfig.lastRomFile)-1] = 0;
|
||||
|
||||
if (PicoPatches) {
|
||||
PicoPatchPrepare();
|
||||
PicoPatchApply();
|
||||
}
|
||||
|
||||
// additional movie stuff
|
||||
if(movie_data) {
|
||||
if(movie_data[0x14] == '6')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue