22 #ifndef KYRA_RESOURCE_H 23 #define KYRA_RESOURCE_H 26 #include "common/scummsys.h" 27 #include "common/str.h" 28 #include "common/file.h" 29 #include "common/list.h" 30 #include "common/hash-str.h" 31 #include "common/hashmap.h" 33 #include "common/stream.h" 34 #include "common/ptr.h" 35 #include "common/archive.h" 37 #include "kyra/kyra_v1.h" 38 #include "kyra/engine/darkmoon.h" 39 #include "kyra/engine/lol.h" 40 #include "kyra/engine/kyra_hof.h" 46 class ResArchiveLoader;
58 void unloadPakFile(
const Common::String &name,
bool remFromCache =
false);
59 void unloadPakFile(
const char *name,
bool remFromCache =
false) { unloadPakFile(
Common::String(name), remFromCache); }
60 void unloadPakFile(
const Common::Path &name,
bool remFromCache =
false) { unloadPakFile(name.
toString(
'/'), remFromCache); }
67 bool loadFileList(
const char *
const *filelist, uint32 numFiles);
71 void unloadAllPakFiles();
75 bool exists(
const Common::Path &file,
bool errorOutOnFail=
false);
81 kPlatformEndianness = 0,
88 bool loadFileToBuf(
const Common::Path &file,
void *buf, uint32 maxSize);
94 ArchiveMap _archiveCache;
106 bool loadProtectedFiles(
const char *
const * list);
108 void initializeLoaders();
113 const bool _bigEndianPlatForm;
147 k1CharacterImageFilenames,
228 k1TownsMusicFadeTable,
236 k1AmigaIntroSFXTable,
239 k1TwoByteFontLookupTable,
243 k2SeqplayCreditsSpecial,
248 k2SeqplayIntroTracks,
249 k2SeqplayFinaleTracks,
252 k2SeqplayShapeAnimData,
259 k2IngameTalkObjIndex,
260 k2IngameTimJpStrings,
261 k2IngameShapeAnimData,
262 k2IngameTlkDemoStrings,
277 #if defined(ENABLE_EOB) || defined(ENABLE_LOL) 278 kRpgCommonMoreStrings,
279 kRpgCommonDscShapeIndex,
281 kRpgCommonDscTileIndex,
282 kRpgCommonDscDoorShapeIndex,
283 kRpgCommonDscDimData1,
284 kRpgCommonDscDimData2,
285 kRpgCommonDscBlockMap,
288 kRpgCommonDscDoorFrameY1,
289 kRpgCommonDscDoorFrameY2,
290 kRpgCommonDscDoorFrameIndex1,
291 kRpgCommonDscDoorFrameIndex2,
292 kRpgCommonDscDoorScaleOffs,
293 kRpgCommonDscBlockIndex,
295 kEoBBaseChargenStrings1,
296 kEoBBaseChargenStrings2,
297 kEoBBaseChargenStartLevels,
298 kEoBBaseChargenStatStrings,
299 kEoBBaseChargenRaceSexStrings,
300 kEoBBaseChargenClassStrings,
301 kEoBBaseChargenAlignmentStrings,
302 kEoBBaseChargenEnterGameStrings,
303 kEoBBaseChargenClassMinStats,
304 kEoBBaseChargenRaceMinStats,
305 kEoBBaseChargenRaceMaxStats,
307 kEoBBaseSaveThrowTable1,
308 kEoBBaseSaveThrowTable2,
309 kEoBBaseSaveThrowTable3,
310 kEoBBaseSaveThrowTable4,
311 kEoBBaseSaveThrwLvlIndex,
312 kEoBBaseSaveThrwModDiv,
313 kEoBBaseSaveThrwModExt,
315 kEoBBasePryDoorStrings,
316 kEoBBaseWarningStrings,
318 kEoBBaseItemSuffixStringsRings,
319 kEoBBaseItemSuffixStringsPotions,
320 kEoBBaseItemSuffixStringsWands,
322 kEoBBaseRipItemStrings,
323 kEoBBaseCursedString,
324 kEoBBaseEnchantedString,
325 kEoBBaseMagicObjectStrings,
326 kEoBBaseMagicObjectString5,
327 kEoBBasePatternSuffix,
328 kEoBBasePatternGrFix1,
329 kEoBBasePatternGrFix2,
330 kEoBBaseValidateArmorString,
331 kEoBBaseValidateCursedString,
332 kEoBBaseValidateNoDropString,
333 kEoBBasePotionStrings,
335 kEoBBaseItemMisuseStrings,
337 kEoBBaseTakenStrings,
338 kEoBBasePotionEffectStrings,
340 kEoBBaseYesNoStrings,
341 kEoBBaseNpcMaxStrings,
343 kEoBBaseNpcJoinStrings,
344 kEoBBaseCancelStrings,
345 kEoBBaseAbortStrings,
347 kEoBBaseMenuStringsMain,
348 kEoBBaseMenuStringsSaveLoad,
349 kEoBBaseMenuStringsOnOff,
350 kEoBBaseMenuStringsSpells,
351 kEoBBaseMenuStringsRest,
352 kEoBBaseMenuStringsDrop,
353 kEoBBaseMenuStringsExit,
354 kEoBBaseMenuStringsStarve,
355 kEoBBaseMenuStringsScribe,
356 kEoBBaseMenuStringsDrop2,
357 kEoBBaseMenuStringsHead,
358 kEoBBaseMenuStringsPoison,
359 kEoBBaseMenuStringsMgc,
360 kEoBBaseMenuStringsPrefs,
361 kEoBBaseMenuStringsRest2,
362 kEoBBaseMenuStringsRest3,
363 kEoBBaseMenuStringsRest4,
364 kEoBBaseMenuStringsDefeat,
365 kEoBBaseMenuStringsTransfer,
366 kEoBBaseMenuStringsSpec,
367 kEoBBaseMenuStringsSpellNo,
368 kEoBBaseMenuYesNoStrings,
370 kEoBBaseSpellLevelsMage,
371 kEoBBaseSpellLevelsCleric,
372 kEoBBaseNumSpellsCleric,
373 kEoBBaseNumSpellsWisAdj,
374 kEoBBaseNumSpellsPal,
375 kEoBBaseNumSpellsMage,
377 kEoBBaseCharGuiStringsHp,
378 kEoBBaseCharGuiStringsWp1,
379 kEoBBaseCharGuiStringsWp2,
380 kEoBBaseCharGuiStringsWr,
381 kEoBBaseCharGuiStringsSt1,
382 kEoBBaseCharGuiStringsSt2,
383 kEoBBaseCharGuiStringsIn,
385 kEoBBaseCharStatusStrings7,
386 kEoBBaseCharStatusStrings81,
387 kEoBBaseCharStatusStrings82,
388 kEoBBaseCharStatusStrings9,
389 kEoBBaseCharStatusStrings12,
390 kEoBBaseCharStatusStrings131,
391 kEoBBaseCharStatusStrings132,
393 kEoBBaseLevelGainStrings,
394 kEoBBaseExperienceTable0,
395 kEoBBaseExperienceTable1,
396 kEoBBaseExperienceTable2,
397 kEoBBaseExperienceTable3,
398 kEoBBaseExperienceTable4,
400 kEoBBaseClassModifierFlags,
402 kEoBBaseMonsterStepTable01,
403 kEoBBaseMonsterStepTable02,
404 kEoBBaseMonsterStepTable1,
405 kEoBBaseMonsterStepTable2,
406 kEoBBaseMonsterStepTable3,
407 kEoBBaseMonsterCloseAttPosTable1,
408 kEoBBaseMonsterCloseAttPosTable21,
409 kEoBBaseMonsterCloseAttPosTable22,
410 kEoBBaseMonsterCloseAttUnkTable,
411 kEoBBaseMonsterCloseAttChkTable1,
412 kEoBBaseMonsterCloseAttChkTable2,
413 kEoBBaseMonsterCloseAttDstTable1,
414 kEoBBaseMonsterCloseAttDstTable2,
416 kEoBBaseMonsterProximityTable,
417 kEoBBaseFindBlockMonstersTable,
418 kEoBBaseMonsterDirChangeTable,
419 kEoBBaseMonsterDistAttStrings,
421 kEoBBaseEncodeMonsterDefs,
422 kEoBBaseEncodeMonsterDefs00,
423 kEoBBaseEncodeMonsterDefs01,
424 kEoBBaseEncodeMonsterDefs02,
425 kEoBBaseEncodeMonsterDefs03,
426 kEoBBaseEncodeMonsterDefs04,
427 kEoBBaseEncodeMonsterDefs05,
428 kEoBBaseEncodeMonsterDefs06,
429 kEoBBaseEncodeMonsterDefs07,
430 kEoBBaseEncodeMonsterDefs08,
431 kEoBBaseEncodeMonsterDefs09,
432 kEoBBaseEncodeMonsterDefs10,
433 kEoBBaseEncodeMonsterDefs11,
434 kEoBBaseEncodeMonsterDefs12,
435 kEoBBaseEncodeMonsterDefs13,
436 kEoBBaseEncodeMonsterDefs14,
437 kEoBBaseEncodeMonsterDefs15,
438 kEoBBaseEncodeMonsterDefs16,
439 kEoBBaseEncodeMonsterDefs17,
440 kEoBBaseEncodeMonsterDefs18,
441 kEoBBaseEncodeMonsterDefs19,
442 kEoBBaseEncodeMonsterDefs20,
443 kEoBBaseEncodeMonsterDefs21,
445 kEoBBaseNpcPresetsNames,
447 kEoBBaseWllFlagPreset,
448 kEoBBaseDscShapeCoords,
450 kEoBBaseDscDoorScaleMult1,
451 kEoBBaseDscDoorScaleMult2,
452 kEoBBaseDscDoorScaleMult3,
453 kEoBBaseDscDoorScaleMult4,
454 kEoBBaseDscDoorScaleMult5,
455 kEoBBaseDscDoorScaleMult6,
456 kEoBBaseDscDoorType5Offs,
464 kEoBBaseDscDoorCoordsExt,
466 kEoBBaseDscItemPosIndex,
468 kEoBBaseDscItemScaleIndex,
469 kEoBBaseDscItemTileIndex,
470 kEoBBaseDscItemShapeMap,
472 kEoBBaseDscMonsterFrmOffsTbl1,
473 kEoBBaseDscMonsterFrmOffsTbl2,
477 kEoBBaseSlotValidationFlags,
479 kEoBBaseProjectileWeaponTypes,
482 kEoBBaseDrawObjPosIndex,
483 kEoBBaseFlightObjFlipIndex,
484 kEoBBaseFlightObjShpMap,
485 kEoBBaseFlightObjSclIndex,
487 kEoBBaseDscTelptrShpCoords,
489 kEoBBasePortalSeqData,
495 kEoBBaseMageSpellsList,
496 kEoBBaseClericSpellsList,
497 kEoBBaseMageSpellsList2,
498 kEoBBaseClericSpellsList2,
500 kEoBBaseMagicStrings1,
501 kEoBBaseMagicStrings2,
502 kEoBBaseMagicStrings3,
503 kEoBBaseMagicStrings4,
504 kEoBBaseMagicStrings6,
505 kEoBBaseMagicStrings7,
506 kEoBBaseMagicStrings8,
507 kEoBBaseMagicStrings9,
509 kEoBBaseExpObjectTlMode,
510 kEoBBaseExpObjectTblIndex,
511 kEoBBaseExpObjectShpStart,
512 kEoBBaseExpObjectTbl1,
513 kEoBBaseExpObjectTbl2,
514 kEoBBaseExpObjectTbl3,
517 kEoBBaseSparkDefSteps,
518 kEoBBaseSparkDefSubSteps,
519 kEoBBaseSparkDefShift,
523 kEoBBaseSparkOfFlags1,
524 kEoBBaseSparkOfFlags2,
525 kEoBBaseSparkOfShift,
529 kEoBBaseSpellProperties,
530 kEoBBaseMagicFlightProps,
531 kEoBBaseTurnUndeadEffect,
532 kEoBBaseBurningHandsDest,
533 kEoBBaseConeOfColdDest1,
534 kEoBBaseConeOfColdDest2,
535 kEoBBaseConeOfColdDest3,
536 kEoBBaseConeOfColdDest4,
537 kEoBBaseConeOfColdGfxTbl,
540 kEoBBaseSoundFilesIntro,
541 kEoBBaseSoundFilesIngame,
542 kEoBBaseSoundFilesFinale,
543 kEoBBaseLevelSounds1,
544 kEoBBaseLevelSounds2,
546 kEoBBaseTextInputCharacterLines,
547 kEoBBaseTextInputSelectStrings,
549 kEoBBaseSaveNamePatterns,
551 kEoB1DefaultPartyStats,
552 kEoB1DefaultPartyNames,
553 kEoB1MainMenuStrings,
556 kEoB1IntroFilesOpening,
557 kEoB1IntroFilesTower,
559 kEoB1IntroFilesWdEntry,
561 kEoB1IntroFilesHands,
562 kEoB1IntroFilesWdExit,
563 kEoB1IntroFilesTunnel,
565 kEoB1IntroStringsTower,
566 kEoB1IntroStringsOrb,
567 kEoB1IntroStringsWdEntry,
568 kEoB1IntroStringsKing,
569 kEoB1IntroStringsHands,
570 kEoB1IntroStringsWdExit,
571 kEoB1IntroStringsTunnel,
575 kEoB1IntroOpeningFrmDelay,
578 kEoB1IntroWdEncodeWH,
587 kEoB1IntroOrbFadePal,
589 kEoB1FinaleCouncilAnim1,
590 kEoB1FinaleCouncilAnim2,
591 kEoB1FinaleCouncilAnim3,
592 kEoB1FinaleCouncilAnim4,
594 kEoB1FinaleHandsAnim,
595 kEoB1FinaleHandsAnim2,
596 kEoB1FinaleHandsAnim3,
597 kEoB1FinaleTextDuration,
599 kEoB1CreditsCharWdth,
601 kEoB1CreditsStrings2,
602 kEoB1CreditsTileGrid,
605 kEoB1DoorSwitchShapeDefs,
606 kEoB1DoorSwitchCoords,
607 kEoB1MonsterProperties,
609 kEoB1EnemyMageSpellList,
611 kEoB1BeholderSpellList,
613 kEoB1TurnUndeadString,
615 kEoB1CgaMappingDefault,
618 kEoB1CgaMappingItemsL,
619 kEoB1CgaMappingItemsS,
620 kEoB1CgaMappingThrown,
621 kEoB1CgaMappingIcons,
623 kEoB1CgaLevelMappingIndex,
624 kEoB1CgaMappingLevel0,
625 kEoB1CgaMappingLevel1,
626 kEoB1CgaMappingLevel2,
627 kEoB1CgaMappingLevel3,
628 kEoB1CgaMappingLevel4,
641 kEoB1PatternAddTable1,
642 kEoB1PatternAddTable2,
644 kEoB1MonsterAnimFrames00,
645 kEoB1MonsterAnimFrames01,
646 kEoB1MonsterAnimFrames02,
647 kEoB1MonsterAnimFrames03,
648 kEoB1MonsterAnimFrames04,
649 kEoB1MonsterAnimFrames05,
650 kEoB1MonsterAnimFrames06,
651 kEoB1MonsterAnimFrames07,
652 kEoB1MonsterAnimFrames08,
653 kEoB1MonsterAnimFrames09,
654 kEoB1MonsterAnimFrames10,
655 kEoB1MonsterAnimFrames11,
656 kEoB1MonsterAnimFrames12,
657 kEoB1MonsterAnimFrames13,
658 kEoB1MonsterAnimFrames14,
659 kEoB1MonsterAnimFrames15,
660 kEoB1MonsterAnimFrames16,
661 kEoB1MonsterAnimFrames17,
662 kEoB1MonsterAnimFrames18,
663 kEoB1MonsterAnimFrames19,
664 kEoB1MonsterAnimFrames20,
665 kEoB1MonsterAnimFrames21,
666 kEoB1MonsterAnimFrames22,
667 kEoB1MonsterAnimFrames23,
668 kEoB1MonsterAnimFrames24,
669 kEoB1MonsterAnimFrames25,
670 kEoB1MonsterAnimFrames26,
671 kEoB1MonsterAnimFrames27,
672 kEoB1MonsterAnimFrames28,
673 kEoB1MonsterAnimFrames29,
674 kEoB1MonsterAnimFrames30,
675 kEoB1MonsterAnimFrames31,
676 kEoB1MonsterAnimFrames32,
677 kEoB1MonsterAnimFrames33,
678 kEoB1MonsterAnimFrames34,
679 kEoB1MonsterAnimFrames35,
680 kEoB1MonsterAnimFrames36,
681 kEoB1MonsterAnimFrames37,
682 kEoB1MonsterAnimFrames38,
683 kEoB1MonsterAnimFrames39,
684 kEoB1MonsterAnimFrames40,
685 kEoB1MonsterAnimFrames41,
686 kEoB1MonsterAnimFrames42,
687 kEoB1MonsterAnimFrames43,
688 kEoB1MonsterAnimFrames44,
689 kEoB1MonsterAnimFrames45,
690 kEoB1MonsterAnimFrames46,
691 kEoB1MonsterAnimFrames47,
692 kEoB1MonsterAnimFrames48,
693 kEoB1MonsterAnimFrames49,
694 kEoB1MonsterAnimFrames50,
695 kEoB1MonsterAnimFrames51,
696 kEoB1MonsterAnimFrames52,
697 kEoB1MonsterAnimFrames53,
698 kEoB1MonsterAnimFrames54,
699 kEoB1MonsterAnimFrames55,
700 kEoB1MonsterAnimFrames56,
701 kEoB1MonsterAnimFrames57,
702 kEoB1MonsterAnimFrames58,
703 kEoB1MonsterAnimFrames59,
704 kEoB1MonsterAnimFrames60,
705 kEoB1MonsterAnimFrames61,
706 kEoB1MonsterAnimFrames62,
707 kEoB1MonsterAnimFrames63,
708 kEoB1MonsterAnimFrames64,
709 kEoB1MonsterAnimFrames65,
710 kEoB1MonsterAnimFrames66,
711 kEoB1MonsterAnimFrames67,
712 kEoB1MonsterAnimFrames68,
713 kEoB1MonsterAnimFrames69,
714 kEoB1MonsterAnimFrames70,
715 kEoB1MonsterAnimFrames71,
716 kEoB1MonsterAnimFrames72,
717 kEoB1MonsterAnimFrames73,
718 kEoB1MonsterAnimFrames74,
719 kEoB1MonsterAnimFrames75,
720 kEoB1MonsterAnimFrames76,
721 kEoB1MonsterAnimFrames77,
722 kEoB1MonsterAnimFrames78,
723 kEoB1MonsterAnimFrames79,
724 kEoB1MonsterAnimFrames80,
725 kEoB1MonsterAnimFrames81,
726 kEoB1MonsterAnimFrames82,
727 kEoB1MonsterAnimFrames83,
728 kEoB1MonsterAnimFrames84,
729 kEoB1MonsterAnimFrames85,
730 kEoB1MonsterAnimFrames86,
731 kEoB1MonsterAnimFrames87,
732 kEoB1MonsterAnimFrames88,
733 kEoB1MonsterAnimFrames89,
734 kEoB1MonsterAnimFrames90,
735 kEoB1MonsterAnimFrames91,
736 kEoB1MonsterAnimFrames92,
737 kEoB1MonsterAnimFrames93,
738 kEoB1MonsterAnimFrames94,
739 kEoB1MonsterAnimFrames95,
740 kEoB1MonsterAnimFrames96,
741 kEoB1MonsterAnimFrames97,
742 kEoB1MonsterAnimFrames98,
743 kEoB1MonsterAnimFrames99,
744 kEoB1MonsterAnimFrames100,
745 kEoB1MonsterAnimFrames101,
746 kEoB1MonsterAnimFrames102,
747 kEoB1MonsterAnimFrames103,
748 kEoB1MonsterAnimFrames104,
749 kEoB1MonsterAnimFrames105,
750 kEoB1MonsterAnimFrames106,
751 kEoB1MonsterAnimFrames107,
752 kEoB1MonsterAnimFrames108,
753 kEoB1MonsterAnimFrames109,
756 kEoB1NpcSubShpIndex1,
757 kEoB1NpcSubShpIndex2,
771 kEoB1ParchmentStrings,
775 kEoB1SequenceTrackMap,
782 kEoB1Ascii2SjisTable1,
783 kEoB1Ascii2SjisTable2,
784 kEoB1FontLookupTable,
785 kEoB1CharWidthTable1,
786 kEoB1CharWidthTable2,
787 kEoB1CharWidthTable3,
790 kEoB2MainMenuStrings,
791 kEoB2MainMenuUtilStrings,
793 kEoB2TransferPortraitFrames,
794 kEoB2TransferConvertTable,
795 kEoB2TransferItemTable,
796 kEoB2TransferExpTable,
797 kEoB2TransferStrings1,
798 kEoB2TransferStrings2,
803 kEoB2IntroAnimData00,
804 kEoB2IntroAnimData01,
805 kEoB2IntroAnimData02,
806 kEoB2IntroAnimData03,
807 kEoB2IntroAnimData04,
808 kEoB2IntroAnimData05,
809 kEoB2IntroAnimData06,
810 kEoB2IntroAnimData07,
811 kEoB2IntroAnimData08,
812 kEoB2IntroAnimData09,
813 kEoB2IntroAnimData10,
814 kEoB2IntroAnimData11,
815 kEoB2IntroAnimData12,
816 kEoB2IntroAnimData13,
817 kEoB2IntroAnimData14,
818 kEoB2IntroAnimData15,
819 kEoB2IntroAnimData16,
820 kEoB2IntroAnimData17,
821 kEoB2IntroAnimData18,
822 kEoB2IntroAnimData19,
823 kEoB2IntroAnimData20,
824 kEoB2IntroAnimData21,
825 kEoB2IntroAnimData22,
826 kEoB2IntroAnimData23,
827 kEoB2IntroAnimData24,
828 kEoB2IntroAnimData25,
829 kEoB2IntroAnimData26,
830 kEoB2IntroAnimData27,
831 kEoB2IntroAnimData28,
832 kEoB2IntroAnimData29,
833 kEoB2IntroAnimData30,
834 kEoB2IntroAnimData31,
835 kEoB2IntroAnimData32,
836 kEoB2IntroAnimData33,
837 kEoB2IntroAnimData34,
838 kEoB2IntroAnimData35,
839 kEoB2IntroAnimData36,
840 kEoB2IntroAnimData37,
841 kEoB2IntroAnimData38,
842 kEoB2IntroAnimData39,
843 kEoB2IntroAnimData40,
844 kEoB2IntroAnimData41,
845 kEoB2IntroAnimData42,
846 kEoB2IntroAnimData43,
849 kEoB2IntroAnimData44,
850 kEoB2IntroAnimData45,
851 kEoB2IntroAnimData46,
852 kEoB2IntroAnimData47,
865 kEoB2FinaleAnimData00,
866 kEoB2FinaleAnimData01,
867 kEoB2FinaleAnimData02,
868 kEoB2FinaleAnimData03,
869 kEoB2FinaleAnimData04,
870 kEoB2FinaleAnimData05,
871 kEoB2FinaleAnimData06,
872 kEoB2FinaleAnimData07,
873 kEoB2FinaleAnimData08,
874 kEoB2FinaleAnimData09,
875 kEoB2FinaleAnimData10,
876 kEoB2FinaleAnimData11,
877 kEoB2FinaleAnimData12,
878 kEoB2FinaleAnimData13,
879 kEoB2FinaleAnimData14,
880 kEoB2FinaleAnimData15,
881 kEoB2FinaleAnimData16,
882 kEoB2FinaleAnimData17,
883 kEoB2FinaleAnimData18,
884 kEoB2FinaleAnimData19,
885 kEoB2FinaleAnimData20,
895 kEoB2MonsterDustStrings,
898 kEoB2KheldranStrings,
904 kEoB2WallOfForceNumW,
905 kEoB2WallOfForceNumH,
906 kEoB2WallOfForceShpId,
908 kEoB2IntroCpsDataStreet1,
909 kEoB2IntroCpsDataStreet2,
910 kEoB2IntroCpsDataDoorway1,
911 kEoB2IntroCpsDataDoorway2,
912 kEoB2IntroCpsDataWestwood,
913 kEoB2IntroCpsDataWinding,
914 kEoB2IntroCpsDataKhelban2,
915 kEoB2IntroCpsDataKhelban1,
916 kEoB2IntroCpsDataKhelban3,
917 kEoB2IntroCpsDataKhelban4,
918 kEoB2IntroCpsDataCoin,
919 kEoB2IntroCpsDataKhelban5,
920 kEoB2IntroCpsDataKhelban6,
922 kEoB2FinaleCpsDataDragon1,
923 kEoB2FinaleCpsDataDragon2,
924 kEoB2FinaleCpsDataHurry1,
925 kEoB2FinaleCpsDataHurry2,
926 kEoB2FinaleCpsDataDestroy0,
927 kEoB2FinaleCpsDataDestroy1,
928 kEoB2FinaleCpsDataDestroy2,
929 kEoB2FinaleCpsDataMagic,
930 kEoB2FinaleCpsDataDestroy3,
931 kEoB2FinaleCpsDataCredits2,
932 kEoB2FinaleCpsDataCredits3,
933 kEoB2FinaleCpsDataHeroes,
934 kEoB2FinaleCpsDataThanks,
936 kEoB2ItemIconShapeData00,
937 kEoB2ItemIconShapeData01,
938 kEoB2ItemIconShapeData02,
939 kEoB2ItemIconShapeData03,
940 kEoB2ItemIconShapeData04,
941 kEoB2ItemIconShapeData05,
942 kEoB2ItemIconShapeData06,
943 kEoB2ItemIconShapeData07,
944 kEoB2ItemIconShapeData08,
945 kEoB2ItemIconShapeData09,
946 kEoB2ItemIconShapeData10,
947 kEoB2ItemIconShapeData11,
948 kEoB2ItemIconShapeData12,
949 kEoB2ItemIconShapeData13,
950 kEoB2ItemIconShapeData14,
951 kEoB2ItemIconShapeData15,
952 kEoB2ItemIconShapeData16,
953 kEoB2ItemIconShapeData17,
954 kEoB2ItemIconShapeData18,
955 kEoB2ItemIconShapeData19,
956 kEoB2ItemIconShapeData20,
957 kEoB2ItemIconShapeData21,
958 kEoB2ItemIconShapeData22,
959 kEoB2ItemIconShapeData23,
960 kEoB2ItemIconShapeData24,
961 kEoB2ItemIconShapeData25,
962 kEoB2ItemIconShapeData26,
963 kEoB2ItemIconShapeData27,
964 kEoB2ItemIconShapeData28,
965 kEoB2ItemIconShapeData29,
966 kEoB2ItemIconShapeData30,
967 kEoB2ItemIconShapeData31,
968 kEoB2ItemIconShapeData32,
969 kEoB2ItemIconShapeData33,
970 kEoB2ItemIconShapeData34,
971 kEoB2ItemIconShapeData35,
972 kEoB2ItemIconShapeData36,
973 kEoB2ItemIconShapeData37,
974 kEoB2ItemIconShapeData38,
975 kEoB2ItemIconShapeData39,
976 kEoB2ItemIconShapeData40,
977 kEoB2ItemIconShapeData41,
978 kEoB2ItemIconShapeData42,
979 kEoB2ItemIconShapeData43,
980 kEoB2ItemIconShapeData44,
981 kEoB2ItemIconShapeData45,
982 kEoB2ItemIconShapeData46,
983 kEoB2ItemIconShapeData47,
984 kEoB2ItemIconShapeData48,
985 kEoB2ItemIconShapeData49,
986 kEoB2ItemIconShapeData50,
987 kEoB2ItemIconShapeData51,
988 kEoB2ItemIconShapeData52,
989 kEoB2ItemIconShapeData53,
990 kEoB2ItemIconShapeData54,
991 kEoB2ItemIconShapeData55,
992 kEoB2ItemIconShapeData56,
993 kEoB2ItemIconShapeData57,
994 kEoB2ItemIconShapeData58,
995 kEoB2ItemIconShapeData59,
996 kEoB2ItemIconShapeData60,
997 kEoB2ItemIconShapeData61,
998 kEoB2ItemIconShapeData62,
999 kEoB2ItemIconShapeData63,
1000 kEoB2ItemIconShapeData64,
1001 kEoB2ItemIconShapeData65,
1002 kEoB2ItemIconShapeData66,
1003 kEoB2ItemIconShapeData67,
1004 kEoB2ItemIconShapeData68,
1005 kEoB2ItemIconShapeData69,
1006 kEoB2ItemIconShapeData70,
1007 kEoB2ItemIconShapeData71,
1008 kEoB2ItemIconShapeData72,
1009 kEoB2ItemIconShapeData73,
1010 kEoB2ItemIconShapeData74,
1011 kEoB2ItemIconShapeData75,
1012 kEoB2ItemIconShapeData76,
1013 kEoB2ItemIconShapeData77,
1014 kEoB2ItemIconShapeData78,
1015 kEoB2ItemIconShapeData79,
1016 kEoB2ItemIconShapeData80,
1017 kEoB2ItemIconShapeData81,
1018 kEoB2ItemIconShapeData82,
1019 kEoB2ItemIconShapeData83,
1020 kEoB2ItemIconShapeData84,
1021 kEoB2ItemIconShapeData85,
1022 kEoB2ItemIconShapeData86,
1023 kEoB2ItemIconShapeData87,
1024 kEoB2ItemIconShapeData88,
1025 kEoB2ItemIconShapeData89,
1026 kEoB2ItemIconShapeData90,
1027 kEoB2ItemIconShapeData91,
1028 kEoB2ItemIconShapeData92,
1029 kEoB2ItemIconShapeData93,
1030 kEoB2ItemIconShapeData94,
1031 kEoB2ItemIconShapeData95,
1032 kEoB2ItemIconShapeData96,
1033 kEoB2ItemIconShapeData97,
1034 kEoB2ItemIconShapeData98,
1035 kEoB2ItemIconShapeData99,
1036 kEoB2ItemIconShapeData100,
1037 kEoB2ItemIconShapeData101,
1038 kEoB2ItemIconShapeData102,
1039 kEoB2ItemIconShapeData103,
1040 kEoB2ItemIconShapeData104,
1041 kEoB2ItemIconShapeData105,
1042 kEoB2ItemIconShapeData106,
1043 kEoB2ItemIconShapeData107,
1044 kEoB2ItemIconShapeData108,
1045 kEoB2ItemIconShapeData109,
1046 kEoB2ItemIconShapeData110,
1047 kEoB2ItemIconShapeData111,
1049 kEoB2LargeItemsShapeData00,
1050 kEoB2LargeItemsShapeData01,
1051 kEoB2LargeItemsShapeData02,
1052 kEoB2LargeItemsShapeData03,
1053 kEoB2LargeItemsShapeData04,
1054 kEoB2LargeItemsShapeData05,
1055 kEoB2LargeItemsShapeData06,
1056 kEoB2LargeItemsShapeData07,
1057 kEoB2LargeItemsShapeData08,
1058 kEoB2LargeItemsShapeData09,
1059 kEoB2LargeItemsShapeData10,
1061 kEoB2SmallItemsShapeData00,
1062 kEoB2SmallItemsShapeData01,
1063 kEoB2SmallItemsShapeData02,
1064 kEoB2SmallItemsShapeData03,
1065 kEoB2SmallItemsShapeData04,
1066 kEoB2SmallItemsShapeData05,
1067 kEoB2SmallItemsShapeData06,
1068 kEoB2SmallItemsShapeData07,
1069 kEoB2SmallItemsShapeData08,
1070 kEoB2SmallItemsShapeData09,
1071 kEoB2SmallItemsShapeData10,
1072 kEoB2SmallItemsShapeData11,
1073 kEoB2SmallItemsShapeData12,
1074 kEoB2SmallItemsShapeData13,
1075 kEoB2SmallItemsShapeData14,
1076 kEoB2SmallItemsShapeData15,
1077 kEoB2SmallItemsShapeData16,
1078 kEoB2SmallItemsShapeData17,
1079 kEoB2SmallItemsShapeData18,
1080 kEoB2SmallItemsShapeData19,
1081 kEoB2SmallItemsShapeData20,
1082 kEoB2SmallItemsShapeData21,
1083 kEoB2SmallItemsShapeData22,
1084 kEoB2SmallItemsShapeData23,
1085 kEoB2SmallItemsShapeData24,
1086 kEoB2SmallItemsShapeData25,
1088 kEoB2ThrownShapeData00,
1089 kEoB2ThrownShapeData01,
1090 kEoB2ThrownShapeData02,
1091 kEoB2ThrownShapeData03,
1092 kEoB2ThrownShapeData04,
1093 kEoB2ThrownShapeData05,
1094 kEoB2ThrownShapeData06,
1095 kEoB2ThrownShapeData07,
1096 kEoB2ThrownShapeData08,
1098 kEoB2SpellShapeData00,
1099 kEoB2SpellShapeData01,
1100 kEoB2SpellShapeData02,
1101 kEoB2SpellShapeData03,
1103 kEoB2TeleporterShapeData00,
1104 kEoB2TeleporterShapeData01,
1105 kEoB2TeleporterShapeData02,
1106 kEoB2TeleporterShapeData03,
1107 kEoB2TeleporterShapeData04,
1108 kEoB2TeleporterShapeData05,
1110 kEoB2LightningColumnShapeData,
1111 kEoB2DeadCharShapeData,
1112 kEoB2DisabledCharGridShapeData,
1113 kEoB2WeaponSlotGridShapeData,
1114 kEoB2SmallGridShapeData,
1115 kEoB2WideGridShapeData,
1116 kEoB2RedSplatShapeData,
1117 kEoB2GreenSplatShapeData,
1119 kEoB2FirebeamShapeData00,
1120 kEoB2FirebeamShapeData01,
1121 kEoB2FirebeamShapeData02,
1123 kEoB2SparkShapeData00,
1124 kEoB2SparkShapeData01,
1125 kEoB2SparkShapeData02,
1127 kEoB2CompassShapeData00,
1128 kEoB2CompassShapeData01,
1129 kEoB2CompassShapeData02,
1130 kEoB2CompassShapeData03,
1131 kEoB2CompassShapeData04,
1132 kEoB2CompassShapeData05,
1133 kEoB2CompassShapeData06,
1134 kEoB2CompassShapeData07,
1135 kEoB2CompassShapeData08,
1136 kEoB2CompassShapeData09,
1137 kEoB2CompassShapeData10,
1138 kEoB2CompassShapeData11,
1140 kEoB2WallOfForceShapeData00,
1141 kEoB2WallOfForceShapeData01,
1142 kEoB2WallOfForceShapeData02,
1143 kEoB2WallOfForceShapeData03,
1144 kEoB2WallOfForceShapeData04,
1145 kEoB2WallOfForceShapeData05,
1147 kEoB2UtilMenuStrings,
1148 kEoB2Config2431Strings,
1150 kEoB2FontConvertTbl,
1151 kEoB2Ascii2SjisTables,
1152 kEoB2Ascii2SjisTables2,
1153 kEoB2PcmSoundEffectsIngame,
1154 kEoB2PcmSoundEffectsIntro,
1155 kEoB2PcmSoundEffectsFinale,
1160 kEoB2SoundFilesIngame2,
1161 kEoB2MonsterSoundPatchData,
1168 kLoLIngameGMSfxIndex,
1169 kLoLIngameMT32SfxIndex,
1170 kLoLIngamePcSpkSfxIndex,
1171 kLoLSpellProperties,
1180 kLoLExpRequirements,
1181 kLoLMonsterModifiers1,
1182 kLoLMonsterModifiers2,
1183 kLoLMonsterModifiers3,
1184 kLoLMonsterModifiers4,
1185 kLoLMonsterShiftOffsets,
1186 kLoLMonsterDirFlags,
1190 kLoLFlyingObjectShp,
1201 kLoLDscScaleWidthData,
1202 kLoLDscScaleHeightData,
1231 kLoLSpellbookCoords,
1232 kLoLHealShapeFrames,
1239 #endif // ENABLE_EOB || ENABLE_LOL 1252 static const Common::String staticDataFilename() {
return "KYRA.DAT"; }
1257 bool loadStaticResourceFile();
1262 const char *
const *loadStrings(
int id,
int &strings);
1263 const uint8 *loadRawData(
int id,
int &size);
1264 const Shape *loadShapeTable(
int id,
int &entries);
1265 const AmigaSfxTable *loadAmigaSfxTable(
int id,
int &entries);
1266 const Room *loadRoomTable(
int id,
int &entries);
1267 const HoFSeqData *loadHoFSequenceData(
int id,
int &entries);
1270 const uint16 *loadRawDataBe16(
int id,
int &entries);
1271 #if defined(ENABLE_EOB) || defined(ENABLE_LOL) 1272 const uint32 *loadRawDataBe32(
int id,
int &entries);
1273 #endif // (ENABLE_EOB || ENABLE_LOL) 1275 const LoLCharacter *loadCharData(
int id,
int &entries);
1276 const SpellProperty *loadSpellData(
int id,
int &entries);
1277 const CompassDef *loadCompassData(
int id,
int &entries);
1278 const FlyingObjectShape *loadFlyingObjectData(
int id,
int &entries);
1279 const LoLButtonDef *loadButtonDefs(
int id,
int &entries);
1280 #endif // ENABLE_LOL 1282 const DarkMoonAnimCommand *loadEoB2SeqData(
int id,
int &entries);
1283 const DarkMoonShapeDef *loadEoB2ShapeData(
int id,
int &entries);
1284 const EoBCharacter *loadEoBNpcData(
int id,
int &entries);
1285 #endif // ENABLE_EOB 1296 bool prefetchId(
int id);
1297 void unloadId(
int id);
1305 bool checkResList(
int id,
int &type,
const void *&ptr,
int &size);
1306 const FileType *getFiletype(
int type);
1307 const void *getData(
int id,
int requesttype,
int &size);
1319 #if defined(ENABLE_EOB) || defined(ENABLE_LOL) 1321 #endif // (ENABLE_LOL || ENABLE_EOB) 1328 #endif // ENABLE_LOL 1333 #endif // ENABLE_EOB 1335 void freeDummy(
void *&ptr,
int &size);
1336 void freeRawData(
void *&ptr,
int &size);
1337 void freeStringTable(
void *&ptr,
int &size);
1338 void freeShapeTable(
void *&ptr,
int &size);
1339 void freeAmigaSfxTable(
void *&ptr,
int &size);
1340 void freeRoomTable(
void *&ptr,
int &size);
1341 void freeHoFSequenceData(
void *&ptr,
int &size);
1342 void freeHoFSeqItemAnimData(
void *&ptr,
int &size);
1343 void freeItemAnimDefinition(
void *&ptr,
int &size);
1344 void freeRawDataBe16(
void *&ptr,
int &size);
1345 #if defined(ENABLE_EOB) || defined(ENABLE_LOL) 1346 void freeRawDataBe32(
void *&ptr,
int &size);
1347 #endif // (ENABLE_EOB || ENABLE_LOL) 1349 void freeCharData(
void *&ptr,
int &size);
1350 void freeSpellData(
void *&ptr,
int &size);
1351 void freeCompassData(
void *&ptr,
int &size);
1352 void freeFlyingObjectData(
void *&ptr,
int &size);
1353 void freeButtonDefs(
void *&ptr,
int &size);
1354 #endif // ENABLE_LOL 1356 void freeEoB2SeqData(
void *&ptr,
int &size);
1357 void freeEoB2ShapeData(
void *&ptr,
int &size);
1358 void freeEoBNpcData(
void *&ptr,
int &size);
1359 #endif // ENABLE_EOB 1369 k2SeqItemAnimData = 6,
1370 k2ItemAnimDefinition = 7,
1374 kLoLCompassData = 10,
1375 kLoLFlightShpData = 11,
1376 kLoLButtonData = 12,
1380 kEoB2SequenceData = 15,
1381 kEoB2ShapeData = 16,
1403 const FileType *_fileLoader;
1405 struct DataDescriptor {
1406 DataDescriptor() : filename(0), type(0) {}
1407 DataDescriptor(uint32 f, uint8 t) : filename(f), type(t) {}
Definition: resource.h:1250
Definition: resource.h:48
Definition: kyra_v1.h:126
Definition: kyra_lok.h:56
Definition: kyra_lok.h:50
Definition: archive.h:141
Definition: sequences_hof.h:58
Definition: archive.h:312
String toString(char separator='/') const
Definition: detection.h:27
Definition: sequences_hof.h:65
Definition: sound_intern.h:315
Language
Definition: language.h:45