mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-05 12:15:19 +02:00
Cleaned up CommonPaths some more and removed BuildCompleteFilename()
This commit is contained in:
+1
-13
@@ -15,7 +15,7 @@
|
||||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#include "CommonPaths.h"
|
||||
#include "Common.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
long parseHexLong(std::string s) {
|
||||
@@ -84,16 +84,4 @@ bool SplitPath(const std::string& full_path, std::string* _pPath, std::string* _
|
||||
*_pExtension = full_path.substr(fname_end);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void BuildCompleteFilename(std::string& _CompleteFilename, const std::string& _Path, const std::string& _Filename)
|
||||
{
|
||||
_CompleteFilename = _Path;
|
||||
|
||||
// check for seperator
|
||||
if (!strchr(DIR_SEP_CHRS, *_CompleteFilename.rbegin()))
|
||||
_CompleteFilename += DIR_SEP;
|
||||
|
||||
// add the filename
|
||||
_CompleteFilename += _Filename;
|
||||
}
|
||||
Reference in New Issue
Block a user