convert residual into multi engine support (not all things done yet, WIP)
This commit is contained in:
parent
207e9f9d42
commit
a4467bd1d0
36 changed files with 780 additions and 1225 deletions
|
@ -36,7 +36,7 @@ Bitmap::Bitmap(const char *filename, const char *data, int len) :
|
|||
Resource(filename) {
|
||||
|
||||
if (len < 8 || memcmp(data, "BM F\0\0\0", 8) != 0) {
|
||||
if (Common::getDebugLevel() == DEBUG_BITMAPS || Common::getDebugLevel() == DEBUG_ERROR || Common::getDebugLevel() == DEBUG_ALL)
|
||||
if (gDebugLevel == DEBUG_BITMAPS || gDebugLevel == DEBUG_ERROR || gDebugLevel == DEBUG_ALL)
|
||||
error("Invalid magic loading bitmap");
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ Bitmap::Bitmap(const char *filename, const char *data, int len) :
|
|||
|
||||
Bitmap::Bitmap(const char *data, int width, int height, const char *filename) :
|
||||
Resource(filename) {
|
||||
if (Common::getDebugLevel() == DEBUG_BITMAPS || Common::getDebugLevel() == DEBUG_NORMAL || Common::getDebugLevel() == DEBUG_ALL)
|
||||
if (gDebugLevel == DEBUG_BITMAPS || gDebugLevel == DEBUG_NORMAL || gDebugLevel == DEBUG_ALL)
|
||||
printf("New bitmap loaded: %s\n", filename);
|
||||
strcpy(_filename, filename);
|
||||
_currImage = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue