diff options
| author | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2022-08-29 20:43:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-29 20:43:16 -0400 |
| commit | 78fdac56498f674eba2692e075d415a12cb4a31f (patch) | |
| tree | d27d8302576b28112dbbd363f47116a9bd7b253a /ZAPD/Main.cpp | |
| parent | 9bc6a442d91d698fa16a94f620ac903362d85543 (diff) | |
| parent | 80e62d5c5f7f5e2ce102fd3f837ff772366b3166 (diff) | |
Merge pull request #262 from louist103/noOVL
Remove overlay reloc building
Diffstat (limited to 'ZAPD/Main.cpp')
| -rw-r--r-- | ZAPD/Main.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ZAPD/Main.cpp b/ZAPD/Main.cpp index 648ef18..a7b9660 100644 --- a/ZAPD/Main.cpp +++ b/ZAPD/Main.cpp @@ -1,5 +1,4 @@ #include "Globals.h" -#include "Overlays/ZOverlay.h" #include "Utils/Directory.h" #include "Utils/File.h" #include "Utils/Path.h" @@ -111,12 +110,6 @@ int Main(int argc, char* argv[]) { Globals::Instance->texType = ZTexture::GetTextureTypeFromString(argv[++i]); } - else if (arg == "-cfg") // Set cfg path (for overlays) - // TODO: Change the name of this to something else so it doesn't - // get confused with XML config files. - { - Globals::Instance->cfgPath = argv[++i]; - } else if (arg == "-rconf") // Read Config File { Globals::Instance->cfg.ReadConfigFile(argv[++i]); @@ -167,8 +160,6 @@ int Main(int argc, char* argv[]) fileMode = ZFileMode::BuildTexture; else if (buildMode == "bren") fileMode = ZFileMode::BuildBackground; - else if (buildMode == "bovl") - fileMode = ZFileMode::BuildOverlay; else if (buildMode == "bsf") fileMode = ZFileMode::BuildSourceFile; else if (buildMode == "bblb") @@ -250,16 +241,6 @@ int Main(int argc, char* argv[]) { BuildAssetBlob(Globals::Instance->inputPath, Globals::Instance->outputPath); } - else if (fileMode == ZFileMode::BuildOverlay) - { - ZOverlay* overlay = - ZOverlay::FromBuild(Path::GetDirectoryName(Globals::Instance->inputPath), - Path::GetDirectoryName(Globals::Instance->cfgPath)); - - if (overlay != nullptr) - File::WriteAllText(Globals::Instance->outputPath.string(), - overlay->GetSourceOutputCode("")); - } delete g; return 0; |
