diff options
| author | Dentomologist <dentomologist@gmail.com> | 2025-07-12 13:07:44 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2025-07-12 13:07:44 -0700 |
| commit | 30bd7e18f075b6ccff7db221e2a9d78832d76c16 (patch) | |
| tree | 71a6a0b79bbe88689745d6c3ea6406ee26636f6f /Source/Core | |
| parent | f76ab863266d012281e52bceda355bc72f36edb8 (diff) | |
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.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/HW/EXI/EXI_DeviceAGP.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Core/HW/EXI/EXI_DeviceAGP.cpp b/Source/Core/Core/HW/EXI/EXI_DeviceAGP.cpp index f035003cf0..8b7e62d305 100644 --- a/Source/Core/Core/HW/EXI/EXI_DeviceAGP.cpp +++ b/Source/Core/Core/HW/EXI/EXI_DeviceAGP.cpp @@ -41,7 +41,8 @@ CEXIAgp::~CEXIAgp() SplitPath(Config::Get(Config::GetInfoForAGPCartPath(m_slot)), &path, &filename, &ext); gbapath = path + filename; - SaveFileFromEEPROM(gbapath + ".sav"); + if (!gbapath.empty()) + SaveFileFromEEPROM(gbapath + ".sav"); } void CEXIAgp::CRC8(const u8* data, u32 size) |
