Load bios, firmware and melonDS.ini from executable or ~/.config/melonds or AppData

This commit is contained in:
Zion Nimchuk
2018-01-11 14:38:57 -08:00
parent 981661a36d
commit 52df6be5f8
5 changed files with 57 additions and 9 deletions

View File

@ -35,6 +35,7 @@
#include "../SPU.h"
#include "../Wifi.h"
#include "../Platform.h"
#include "../Config.h"
const int kScreenRot[4] = {0, 1, 2, 3};
@ -1047,7 +1048,7 @@ int main(int argc, char** argv)
Config::Load();
if (!_fileexists("bios7.bin") || !_fileexists("bios9.bin") || !_fileexists("firmware.bin"))
if (!Config::HasConfigFile("bios7.bin") || !Config::HasConfigFile("bios9.bin") || !Config::HasConfigFile("firmware.bin"))
{
uiMsgBoxError(
NULL,