mirror of
https://github.com/coderkei/akmenu-next.git
synced 2025-06-18 17:05:48 -04:00
launcher: use system file name macro for cheat database
This commit is contained in:
parent
2199c147ae
commit
fcdca80478
@ -18,6 +18,7 @@
|
||||
#include "../flags.h"
|
||||
#include "../inifile.h"
|
||||
#include "../mainlist.h"
|
||||
#include "../systemfilenames.h"
|
||||
#include "ILauncher.h"
|
||||
#include "NdsBootstrapLauncher.h"
|
||||
#include "nds_loader_arm9.h"
|
||||
@ -26,7 +27,7 @@ bool NdsBootstrapLauncher::prepareCheats() {
|
||||
u32 gameCode, crc32;
|
||||
|
||||
if (cCheatWnd::romData(mRomPath, gameCode, crc32)) {
|
||||
FILE* cheatDb = fopen("/__rpg/cheats/usrcheat.dat", "rb");
|
||||
FILE* cheatDb = fopen(SFN_CHEATS, "rb");
|
||||
if (!cheatDb) goto cheat_failed;
|
||||
long cheatOffset;
|
||||
size_t cheatSize;
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include "../dsrom.h"
|
||||
#include "../flags.h"
|
||||
#include "../mainlist.h"
|
||||
#include "../systemfilenames.h"
|
||||
#include "../ui/progresswnd.h"
|
||||
#include "ILauncher.h"
|
||||
#include "TopToyLauncher.h"
|
||||
@ -59,7 +60,7 @@ bool TopToyLauncher::prepareCheats() {
|
||||
u32 gameCode, crc32;
|
||||
|
||||
if (cCheatWnd::romData(mRomPath, gameCode, crc32)) {
|
||||
FILE* cheatDb = fopen("/__rpg/cheats/usrcheat.dat", "rb");
|
||||
FILE* cheatDb = fopen(SFN_CHEATS, "rb");
|
||||
if (!cheatDb) goto cheat_failed;
|
||||
long cheatOffset;
|
||||
size_t cheatSize;
|
||||
|
Loading…
Reference in New Issue
Block a user