mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 03:44:00 +02:00
- added more debug statements to try to track beta bugs
- added safer customization of ini files - added ability to customize game keys - added more error checking for ogg file loading - added faction loader progress - added a few more thread protections on custom menu
This commit is contained in:
@@ -128,5 +128,18 @@ string doubleToStr(double d,int precsion){
|
||||
return str;
|
||||
}
|
||||
|
||||
bool IsNumeric(const char *p, bool allowNegative)
|
||||
{
|
||||
int index = 0;
|
||||
for ( ; *p; p++) {
|
||||
if (*p < '0' || *p > '9') {
|
||||
if(allowNegative == false || (*p != '-' && index == 0)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
index++;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}}//end namespace
|
||||
|
Reference in New Issue
Block a user