diff options
| author | Sonicadvance1 <sonicadvance1@gmail.com> | 2008-07-24 01:14:12 +0000 |
|---|---|---|
| committer | Sonicadvance1 <sonicadvance1@gmail.com> | 2008-07-24 01:14:12 +0000 |
| commit | 185a214329df831bc21dfaddb98c7b3b9aff7427 (patch) | |
| tree | c39bc9f30c13732acd2c5484365a108627d13489 /Source/Core/Common/Src/StringUtil.cpp | |
| parent | 651fdfbdb7305c7e4e95f6a901faa907883fe14f (diff) | |
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
Diffstat (limited to 'Source/Core/Common/Src/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/StringUtil.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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)
{
|
