mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 14:49:22 +00:00
CEXIAgp: Don't create save file if path is empty
Fix creation of a ".sav" file in the current working directory on emulation shutdown when a slot is set to "Advance Game Port" and the "GBA Cartridge Path" is empty. Fixes https://bugs.dolphin-emu.org/issues/12975.
This commit is contained in:
parent
f76ab86326
commit
30bd7e18f0
1 changed files with 2 additions and 1 deletions
|
@ -41,6 +41,7 @@ CEXIAgp::~CEXIAgp()
|
||||||
SplitPath(Config::Get(Config::GetInfoForAGPCartPath(m_slot)), &path, &filename, &ext);
|
SplitPath(Config::Get(Config::GetInfoForAGPCartPath(m_slot)), &path, &filename, &ext);
|
||||||
gbapath = path + filename;
|
gbapath = path + filename;
|
||||||
|
|
||||||
|
if (!gbapath.empty())
|
||||||
SaveFileFromEEPROM(gbapath + ".sav");
|
SaveFileFromEEPROM(gbapath + ".sav");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue