COMMON: Move isFoo functions to namespace Common, add doxygen comments
This commit is contained in:
parent
658080deed
commit
4f8665fc83
34 changed files with 131 additions and 83 deletions
|
@ -1558,7 +1558,7 @@ void ResourceManager::readResourcePatches() {
|
|||
name = (*x)->getName();
|
||||
|
||||
// SCI1 scheme
|
||||
if (isDigit(name[0])) {
|
||||
if (Common::isDigit(name[0])) {
|
||||
char *end = 0;
|
||||
resourceNr = strtol(name.c_str(), &end, 10);
|
||||
bAdd = (*end == '.'); // Ensure the next character is the period
|
||||
|
@ -1566,7 +1566,7 @@ void ResourceManager::readResourcePatches() {
|
|||
// SCI0 scheme
|
||||
int resname_len = strlen(szResType);
|
||||
if (scumm_strnicmp(name.c_str(), szResType, resname_len) == 0
|
||||
&& !isAlpha(name[resname_len + 1])) {
|
||||
&& !Common::isAlpha(name[resname_len + 1])) {
|
||||
resourceNr = atoi(name.c_str() + resname_len + 1);
|
||||
bAdd = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue