frameticks = now;
}
-extern "C" {
- void UndefinedSymbolToExposeStubbedCode(void);
-}
-//#define STUBBED(x) UndefinedSymbolToExposeStubbedCode();
-#define STUBBED(x) { static bool seen = false; if (!seen) { seen = true; fprintf(stderr, "STUBBED: %s at %s:%d\n", x, __FILE__, __LINE__); } }
-//#define STUBBED(x)
-
enum maptypes {
mapkilleveryone, mapgosomewhere,
mapkillsomeone, mapkillmost // These two are unused
bool load_image(const char *file_name, ImageRec &tex)
{
- if (visibleloading)
+ if (visibleloading) {
Game::LoadingScreen();
+ }
- if ( tex.data == NULL )
+ if ( tex.data == NULL ) {
return false;
+ }
const char *ptr = strrchr((char *)file_name, '.');
if (ptr) {
- if (strcasecmp(ptr + 1, "png") == 0)
+ if (strcasecmp(ptr + 1, "png") == 0) {
return load_png(file_name, tex);
- else if (strcasecmp(ptr + 1, "jpg") == 0)
+ } else if (strcasecmp(ptr + 1, "jpg") == 0) {
return load_jpg(file_name, tex);
+ }
}
- STUBBED("Unsupported image type");
+ std::cerr << "Unsupported image type" << std::endl;
return false;
}
{
const char *ptr = strrchr((char *)file_name, '.');
if (ptr) {
- if (strcasecmp(ptr + 1, "png") == 0)
+ if (strcasecmp(ptr + 1, "png") == 0) {
return save_screenshot_png((Folders::getScreenshotDir() + '/' + file_name).c_str());
+ }
}
- STUBBED("Unsupported image type");
+ std::cerr << "Unsupported image type" << std::endl;
return false;
}