testprograms: parse arguments using SDLTest_CommonState

This commit is contained in:
Anonymous Maarten authored and Anonymous Maarten committed 2023-03-17 17:54:16 +01:00
1 parent 8bea41f737
commit 4a6528e3f0
71 files changed
+1516 -389

No files matched your search

+5 -2
View File
@@ -95,9 +95,12 @@ int main(int argc, char *argv[])
if (state == NULL) {
return 1;
}
for (i = 1; i < argc; ++i) {
SDLTest_CommonArg(state, i);
/* Parse commandline */
if (!SDLTest_CommonDefaultArgs(state, argc, argv)) {
return 1;
}
if (!SDLTest_CommonInit(state)) {
return 2;
}