mirror of
https://github.com/glest/glest-source.git
synced 2025-08-09 09:56:30 +02:00
Actual fix for DATADIR
This commit is contained in:
@@ -240,7 +240,7 @@ namespace Shared {
|
||||
bool StartsWith(const std::string &str, const std::string &key);
|
||||
bool EndsWith(const string &str, const string& key);
|
||||
|
||||
void endPathWithSlash(string &path, bool requireOSSlash = false);
|
||||
string endPathWithSlash(string &path, bool requireOSSlash = false);
|
||||
void trimPathWithStartingSlash(string &path);
|
||||
void updatePathClimbingParts(string &path, bool processPreviousDirTokenCheck = true);
|
||||
string formatPath(string path);
|
||||
|
@@ -552,7 +552,7 @@ namespace Shared {
|
||||
return result;
|
||||
}
|
||||
|
||||
void endPathWithSlash(string &path, bool requireOSSlash) {
|
||||
string endPathWithSlash(string &path, bool requireOSSlash) {
|
||||
if (EndsWith(path, "/") == false && EndsWith(path, "\\") == false) {
|
||||
string seperator = "/";
|
||||
if (requireOSSlash == true) {
|
||||
@@ -562,6 +562,7 @@ namespace Shared {
|
||||
}
|
||||
path += seperator;
|
||||
}
|
||||
return path
|
||||
}
|
||||
|
||||
string formatPath(string path) {
|
||||
|
Reference in New Issue
Block a user