mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-10 00:40:16 +00:00
Update ZAPD (#1569)
* git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "094e79734" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "094e79734" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "110b9eb" * Add EnumData.xml where some names are now externalized * Remove legacy typedefs for zapd, no longer needed!
This commit is contained in:
parent
503f6d86d5
commit
4e55168eaa
97 changed files with 4225 additions and 2328 deletions
|
@ -21,6 +21,32 @@ public:
|
|||
ExternalFile(fs::path nXmlPath, fs::path nOutPath);
|
||||
};
|
||||
|
||||
// Stores data from the XML file, the integer is the index (via ATOI) and the string is the value
|
||||
class EnumData
|
||||
{
|
||||
public:
|
||||
// Common
|
||||
std::map<uint16_t, std::string> cutsceneCmd;
|
||||
std::map<uint16_t, std::string> miscType;
|
||||
std::map<uint16_t, std::string> fadeOutSeqPlayer;
|
||||
std::map<uint16_t, std::string> transitionType;
|
||||
std::map<uint16_t, std::string> naviQuestHintType;
|
||||
|
||||
// OoT
|
||||
std::map<uint16_t, std::string> textType;
|
||||
std::map<uint16_t, std::string> destination;
|
||||
|
||||
// MM
|
||||
std::map<uint16_t, std::string> modifySeqType;
|
||||
std::map<uint16_t, std::string> chooseCreditsSceneType;
|
||||
std::map<uint16_t, std::string> destinationType;
|
||||
std::map<uint16_t, std::string> motionBlurType;
|
||||
std::map<uint16_t, std::string> transitionGeneralType;
|
||||
std::map<uint16_t, std::string> rumbleType;
|
||||
std::map<uint8_t, std::string> spawnFlag;
|
||||
std::map<uint8_t, std::string> endSfx;
|
||||
};
|
||||
|
||||
class ZFile;
|
||||
|
||||
class GameConfig
|
||||
|
@ -34,9 +60,12 @@ public:
|
|||
std::vector<std::string> entranceList;
|
||||
std::vector<std::string> specialEntranceList;
|
||||
std::map<uint32_t, TexturePoolEntry> texturePool; // Key = CRC
|
||||
EnumData enumData;
|
||||
|
||||
// ZBackground
|
||||
uint32_t bgScreenWidth = 320, bgScreenHeight = 240;
|
||||
bool useScreenWidthHeightConstants = true; // If true, ZBackground's will be declared with
|
||||
// SCREEN_WIDTH * SCREEN_HEIGHT in the C file
|
||||
|
||||
// ExternalFile
|
||||
fs::path externalXmlFolder;
|
||||
|
@ -57,6 +86,7 @@ public:
|
|||
void ConfigFunc_BGConfig(const tinyxml2::XMLElement& element);
|
||||
void ConfigFunc_ExternalXMLFolder(const tinyxml2::XMLElement& element);
|
||||
void ConfigFunc_ExternalFile(const tinyxml2::XMLElement& element);
|
||||
void ConfigFunc_EnumData(const tinyxml2::XMLElement& element);
|
||||
|
||||
void ReadConfigFile(const fs::path& configFilePath);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue