testspriteminimal: don't allow any arguments
This commit is contained in:
committed by
Anonymous Maarten
parent
08d5235da0
commit
0268881e30
@@ -103,6 +103,11 @@ int main(int argc, char *argv[])
|
|||||||
/* Enable standard application logging */
|
/* Enable standard application logging */
|
||||||
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
|
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
|
||||||
|
|
||||||
|
if (argc > 1) {
|
||||||
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "USAGE: %s\n", argv[0]);
|
||||||
|
quit(1);
|
||||||
|
}
|
||||||
|
|
||||||
if (SDL_CreateWindowAndRenderer(WINDOW_WIDTH, WINDOW_HEIGHT, 0, &window, &renderer) < 0) {
|
if (SDL_CreateWindowAndRenderer(WINDOW_WIDTH, WINDOW_HEIGHT, 0, &window, &renderer) < 0) {
|
||||||
quit(2);
|
quit(2);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user