Update TODO
This commit is contained in:
parent
a104a12cc4
commit
f83e7f519d
5 changed files with 18 additions and 2 deletions
|
@ -35,6 +35,7 @@ SDL_Window *window;
|
|||
SDL_Renderer *renderer;
|
||||
SDL_Texture *texture;
|
||||
SDL_Surface *screenSurface;
|
||||
SDL_GameController *sdlController;
|
||||
|
||||
uint8_t running = 1, fullscreen = 1;
|
||||
|
||||
|
@ -184,6 +185,10 @@ int main(int argc, char *argv[])
|
|||
puts("initializing SDL");
|
||||
SDL_Init(SDL_INIT_AUDIO);
|
||||
|
||||
sdlController = SDL_GameControllerOpen(0);
|
||||
|
||||
puts(sdlController ? "found a controller" : "no controller found");
|
||||
|
||||
puts("initializing audio");
|
||||
SDL_AudioSpec audioSpec;
|
||||
SDL_memset(&audioSpec,0,sizeof(audioSpec));
|
||||
|
@ -264,9 +269,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
closeDataFile();
|
||||
|
||||
SDL_GameControllerClose(sdlController);
|
||||
SDL_PauseAudio(1);
|
||||
SDL_CloseAudio();
|
||||
|
||||
SDL_DestroyTexture(texture);
|
||||
SDL_DestroyRenderer(renderer);
|
||||
SDL_DestroyWindow(window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue