diff options
author | Paul Gilbert | 2009-02-14 00:10:51 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-02-14 00:10:51 +0000 |
commit | aa82c6fa7bd5dad43e1f5506714ffc2b6329aac9 (patch) | |
tree | 8f74532a82fecd1705755aa19467233fdb51508b /engines/cruise/cruise_main.cpp | |
parent | ade4313695aaef0274e01dc482359de3f9c2c444 (diff) | |
download | scummvm-rg350-aa82c6fa7bd5dad43e1f5506714ffc2b6329aac9.tar.gz scummvm-rg350-aa82c6fa7bd5dad43e1f5506714ffc2b6329aac9.tar.bz2 scummvm-rg350-aa82c6fa7bd5dad43e1f5506714ffc2b6329aac9.zip |
Changed the list of language dependant strings from being hard-coded to dynamically being loaded from the 'delphine.lng' file
svn-id: r36317
Diffstat (limited to 'engines/cruise/cruise_main.cpp')
-rw-r--r-- | engines/cruise/cruise_main.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/engines/cruise/cruise_main.cpp b/engines/cruise/cruise_main.cpp index 7e6d602079..f44eef6413 100644 --- a/engines/cruise/cruise_main.cpp +++ b/engines/cruise/cruise_main.cpp @@ -58,21 +58,16 @@ void resetRaster(uint8 *rasterPtr, int32 rasterSize) { memset(rasterPtr, 0, rasterSize); } -void drawInfoStringSmallBlackBox(uint8 *string) { - //uint8 buffer[256]; - +void drawInfoStringSmallBlackBox(const char *s) { gfxModuleData_field_90(); gfxModuleData_gfxWaitVSync(); drawBlackSolidBoxSmall(); - drawString(10, 100, string, gfxModuleData.pPage10, titleColor, 300); + drawString(10, 100, (const uint8 *)s, gfxModuleData.pPage10, titleColor, 300); gfxModuleData_flip(); flipScreen(); - - while (1) - ; } void loadPakedFileToMem(int fileIdx, uint8 *buffer) { @@ -751,8 +746,7 @@ void *allocAndZero(int size) { void buildInventory(int X, int Y) { menuStruct *pMenu; - const char **sl = getStringList(); - pMenu = createMenu(X, Y, sl[SL_INVENTORY]); + pMenu = createMenu(X, Y, _vm->langString(ID_INVENTORY)); menuTable[1] = pMenu; if (pMenu == NULL) @@ -1336,6 +1330,11 @@ int processInput(void) { if (keyboardCode == Common::KEYCODE_x) return 1; + // Check for Pause 'P' key + if (keyboardCode == Common::KEYCODE_p) { + drawInfoStringSmallBlackBox(_vm->langString(ID_PAUSED)); + } + if (!userEnabled) { return 0; } |