mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 17:59:48 +02:00
- updated announcement to use a safer compare and added announcement url to ini files
This commit is contained in:
@@ -121,6 +121,7 @@ void getFullscreenVideoInfo(int &colorBits,int &screenWidth,int &screenHeight);
|
||||
bool changeVideoMode(int resH, int resW, int colorBits, int refreshFrequency);
|
||||
void restoreVideoMode(bool exitingApp=false);
|
||||
|
||||
bool StartsWith(const std::string &str, const std::string &key);
|
||||
bool EndsWith(const string &str, const string& key);
|
||||
|
||||
string replaceAll(string& context, const string& from, const string& to);
|
||||
|
@@ -304,6 +304,10 @@ bool isdir(const char *path)
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool StartsWith(const std::string &str, const std::string &key) {
|
||||
return str.find(key) == 0;
|
||||
}
|
||||
|
||||
bool EndsWith(const string &str, const string& key)
|
||||
{
|
||||
bool result = false;
|
||||
|
Reference in New Issue
Block a user