Linux: Fixed a bug in SplitPath which made the extension have no period. Fixes Memory cards and other checks. wxWidgets base has a nice cross-platform function for this ;)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@74 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Sonicadvance1 2008-07-24 01:14:12 +00:00
parent 651fdfbdb7
commit 185a214329
2 changed files with 2 additions and 1 deletions

View File

@ -360,6 +360,7 @@ bool SplitPath(const std::string& full_path, std::string* _pPath, std::string* _
if (_pExtension)
{
*_pExtension = full_path.substr(last_dot + 1);
_pExtension->insert(0, ".");
}
else if (_pFilename)
{

View File

@ -144,4 +144,4 @@ bool SCoreStartupParameter::AutoSetup(EBootBios _BootBios)
m_strSRAM = BaseDataPath + "/SRAM.raw";
return true;
}
}