mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
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:
parent
651fdfbdb7
commit
185a214329
2 changed files with 2 additions and 1 deletions
|
@ -360,6 +360,7 @@ bool SplitPath(const std::string& full_path, std::string* _pPath, std::string* _
|
||||||
if (_pExtension)
|
if (_pExtension)
|
||||||
{
|
{
|
||||||
*_pExtension = full_path.substr(last_dot + 1);
|
*_pExtension = full_path.substr(last_dot + 1);
|
||||||
|
_pExtension->insert(0, ".");
|
||||||
}
|
}
|
||||||
else if (_pFilename)
|
else if (_pFilename)
|
||||||
{
|
{
|
||||||
|
|
|
@ -144,4 +144,4 @@ bool SCoreStartupParameter::AutoSetup(EBootBios _BootBios)
|
||||||
m_strSRAM = BaseDataPath + "/SRAM.raw";
|
m_strSRAM = BaseDataPath + "/SRAM.raw";
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue