aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/background.cpp
diff options
context:
space:
mode:
authorVincent Hamm2007-11-10 17:15:48 +0000
committerVincent Hamm2007-11-10 17:15:48 +0000
commitfaf78d582a2b2e9245f17ab86a3cc326de5c37cf (patch)
treea2f5a5fccb1fa1932453ebd893526964400eb02a /engines/cruise/background.cpp
parent83eec141c8da24fa710c304e0b18ec42381a2b58 (diff)
downloadscummvm-rg350-faf78d582a2b2e9245f17ab86a3cc326de5c37cf.tar.gz
scummvm-rg350-faf78d582a2b2e9245f17ab86a3cc326de5c37cf.tar.bz2
scummvm-rg350-faf78d582a2b2e9245f17ab86a3cc326de5c37cf.zip
-Cleanup strings
-Fix load saves from original interpreter -Add all background merge functions svn-id: r29467
Diffstat (limited to 'engines/cruise/background.cpp')
-rw-r--r--engines/cruise/background.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/cruise/background.cpp b/engines/cruise/background.cpp
index b1ea1ed644..2dd434b180 100644
--- a/engines/cruise/background.cpp
+++ b/engines/cruise/background.cpp
@@ -85,7 +85,7 @@ int loadCVT(uint8 **ptr) {
extern int lastFileSize;
-int loadBackground(char *name, int idx) {
+int loadBackground(const char *name, int idx) {
uint8 *ptr;
uint8 *ptr2;
uint8 *ptrToFree;
@@ -109,15 +109,14 @@ int loadBackground(char *name, int idx) {
}
ptrToFree = gfxModuleData.pPage10;
- if (loadFileSub1(&ptrToFree, (uint8 *) name, NULL) < 0) {
+ if (loadFileSub1(&ptrToFree, name, NULL) < 0) {
if (ptrToFree != gfxModuleData.pPage10)
free(ptrToFree);
return (-18);
}
- if (lastFileSize == 32078 || lastFileSize == 32080
- || lastFileSize == 32034) {
+ if (lastFileSize == 32078 || lastFileSize == 32080 || lastFileSize == 32034) {
colorMode = 0;
} else {
colorMode = 1;
@@ -126,7 +125,7 @@ int loadBackground(char *name, int idx) {
ptr = ptrToFree;
ptr2 = ptrToFree;
- if (!strcmpuint8(name, "LOGO.PI1")) {
+ if (!strcmp(name, "LOGO.PI1")) {
bgVar3 = bgVar2;
bgVar1 = 1;
bgVar2 = 1;
@@ -137,7 +136,7 @@ int loadBackground(char *name, int idx) {
}
}
- if (!strcmpuint8(ptr, "PAL")) {
+ if (!strcmp((char*)ptr, "PAL")) {
printf("Pal loading unsupported !\n");
exit(1);
} else {