launcher: use system file name macro for cheat database

This commit is contained in:
lifehackerhansol 2024-11-01 08:41:41 -07:00
parent 2199c147ae
commit fcdca80478
No known key found for this signature in database
GPG Key ID: 80FB184AFC0B3B0E
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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;