diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2023-04-25 00:01:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-25 00:01:17 -0400 |
| commit | 4a33f3081d01fcd054b0584321be3ac0d6608b55 (patch) | |
| tree | 5a973be58599b622ff75363d0ad72f1b5ace10be | |
| parent | 726eb503b22af6e7b2ae85ed3f55bdb2e30377b4 (diff) | |
Implement built in Extractor for Windows (#2730)
* wip
* const
* split zapd into two targets
* Workingish.
* fix working dir and copy xmls on build (#2)
* dont change current working dir with dialog prompts
* copy asset xmls to target dir
* make zpadlib public
* Messagebox.
* Check for WIN32
* threading
* Cleanups to the exporter and main.
* Multi extraction.
* Fix byteswap header includes.
* Fix another byteswap include.
* fix again.
* stddef size_t
* Add other targets for ZAPDLib
* Non windows.
* IDYES IDNO
* Linux fixes
* hopefully remove switch and wiiu from building extractor
* Please?
* validate roms and add another valid rom
* ifdef out extract.h for switch and wiiu
* Maybe update lux
* Remove ZAPDlib from switch and WiiU
* more rules
* Update soh/soh/Extractor/Extract.cpp
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
* Update ZAPDTR/ZAPD/ExecutableMain.cpp
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
* Update ZAPDTR/ZAPD/CMakeLists.txt
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
* Update ZAPDTR/ZAPD/GameConfig.cpp
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
* Update ZAPDTR/ZAPD/Globals.cpp
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
* Update ZAPDTR/ZAPD/Main.cpp
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
* Update soh/CMakeLists.txt
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
* Update soh/soh/Extractor/Extract.cpp
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
* Update soh/soh/Extractor/Extract.cpp
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
* Update soh/soh/Extractor/Extract.cpp
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
* the last fix
* Add context to a comment
---------
Co-authored-by: Adam Bird <archez39@me.com>
Co-authored-by: Adam Bird <Archez@users.noreply.github.com>
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
| -rw-r--r-- | OTRExporter/Main.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/OTRExporter/Main.cpp b/OTRExporter/Main.cpp index ac8c60d..85300e6 100644 --- a/OTRExporter/Main.cpp +++ b/OTRExporter/Main.cpp @@ -107,8 +107,13 @@ static void ExporterProgramEnd() } } otrArchive = nullptr; + delete fileWriter; + files.clear(); // Add any additional files that need to be manually copied... + if (File::Exists("soh.otr")) { + return; + } const auto& lst = Directory::ListFiles("Extract"); std::shared_ptr<Ship::Archive> sohOtr = Ship::Archive::CreateArchive("soh.otr", 4096); //sohOtr->AddFile("version", (uintptr_t)versionStream->ToVector().data(), versionStream->GetLength()); @@ -273,7 +278,7 @@ void AddFile(std::string fName, std::vector<char> data) } } -static void ImportExporters() +void ImportExporters() { // In this example we set up a new exporter called "EXAMPLE". // By running ZAPD with the argument -se EXAMPLE, we tell it that we want to use this exporter for our resources. @@ -312,6 +317,3 @@ static void ImportExporters() InitVersionInfo(); } - -// When ZAPD starts up, it will automatically call the below function, which in turn sets up our exporters. -REGISTER_EXPORTER(ImportExporters); |
