summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/StringUtil.cpp
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2009-09-04 11:48:49 +0000
committernakeee <nakeee@gmail.com>2009-09-04 11:48:49 +0000
commit81c4982a0a8fbb802319c8695e9fd128f3970de3 (patch)
treeaae43b3277d9dc9d347cbb8ebf8849e7307ef6bd /Source/Core/Common/Src/StringUtil.cpp
parente147b9eb91829453eb226992e3af936aaad3e691 (diff)
Revert accidental change to stringutil
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4198 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/StringUtil.cpp')
-rw-r--r--Source/Core/Common/Src/StringUtil.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/StringUtil.cpp b/Source/Core/Common/Src/StringUtil.cpp
index dbc6f30345..1ab10a2f0c 100644
--- a/Source/Core/Common/Src/StringUtil.cpp
+++ b/Source/Core/Common/Src/StringUtil.cpp
@@ -495,3 +495,10 @@ std::string TabsToSpaces(int tab_size, const std::string &in)
}
return out;
}
+
+std::string PathToFilename(std::string Path)
+{
+ std::string Name, Ending;
+ SplitPath(Path, 0, &Name, &Ending);
+ return Name + Ending;
+}