mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-15 22:12:05 +00:00
EXI_SLIPPI: in case the dirpath is deleted after launch (#28)
Co-authored-by: Nikhil Narayana <nikhil.narayana@live.com>
This commit is contained in:
parent
8b17f0cfca
commit
417a890a7e
1 changed files with 6 additions and 0 deletions
|
@ -497,6 +497,12 @@ void CEXISlippi::createNewFile()
|
|||
}
|
||||
|
||||
std::string dirpath = SConfig::GetInstance().m_strSlippiReplayDir;
|
||||
// in case the config value just gets lost somehow
|
||||
if (dirpath.empty())
|
||||
{
|
||||
SConfig::GetInstance().m_strSlippiReplayDir = File::GetHomeDirectory() + DIR_SEP + "Slippi";
|
||||
dirpath = SConfig::GetInstance().m_strSlippiReplayDir;
|
||||
}
|
||||
|
||||
// Remove a trailing / or \\ if the user managed to have that in their config
|
||||
char dirpathEnd = dirpath.back();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue