diff options
| author | Léo Lam <leo@leolam.fr> | 2020-03-16 22:21:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-16 22:21:15 +0100 |
| commit | 0461170363693efec7d6a8a34baaa5fb2deb8954 (patch) | |
| tree | 2f04fb6f85c99808356b6128dcfd0a36fef87c39 /Source/Core/Common/StringUtil.cpp | |
| parent | d4085382dccac850b96a5d263939c89af85525d1 (diff) | |
| parent | 1b844067aa96f01ea630164f2328b0e16ca6b291 (diff) | |
Merge pull request #8672 from JosJuice/wii-setting-backup
Back up Wii setting.txt and SYSCONF while emulating
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/StringUtil.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index 3afb09873f..c44f3fa7b1 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -322,6 +322,13 @@ bool SplitPath(std::string_view full_path, std::string* path, std::string* filen return true; } +std::string PathToFileName(std::string_view path) +{ + std::string file_name, extension; + SplitPath(path, nullptr, &file_name, &extension); + return file_name + extension; +} + void BuildCompleteFilename(std::string& complete_filename, std::string_view path, std::string_view filename) { |
