mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 14:11:15 +02:00
- bugfix for windows users 7z extraction
This commit is contained in:
@@ -471,7 +471,11 @@ bool EndsWith(const string &str, const string& key)
|
||||
|
||||
void endPathWithSlash(string &path) {
|
||||
if(EndsWith(path, "/") == false && EndsWith(path, "\\") == false) {
|
||||
#if defined(WIN32)
|
||||
path += "\\";
|
||||
#else
|
||||
path += "/";
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user