diff --git a/src/main.c b/src/main.c index ee7f6c227..b61627321 100644 --- a/src/main.c +++ b/src/main.c @@ -814,12 +814,12 @@ int main(int argc, char *argv[]) for (i=1; i=48 && tempString[ci]<=57) + { + tempNumberString[ns++] = tempString[ci]; + tempNumberString[ns] = 0; + } + else if(tempString[ci]=='#') + { + okay = 1; + break; + } + else + { + puts("ptsave: invalid save ID"); + break; + } + ci++; + } + if(!tempString[ci]) + { + break; + okay = 1; + } + if(okay) + { + tempSaveID = atoi(tempNumberString); + } + } + if(tempSaveID > 0) + { + puts("Got ptsave:id"); + saveURIOpen = tempSaveID; + } + break; + } } make_kernel();