mirror of
https://github.com/yawut/SDL.git
synced 2026-09-13 19:45:57 -05:00
Fixed the exec-key option.
This commit is contained in:
@@ -1209,7 +1209,15 @@ ParseOptions(int argc, char *argv[])
|
||||
|
||||
// \todo User given string should be handled as a string
|
||||
// representing a hex digit
|
||||
userExecKey = atoi(execKeyString);
|
||||
//userExecKey = atoi(execKeyString);
|
||||
|
||||
int ret = sscanf(execKeyString, "%llx", &userExecKey);
|
||||
if(ret != 1) {
|
||||
fprintf(stderr, "Error: Failed to parse exec-key option");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
printf("%Lx", userExecKey);
|
||||
}
|
||||
else if(SDL_strcmp(arg, "--test") == 0 || SDL_strcmp(arg, "-t") == 0) {
|
||||
only_selected_test = 1;
|
||||
|
||||
Reference in New Issue
Block a user