Started working on the ObjectStore
This commit is contained in:
1 parent
33066b381e
commit
6b1197bfca
3 files changed
+17
-2
No files matched your search
+3
-2
@@ -1,5 +1,6 @@
|
||||
#include "Game.h"
|
||||
#include "SDL.h"
|
||||
#include "SDL_error.h"
|
||||
#include "SDL_events.h"
|
||||
#include "SDL_pixels.h"
|
||||
#include "Window.h"
|
||||
@@ -21,7 +22,7 @@ bool init_game(const char *game_name, int window_width, int window_height,
|
||||
bool full_screen) {
|
||||
if (SDL_Init(SDL_INIT_EVERYTHING) != 0) {
|
||||
#ifdef DEBUG_ENGINE
|
||||
printf("Failed to initialise game\n");
|
||||
printf("Failed to initialise SDL. Error: %s\n", SDL_GetError());
|
||||
#endif /* DEBUG_ENGINE */
|
||||
|
||||
return false;
|
||||
@@ -30,7 +31,7 @@ bool init_game(const char *game_name, int window_width, int window_height,
|
||||
if (!init_window(&(Game.window), game_name, window_width, window_height,
|
||||
full_screen)) {
|
||||
#ifdef DEBUG_ENGINE
|
||||
printf("Failed to initialise game\n");
|
||||
printf("Failed to initialise window\n");
|
||||
#endif /* DEBUG_ENGINE */
|
||||
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user