Print useful error message instead of segfaulting when files are not there.
| 31 | |
| 32 | // Print useful error message instead of segfaulting when files are not there. |
| 33 | static void problemLoading(const char* filename) |
| 34 | { |
| 35 | printf("Error while loading: %s\n", filename); |
| 36 | printf( |
| 37 | "Depending on how you compiled you might have to add 'Content/' in front of filenames in " |
| 38 | "MainScene.cpp\n"); |
| 39 | } |
| 40 | |
| 41 | // on "init" you need to initialize your instance |
| 42 | bool MainScene::init() |