From 607bbfcef85c488dfefef1ce30a3e614b4adb6e1 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Wed, 31 Jul 2019 23:12:06 +0000 Subject: [PATCH] Remove some debug prints I prefer to only print on error --- src/Draw.cpp | 4 ---- src/Organya.cpp | 1 - 2 files changed, 5 deletions(-) diff --git a/src/Draw.cpp b/src/Draw.cpp index 23913f3c..040c9e24 100644 --- a/src/Draw.cpp +++ b/src/Draw.cpp @@ -260,7 +260,6 @@ static BOOL LoadBitmap(SDL_RWops *fp, Surface_Ids surf_no, BOOL create_surface) Backend_Unlock(surf[surf_no].backend); SDL_FreeSurface(converted_surface); - printf(" ^ Successfully loaded\n"); success = TRUE; } } @@ -292,7 +291,6 @@ static BOOL LoadBitmap_File(const char *name, Surface_Ids surf_no, BOOL create_s } else { - printf("Loading surface (as .pbm) from %s for surface id %d\n", path, surf_no); if (LoadBitmap(fp, surf_no, create_surface)) return TRUE; } @@ -303,7 +301,6 @@ static BOOL LoadBitmap_File(const char *name, Surface_Ids surf_no, BOOL create_s fp = SDL_RWFromFile(path, "rb"); if (fp) { - printf("Loading surface (as .bmp) from %s for surface id %d\n", path, surf_no); if (LoadBitmap(fp, surf_no, create_surface)) return TRUE; } @@ -324,7 +321,6 @@ static BOOL LoadBitmap_Resource(const char *res, Surface_Ids surf_no, BOOL creat // But hey, if I ever need to create an RWops from an array that's -32768 bytes long, they've got me covered! SDL_RWops *fp = SDL_RWFromConstMem(data, size); - printf("Loading surface from resource %s for surface id %d\n", res, surf_no); if (LoadBitmap(fp, surf_no, create_surface)) return TRUE; } diff --git a/src/Organya.cpp b/src/Organya.cpp index 3de9f757..e8305421 100644 --- a/src/Organya.cpp +++ b/src/Organya.cpp @@ -432,7 +432,6 @@ void LoadOrganya(const char *name) memset(now_leng, 0, sizeof(now_leng)); // Open file - printf("Loading org %s\n", name); const unsigned char *p = FindResource(name, "ORG", NULL); // Version Check