From 9b51b138db7ccc8dbc55ca200f1a4aff688f6d89 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 26 Dec 2011 21:19:29 +0100 Subject: KYRA: Some formatting fixes. --- engines/kyra/staticres.cpp | 147 +++++++++++++++++++++++---------------------- 1 file changed, 74 insertions(+), 73 deletions(-) (limited to 'engines/kyra/staticres.cpp') diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp index cd49b03b53..e2a86d7194 100644 --- a/engines/kyra/staticres.cpp +++ b/engines/kyra/staticres.cpp @@ -288,7 +288,7 @@ void StaticResource::deinit() { unloadId(-1); } -const char * const *StaticResource::loadStrings(int id, int &strings) { +const char *const *StaticResource::loadStrings(int id, int &strings) { return (const char * const *)getData(id, kStringList, strings); } @@ -438,7 +438,7 @@ bool StaticResource::loadStringTable(Common::SeekableReadStream &stream, void *& while ((c = (char)stream.readByte()) != 0) string += c; - output[i] = new char[string.size()+1]; + output[i] = new char[string.size() + 1]; strcpy(output[i], string.c_str()); } @@ -502,10 +502,10 @@ bool StaticResource::loadRoomTable(Common::SeekableReadStream &stream, void *&pt loadTo[i].eastExit = stream.readUint16BE(); loadTo[i].southExit = stream.readUint16BE(); loadTo[i].westExit = stream.readUint16BE(); - memset(&loadTo[i].itemsTable[0], 0xFF, sizeof(byte)*6); - memset(&loadTo[i].itemsTable[6], 0, sizeof(byte)*6); - memset(loadTo[i].itemsXPos, 0, sizeof(uint16)*12); - memset(loadTo[i].itemsYPos, 0, sizeof(uint8)*12); + memset(&loadTo[i].itemsTable[0], 0xFF, sizeof(byte) * 6); + memset(&loadTo[i].itemsTable[6], 0, sizeof(byte) * 6); + memset(loadTo[i].itemsXPos, 0, sizeof(uint16) * 12); + memset(loadTo[i].itemsYPos, 0, sizeof(uint8) * 12); memset(loadTo[i].needInit, 0, sizeof(loadTo[i].needInit)); } @@ -526,9 +526,9 @@ bool StaticResource::loadHofSequenceData(Common::SeekableReadStream &stream, voi tmp_s[i].flags = stream.readUint16BE(); tmp_s[i].wsaFile = new char[14]; - stream.read(const_cast(tmp_s[i].wsaFile), 14); + stream.read(const_cast(tmp_s[i].wsaFile), 14); tmp_s[i].cpsFile = new char[14]; - stream.read(const_cast(tmp_s[i].cpsFile), 14); + stream.read(const_cast(tmp_s[i].cpsFile), 14); tmp_s[i].startupCommand = stream.readByte(); tmp_s[i].finalCommand = stream.readByte(); tmp_s[i].stringIndex1 = stream.readUint16BE(); @@ -552,7 +552,7 @@ bool StaticResource::loadHofSequenceData(Common::SeekableReadStream &stream, voi tmp_n[i].flags = stream.readUint16BE(); tmp_n[i].wsaFile = new char[14]; - stream.read(const_cast(tmp_n[i].wsaFile), 14); + stream.read(const_cast(tmp_n[i].wsaFile), 14); tmp_n[i].startframe = stream.readUint16BE(); tmp_n[i].endFrame = stream.readUint16BE(); tmp_n[i].frameDelay = stream.readUint16BE(); @@ -691,7 +691,7 @@ void StaticResource::freeHofSequenceData(void *&ptr, int &size) { } void StaticResource::freeHofShapeAnimDataV1(void *&ptr, int &size) { - ItemAnimData_v1 *d= (ItemAnimData_v1 *)ptr; + ItemAnimData_v1 *d = (ItemAnimData_v1 *)ptr; for (int i = 0; i < size; i++) delete[] d[i].frames; delete[] d; @@ -700,7 +700,7 @@ void StaticResource::freeHofShapeAnimDataV1(void *&ptr, int &size) { } void StaticResource::freeHofShapeAnimDataV2(void *&ptr, int &size) { - ItemAnimData_v2 *d= (ItemAnimData_v2 *)ptr; + ItemAnimData_v2 *d = (ItemAnimData_v2 *)ptr; for (int i = 0; i < size; i++) delete[] d[i].frames; delete[] d; @@ -800,7 +800,7 @@ void KyraEngine_LoK::initStaticResource() { _roomTable = new Room[_roomTableSize]; assert(_roomTable); - memcpy(_roomTable, tempRoomList, _roomTableSize*sizeof(Room)); + memcpy(_roomTable, tempRoomList, _roomTableSize * sizeof(Room)); tempRoomList = 0; _staticres->unloadId(k1RoomList); @@ -813,7 +813,7 @@ void KyraEngine_LoK::initStaticResource() { _defaultShapeTable = new Shape[_defaultShapeTableSize]; assert(_defaultShapeTable); - memcpy(_defaultShapeTable, tempShapeTable, _defaultShapeTableSize*sizeof(Shape)); + memcpy(_defaultShapeTable, tempShapeTable, _defaultShapeTableSize * sizeof(Shape)); tempShapeTable = 0; _staticres->unloadId(k1DefaultShapes); @@ -874,7 +874,7 @@ void KyraEngine_LoK::loadCharacterShapes() { assert(i < _defaultShapeTableSize); Shape *shape = &_defaultShapeTable[i]; if (shape->imageIndex == 0xFF) { - _shapes[i+7] = 0; + _shapes[i + 7] = 0; continue; } if (shape->imageIndex != curImage) { @@ -882,7 +882,7 @@ void KyraEngine_LoK::loadCharacterShapes() { _screen->loadBitmap(_characterImageTable[shape->imageIndex], 3, 3, 0); curImage = shape->imageIndex; } - _shapes[i+7] = _screen->encodeShape(shape->x<<3, shape->y, shape->w<<3, shape->h, 1); + _shapes[i + 7] = _screen->encodeShape(shape->x << 3, shape->y, shape->w << 3, shape->h, 1); } _screen->_curPage = videoPage; } @@ -893,16 +893,16 @@ void KyraEngine_LoK::loadSpecialEffectShapes() { int currShape; for (currShape = 173; currShape < 183; currShape++) - _shapes[currShape] = _screen->encodeShape((currShape-173) * 24, 0, 24, 24, 1); + _shapes[currShape] = _screen->encodeShape((currShape - 173) * 24, 0, 24, 24, 1); for (currShape = 183; currShape < 190; currShape++) - _shapes[currShape] = _screen->encodeShape((currShape-183) * 24, 24, 24, 24, 1); + _shapes[currShape] = _screen->encodeShape((currShape - 183) * 24, 24, 24, 24, 1); for (currShape = 190; currShape < 201; currShape++) - _shapes[currShape] = _screen->encodeShape((currShape-190) * 24, 48, 24, 24, 1); + _shapes[currShape] = _screen->encodeShape((currShape - 190) * 24, 48, 24, 24, 1); for (currShape = 201; currShape < 206; currShape++) - _shapes[currShape] = _screen->encodeShape((currShape-201) * 16, 106, 16, 16, 1); + _shapes[currShape] = _screen->encodeShape((currShape - 201) * 16, 106, 16, 16, 1); } void KyraEngine_LoK::loadItems() { @@ -917,22 +917,22 @@ void KyraEngine_LoK::loadItems() { _shapes[323 + shape] = _screen->encodeShape((shape - 1) * 32, 0, 32, 17, 0); for (shape = 330; shape <= 334; shape++) - _shapes[shape] = _screen->encodeShape((shape-330) * 32, 102, 32, 17, 0); + _shapes[shape] = _screen->encodeShape((shape - 330) * 32, 102, 32, 17, 0); for (shape = 335; shape <= 339; shape++) - _shapes[shape] = _screen->encodeShape((shape-335) * 32, 17, 32, 17, 0); + _shapes[shape] = _screen->encodeShape((shape - 335) * 32, 17, 32, 17, 0); for (shape = 340; shape <= 344; shape++) - _shapes[shape] = _screen->encodeShape((shape-340) * 32, 34, 32, 17, 0); + _shapes[shape] = _screen->encodeShape((shape - 340) * 32, 34, 32, 17, 0); for (shape = 345; shape <= 349; shape++) - _shapes[shape] = _screen->encodeShape((shape-345) * 32, 51, 32, 17, 0); + _shapes[shape] = _screen->encodeShape((shape - 345) * 32, 51, 32, 17, 0); for (shape = 350; shape <= 354; shape++) - _shapes[shape] = _screen->encodeShape((shape-350) * 32, 68, 32, 17, 0); + _shapes[shape] = _screen->encodeShape((shape - 350) * 32, 68, 32, 17, 0); for (shape = 355; shape <= 359; shape++) - _shapes[shape] = _screen->encodeShape((shape-355) * 32, 85, 32, 17, 0); + _shapes[shape] = _screen->encodeShape((shape - 355) * 32, 85, 32, 17, 0); _screen->loadBitmap("ITEMS.CPS", 3, 3, 0); @@ -944,7 +944,7 @@ void KyraEngine_LoK::loadItems() { if (shape != -1) _shapes[216 + i] = _shapes[216 + shape]; else - _shapes[216 + i] = _screen->encodeShape( (i % 20) * 16, i/20 * 16, 16, 16, 0); + _shapes[216 + i] = _screen->encodeShape((i % 20) * 16, i / 20 * 16, 16, 16, 0); } _res->loadFileToBuf("_ITEM_HT.DAT", &_itemHtDat, sizeof(_itemHtDat)); @@ -1023,7 +1023,7 @@ void KyraEngine_HoF::initStaticResource() { if (tlkfiles && len > 1) { for (int ii = 0; ii < tmpSize; ii++) { if (strlen(tlkfiles[ii]) > 1 && !scumm_stricmp(&seqSoundList[i][1], &tlkfiles[ii][1])) - strcpy(tmpSndLst[i], tlkfiles[ii]); + strcpy(tmpSndLst[i], tlkfiles[ii]); } } @@ -1078,8 +1078,8 @@ void KyraEngine_HoF::initStaticResource() { // setup sequence data _sequences = _staticres->loadHofSequenceData(k2SeqplaySeqData, tmpSize); - static const SeqProc hofSequenceCallbacks[] = { 0, - &KyraEngine_HoF::seq_introWestwood, + static const SeqProc hofSequenceCallbacks[] = { + 0, &KyraEngine_HoF::seq_introWestwood, &KyraEngine_HoF::seq_introTitle, &KyraEngine_HoF::seq_introOverview, &KyraEngine_HoF::seq_introLibrary, &KyraEngine_HoF::seq_introHand, &KyraEngine_HoF::seq_introPoint, &KyraEngine_HoF::seq_introZanfaun, @@ -1125,14 +1125,15 @@ void KyraEngine_HoF::initStaticResource() { _callbackS = #ifdef ENABLE_LOL - _flags.gameID == GI_LOL ? kLoLDemoSequenceCallbacks : + _flags.gameID == GI_LOL ? kLoLDemoSequenceCallbacks : #endif // ENABLE_LOL - ((_flags.isDemo && !_flags.isTalkie) ? hofDemoSequenceCallbacks : hofSequenceCallbacks); + ((_flags.isDemo && !_flags.isTalkie) ? hofDemoSequenceCallbacks : hofSequenceCallbacks); + _callbackN = #ifdef ENABLE_LOL - _flags.gameID == GI_LOL ? kLoLDemoNestedSequenceCallbacks : + _flags.gameID == GI_LOL ? kLoLDemoNestedSequenceCallbacks : #endif // ENABLE_LOL - ((_flags.isDemo && !_flags.isTalkie) ? hofDemoNestedSequenceCallbacks : hofNestedSequenceCallbacks); + ((_flags.isDemo && !_flags.isTalkie) ? hofDemoNestedSequenceCallbacks : hofNestedSequenceCallbacks); } void KyraEngine_MR::initStaticResource() { @@ -1184,7 +1185,7 @@ const ScreenDim Screen_HoF::_screenDimTable[] = { { 0x00, 0x00, 0x28, 0x88, 0xC7, 0xCF, 0x00, 0x00 }, { 0x00, 0x08, 0x28, 0xB8, 0xC7, 0xCF, 0x00, 0x00 }, { 0x01, 0x28, 0x26, 0x46, 0xC7, 0xCC, 0x00, 0x00 }, - { 0x0A, 0x96, 0x14, 0x30, 0x19, 0xF0, 0x00, 0x00 } // menu, just present for current menu code + { 0x0A, 0x96, 0x14, 0x30, 0x19, 0xF0, 0x00, 0x00 } // menu, just present for current menu code }; const int Screen_HoF::_screenDimTableCount = ARRAYSIZE(Screen_HoF::_screenDimTable); @@ -1253,7 +1254,7 @@ void GUI_LoK::initStaticResource() { _menu[0].item[3].callback = quitPlayingFunctor; _menu[0].item[4].callback = BUTTON_FUNCTOR(GUI_LoK, this, &GUI_LoK::resumeGame); - GUI_V1_MENU(_menu[1], -1, -1, 0x140, 0x38, 248, 249, 250, 0, 254,-1, 8, 0, 2, -1, -1, -1, -1); + GUI_V1_MENU(_menu[1], -1, -1, 0x140, 0x38, 248, 249, 250, 0, 254, -1, 8, 0, 2, -1, -1, -1, -1); GUI_V1_MENU_ITEM(_menu[1].item[0], 1, 0, 0, 0, 0x18, 0, 0x1E, 0x48, 0x0F, 252, 253, -1, 255, 248, 249, 250, -1, 0, 0, 0, 0, 0); GUI_V1_MENU_ITEM(_menu[1].item[1], 1, 0, 0, 0, 0xD8, 0, 0x1E, 0x48, 0x0F, 252, 253, -1, 255, 248, 249, 250, -1, 0, 0, 0, 0, 0); _menu[1].item[0].callback = BUTTON_FUNCTOR(GUI_LoK, this, &GUI_LoK::quitConfirmYes); @@ -1346,7 +1347,7 @@ void KyraEngine_LoK::setupButtonData() { _buttonData[i].buttonCallback = amuletFunctor; for (int i = 1; i < 15; ++i) - _buttonDataListPtr[i-1] = &_buttonData[i]; + _buttonDataListPtr[i - 1] = &_buttonData[i]; _buttonDataListPtr[14] = 0; } @@ -1417,7 +1418,7 @@ const char *const KyraEngine_HoF::_languageExtension[] = { "ENG", "FRE", "GER",/*, - "ITA", Italian and Spanish were never included + "ITA", Italian and Spanish were never included "SPA"*/ "JPN", }; @@ -1426,7 +1427,7 @@ const char *const KyraEngine_HoF::_scriptLangExt[] = { "EMC", "FMC", "GMC",/*, - "IMC", Italian and Spanish were never included + "IMC", Italian and Spanish were never included "SMC"*/ "JMC" }; @@ -1605,7 +1606,7 @@ void KyraEngine_HoF::initInventoryButtonList() { GUI_V2_BUTTON(_inventoryButtons[1], 0x2, 0x00, 0, 1, 1, 1, 0x4487, 0, 0x104, 0x90, 0x3C, 0x2C, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); _inventoryButtons[1].buttonCallback = BUTTON_FUNCTOR(KyraEngine_HoF, this, &KyraEngine_HoF::cauldronButton); - GUI_V2_BUTTON(_inventoryButtons[2], 0x5, 0x00, 0, 1, 1, 1, 0x4487, 0, 0x0FA, 0x90, 0x0A, 0x2C, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); + GUI_V2_BUTTON(_inventoryButtons[2], 0x5, 0x00, 0, 1, 1, 1, 0x4487, 0, 0x0FA, 0x90, 0x0A, 0x2C, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); _inventoryButtons[2].buttonCallback = BUTTON_FUNCTOR(KyraEngine_HoF, this, &KyraEngine_HoF::cauldronClearButton); GUI_V2_BUTTON(_inventoryButtons[3], 0x3, 0x00, 0, 1, 1, 1, 0x4487, 0, 0x0CE, 0x90, 0x2C, 0x2C, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); @@ -1639,14 +1640,14 @@ void GUI_HoF::initStaticData() { GUI_V2_BUTTON(_scrollDownButton, 0x18, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0x18, 0x0F, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); for (int i = 0; i < 4; ++i) - GUI_V2_BUTTON(_sliderButtons[0][i], 0x18+i, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0x0A, 0x0E, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); + GUI_V2_BUTTON(_sliderButtons[0][i], 0x18 + i, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0x0A, 0x0E, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); for (int i = 0; i < 4; ++i) - GUI_V2_BUTTON(_sliderButtons[1][i], 0x1C+i, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0x0A, 0x0E, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); + GUI_V2_BUTTON(_sliderButtons[1][i], 0x1C + i, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0x0A, 0x0E, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); for (int i = 0; i < 4; ++i) - GUI_V2_BUTTON(_sliderButtons[2][i], 0x20+i, 0, 0, 0, 0, 0, 0x2200, 0, 0, 0, 0x6E, 0x0E, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); + GUI_V2_BUTTON(_sliderButtons[2][i], 0x20 + i, 0, 0, 0, 0, 0, 0x2200, 0, 0, 0, 0x6E, 0x0E, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); for (uint i = 0; i < ARRAYSIZE(_menuButtons); ++i) - GUI_V2_BUTTON(_menuButtons[i], 0x10+i, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0, 0, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); + GUI_V2_BUTTON(_menuButtons[i], 0x10 + i, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0, 0, 0xC7, 0xCF, 0xC7, 0xCF, 0xC7, 0xCF, 0); Button::Callback clickLoadSlotFunctor = BUTTON_FUNCTOR(GUI_HoF, this, &GUI_HoF::clickLoadSlot); Button::Callback clickSaveSlotFunctor = BUTTON_FUNCTOR(GUI_HoF, this, &GUI_HoF::clickSaveSlot); @@ -1679,7 +1680,7 @@ void GUI_HoF::initStaticData() { _mainMenu.numberOfItems = 6; _mainMenu.item[6].enabled = false; for (int i = 4; i < 6; ++i) - _mainMenu.item[i].callback = _mainMenu.item[i+1].callback; + _mainMenu.item[i].callback = _mainMenu.item[i + 1].callback; _mainMenu.item[3].callback = BUTTON_FUNCTOR(GUI_HoF, this, &GUI_HoF::gameOptions); _mainMenu.item[6].callback = Button::Callback(); _mainMenu.item[5].y = 0x7F; @@ -1781,25 +1782,25 @@ void GUI_HoF::initStaticData() { } const uint16 GUI_HoF::_menuStringsTalkie[] = { - 0x001, 0x002, 0x003, 0x023, 0x004, 0x025, 0x005, 0x006, // Main Menu String IDs - 0x025, 0x000, 0x000, 0x000, 0x010, 0x000, 0x000, 0x000, // Options Menu String IDs - 0x007, 0x000, 0x000, 0x000, 0x010, 0x000, 0x000, 0x000, // Audio Menu String IDs - 0x000, 0x014, 0x013, 0x000, 0x000, 0x000, 0x000, 0x000, // Menu3 Menu String IDs - 0x008, 0x029, 0x02A, 0x02B, 0x02C, 0x02D, 0x00B, 0x000, // Load Menu String IDs - 0x009, 0x029, 0x02A, 0x02B, 0x02C, 0x02D, 0x00B, 0x000, // Save Menu String IDs - 0x00C, 0x00D, 0x00B, 0x000, 0x000, 0x000, 0x000, 0x000, // Menu6 Menu String IDs - 0x00E, 0x002, 0x005, 0x000, 0x000, 0x000, 0x000, 0x000 // Death Menu String IDs + 0x001, 0x002, 0x003, 0x023, 0x004, 0x025, 0x005, 0x006, // Main Menu String IDs + 0x025, 0x000, 0x000, 0x000, 0x010, 0x000, 0x000, 0x000, // Options Menu String IDs + 0x007, 0x000, 0x000, 0x000, 0x010, 0x000, 0x000, 0x000, // Audio Menu String IDs + 0x000, 0x014, 0x013, 0x000, 0x000, 0x000, 0x000, 0x000, // Menu3 Menu String IDs + 0x008, 0x029, 0x02A, 0x02B, 0x02C, 0x02D, 0x00B, 0x000, // Load Menu String IDs + 0x009, 0x029, 0x02A, 0x02B, 0x02C, 0x02D, 0x00B, 0x000, // Save Menu String IDs + 0x00C, 0x00D, 0x00B, 0x000, 0x000, 0x000, 0x000, 0x000, // Menu6 Menu String IDs + 0x00E, 0x002, 0x005, 0x000, 0x000, 0x000, 0x000, 0x000 // Death Menu String IDs }; const uint16 GUI_HoF::_menuStringsOther[] = { - 0x009, 0x00A, 0x00B, 0x001, 0x00C, 0x00D, 0x00E, 0x000, // Main Menu String IDs - 0x00F, 0x02B, 0x02C, 0x02D, 0x02E, 0x018, 0x000, 0x000, // Options Menu String IDs - 0x000, 0x000, 0x000, 0x000, 0x000, 0x000, 0x000, 0x000, // Dummy - 0x000, 0x01C, 0x01B, 0x000, 0x000, 0x000, 0x000, 0x000, // Menu3 Menu String IDs - 0x010, 0x02F, 0x030, 0x031, 0x032, 0x033, 0x013, 0x000, // Load Menu String IDs - 0x011, 0x02F, 0x030, 0x031, 0x032, 0x033, 0x013, 0x000, // Save Menu String IDs - 0x014, 0x015, 0x013, 0x3E8, 0x000, 0x000, 0x000, 0x000, // Menu6 String IDs - 0x016, 0x00A, 0x00D, 0x000, 0x000, 0x000, 0x000, 0x000 // Death Menu String IDs + 0x009, 0x00A, 0x00B, 0x001, 0x00C, 0x00D, 0x00E, 0x000, // Main Menu String IDs + 0x00F, 0x02B, 0x02C, 0x02D, 0x02E, 0x018, 0x000, 0x000, // Options Menu String IDs + 0x000, 0x000, 0x000, 0x000, 0x000, 0x000, 0x000, 0x000, // Dummy + 0x000, 0x01C, 0x01B, 0x000, 0x000, 0x000, 0x000, 0x000, // Menu3 Menu String IDs + 0x010, 0x02F, 0x030, 0x031, 0x032, 0x033, 0x013, 0x000, // Load Menu String IDs + 0x011, 0x02F, 0x030, 0x031, 0x032, 0x033, 0x013, 0x000, // Save Menu String IDs + 0x014, 0x015, 0x013, 0x3E8, 0x000, 0x000, 0x000, 0x000, // Menu6 String IDs + 0x016, 0x00A, 0x00D, 0x000, 0x000, 0x000, 0x000, 0x000 // Death Menu String IDs }; const uint16 KyraEngine_HoF::_itemMagicTable[] = { @@ -1915,20 +1916,20 @@ const char *const KyraEngine_MR::_languageExtension[] = { "TRE", "TRF", "TRG"/*, - "TRI", Italian and Spanish were never included, the supported fan translations are using - "TRS" English/French extensions thus overwriting these languages */ + "TRI", Italian and Spanish were never included, the supported fan translations are using + "TRS" English/French extensions thus overwriting these languages */ }; const int KyraEngine_MR::_languageExtensionSize = ARRAYSIZE(KyraEngine_MR::_languageExtension); -const char * const KyraEngine_MR::_mainMenuSpanishFan[] = { +const char *const KyraEngine_MR::_mainMenuSpanishFan[] = { "Nueva Partida", "Ver Intro", "Restaurar", "Finalizar" }; -const char * const KyraEngine_MR::_mainMenuItalianFan[] = { +const char *const KyraEngine_MR::_mainMenuItalianFan[] = { "Nuova Partita", "Introduzione", "Carica una partita", @@ -2024,13 +2025,13 @@ void KyraEngine_MR::initMainButtonList(bool disable) { Button::Callback buttonInventoryFunctor = BUTTON_FUNCTOR(KyraEngine_MR, this, &KyraEngine_MR::buttonInventory); for (int i = 0; i < 5; ++i) { - GUI_V2_BUTTON(_mainButtonData[i+4], i+5, 0, 0, 0, 0, 0, 0x1100, 0, 67+i*28, 155, 27, 21, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); - _mainButtonData[i+4].buttonCallback = buttonInventoryFunctor; + GUI_V2_BUTTON(_mainButtonData[i + 4], i + 5, 0, 0, 0, 0, 0, 0x1100, 0, 67 + i * 28, 155, 27, 21, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); + _mainButtonData[i + 4].buttonCallback = buttonInventoryFunctor; } for (int i = 0; i < 5; ++i) { - GUI_V2_BUTTON(_mainButtonData[i+9], i+10, 0, 0, 0, 0, 0, 0x1100, 0, 67+i*28, 177, 27, 21, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); - _mainButtonData[i+9].buttonCallback = buttonInventoryFunctor; + GUI_V2_BUTTON(_mainButtonData[i + 9], i + 10, 0, 0, 0, 0, 0, 0x1100, 0, 67 + i * 28, 177, 27, 21, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); + _mainButtonData[i + 9].buttonCallback = buttonInventoryFunctor; } for (int i = 0; i < 14; ++i) @@ -2052,14 +2053,14 @@ void GUI_MR::initStaticData() { GUI_V2_BUTTON(_scrollDownButton, 23, 0, 0, 4, 4, 4, 0x4487, 0, 0, 0, 0x18, 0x0F, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); for (int i = 0; i < 4; ++i) - GUI_V2_BUTTON(_sliderButtons[0][i], 0x18+i, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0x0A, 0x0E, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); + GUI_V2_BUTTON(_sliderButtons[0][i], 0x18 + i, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0x0A, 0x0E, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); for (int i = 0; i < 4; ++i) - GUI_V2_BUTTON(_sliderButtons[1][i], 0x1C+i, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0x0A, 0x0E, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); + GUI_V2_BUTTON(_sliderButtons[1][i], 0x1C + i, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0x0A, 0x0E, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); for (int i = 0; i < 4; ++i) - GUI_V2_BUTTON(_sliderButtons[2][i], 0x20+i, 0, 0, 0, 0, 0, 0x2200, 0, 0, 0, 0x6E, 0x0E, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); + GUI_V2_BUTTON(_sliderButtons[2][i], 0x20 + i, 0, 0, 0, 0, 0, 0x2200, 0, 0, 0, 0x6E, 0x0E, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); for (uint i = 0; i < ARRAYSIZE(_menuButtons); ++i) - GUI_V2_BUTTON(_menuButtons[i], 0x0F+i, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0, 0, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); + GUI_V2_BUTTON(_menuButtons[i], 0x0F + i, 0, 0, 1, 1, 1, 0x4487, 0, 0, 0, 0, 0, 0xFF, 0xF0, 0xFF, 0xF0, 0xFF, 0xF0, 0); Button::Callback clickLoadSlotFunctor = BUTTON_FUNCTOR(GUI_MR, this, &GUI_MR::clickLoadSlot); Button::Callback clickSaveSlotFunctor = BUTTON_FUNCTOR(GUI_MR, this, &GUI_MR::clickSaveSlot); @@ -2158,7 +2159,7 @@ void GUI_MR::initStaticData() { } const int8 KyraEngine_MR::_albumWSAX[] = { - 0, 77, -50, 99, -61, 82, -58, 85, + 0, 77, -50, 99, -61, 82, -58, 85, -64, 80, -63, 88, -63, 88, -64, 0 }; -- cgit v1.2.3