[Horus] Model selection screen refactoring

This commit is contained in:
Bertrand Songis
2016-03-09 07:06:51 +01:00
parent 797b4d9f1e
commit f75fedcb0d
23 changed files with 375 additions and 375 deletions
+3 -1
View File
@@ -60,11 +60,13 @@ char * getFileIndex(char * filename, unsigned int & value)
char * pos = getFileExtension(filename);
if (!pos || pos == filename)
return NULL;
int multiplier = 1;
while (pos > filename) {
pos--;
char c = *pos;
if (c >= '0' && c <= '9') {
value = (value * 10) + (c - '\0');
value += multiplier * (c - '0');
multiplier *= 10;
}
else {
return pos+1;