mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-01 15:26:01 +00:00
750c0cab35
* remove fake match * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "3e9ed72e2" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "3e9ed72e2" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * new extraction script and a hack to make clear tag work * fix clear tag again * remove static from clear tag DLists * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "e7a8a48cf" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "e7a8a48cf" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "e243634e5" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "e243634e5" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "d0cd6b397" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "d0cd6b397" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * Update ovl_En_Clear_Tag.xml
58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Utils/Directory.h"
|
|
#include "tinyxml2.h"
|
|
|
|
struct TexturePoolEntry
|
|
{
|
|
fs::path path = ""; // Path to Shared Texture
|
|
};
|
|
|
|
class ExternalFile
|
|
{
|
|
public:
|
|
fs::path xmlPath, outPath;
|
|
|
|
ExternalFile(fs::path nXmlPath, fs::path nOutPath);
|
|
};
|
|
|
|
class ZFile;
|
|
|
|
class GameConfig
|
|
{
|
|
public:
|
|
std::string configFilePath;
|
|
std::map<int32_t, std::vector<ZFile*>> segmentRefFiles;
|
|
std::map<uint32_t, std::string> symbolMap;
|
|
std::vector<std::string> actorList;
|
|
std::vector<std::string> objectList;
|
|
std::map<uint32_t, TexturePoolEntry> texturePool; // Key = CRC
|
|
|
|
// ZBackground
|
|
uint32_t bgScreenWidth = 320, bgScreenHeight = 240;
|
|
|
|
// ExternalFile
|
|
fs::path externalXmlFolder;
|
|
std::vector<ExternalFile> externalFiles;
|
|
|
|
GameConfig() = default;
|
|
~GameConfig();
|
|
|
|
void ReadTexturePool(const fs::path& texturePoolXmlPath);
|
|
void GenSymbolMap(const fs::path& symbolMapPath);
|
|
|
|
void ConfigFunc_SymbolMap(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_ActorList(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_ObjectList(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_TexturePool(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_BGConfig(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_ExternalXMLFolder(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_ExternalFile(const tinyxml2::XMLElement& element);
|
|
|
|
void ReadConfigFile(const fs::path& configFilePath);
|
|
};
|