mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
move config-file seeking code to its own thing.
look also into the same directory as melonDS. make it the preferred place for storing melonDS.ini. rewrite WinMain() wrapper.
This commit is contained in:
@ -30,6 +30,7 @@
|
||||
#include "RTC.h"
|
||||
#include "Wifi.h"
|
||||
#include "Platform.h"
|
||||
#include "melon_fopen.h"
|
||||
|
||||
|
||||
namespace NDS
|
||||
@ -386,7 +387,7 @@ void Reset()
|
||||
dbg_CyclesTimer7 = 0;
|
||||
#endif // DEBUG_CHECK_DESYNC
|
||||
|
||||
f = Config::GetConfigFile("bios9.bin", "rb");
|
||||
f = melon_fopen_local("bios9.bin", "rb");
|
||||
if (!f)
|
||||
{
|
||||
printf("ARM9 BIOS not found\n");
|
||||
@ -403,7 +404,7 @@ void Reset()
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
f = Config::GetConfigFile("bios7.bin", "rb");
|
||||
f = melon_fopen_local("bios7.bin", "rb");
|
||||
if (!f)
|
||||
{
|
||||
printf("ARM7 BIOS not found\n");
|
||||
|
Reference in New Issue
Block a user