From 185a214329df831bc21dfaddb98c7b3b9aff7427 Mon Sep 17 00:00:00 2001 From: Sonicadvance1 Date: Thu, 24 Jul 2008 01:14:12 +0000 Subject: [PATCH] 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 --- Source/Core/Common/Src/StringUtil.cpp | 1 + Source/Core/Core/Src/CoreParameter.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/Src/StringUtil.cpp b/Source/Core/Common/Src/StringUtil.cpp index 001f6f51ee..7df5164698 100644 --- a/Source/Core/Common/Src/StringUtil.cpp +++ b/Source/Core/Common/Src/StringUtil.cpp @@ -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) { diff --git a/Source/Core/Core/Src/CoreParameter.cpp b/Source/Core/Core/Src/CoreParameter.cpp index 0e76213a6d..2cc2cdf833 100644 --- a/Source/Core/Core/Src/CoreParameter.cpp +++ b/Source/Core/Core/Src/CoreParameter.cpp @@ -144,4 +144,4 @@ bool SCoreStartupParameter::AutoSetup(EBootBios _BootBios) m_strSRAM = BaseDataPath + "/SRAM.raw"; return true; -} \ No newline at end of file +}