-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
32 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule OTRExporter
updated
9 files
+4 −0 | OTRExporter/CMakeLists.txt | |
+0 −141 | OTRExporter/ExporterArchive.cpp | |
+5 −6 | OTRExporter/ExporterArchive.h | |
+93 −0 | OTRExporter/ExporterArchiveO2R.cpp | |
+24 −0 | OTRExporter/ExporterArchiveO2R.h | |
+147 −0 | OTRExporter/ExporterArchiveOTR.cpp | |
+24 −0 | OTRExporter/ExporterArchiveOTR.h | |
+324 −296 | OTRExporter/Main.cpp | |
+1 −1 | extract_assets.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
message(STATUS "Copying otr files...") | ||
|
||
if(NOT ONLY2SHIPOTR AND EXISTS ${SOURCE_DIR}/OTRExporter/mm.otr) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy mm.otr ${SOURCE_DIR}) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy mm.otr ${BINARY_DIR}/mm/) | ||
message(STATUS "Copied mm.otr") | ||
if(NOT ONLY2SHIPOTR AND EXISTS ${SOURCE_DIR}/OTRExporter/mm.zip) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy mm.zip ${SOURCE_DIR}) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy mm.zip ${BINARY_DIR}/mm/) | ||
message(STATUS "Copied mm.zip") | ||
endif() | ||
if(EXISTS ${SOURCE_DIR}/OTRExporter/2ship.otr) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy 2ship.otr ${SOURCE_DIR}) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy 2ship.otr ${BINARY_DIR}/mm/) | ||
message(STATUS "Copied 2ship.otr") | ||
if(EXISTS ${SOURCE_DIR}/OTRExporter/2ship.zip) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy 2ship.zip ${SOURCE_DIR}) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy 2ship.zip ${BINARY_DIR}/mm/) | ||
message(STATUS "Copied 2ship.zip") | ||
endif() | ||
|
||
# Additionally for Windows, copy the otrs to the target dir, side by side with 2ship.exe | ||
if(SYSTEM_NAME MATCHES "Windows") | ||
if(NOT ONLY2SHIPOTR AND EXISTS ${SOURCE_DIR}/OTRExporter/mm.otr) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy mm.otr ${TARGET_DIR}) | ||
if(NOT ONLY2SHIPOTR AND EXISTS ${SOURCE_DIR}/OTRExporter/mm.zip) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy mm.zip ${TARGET_DIR}) | ||
endif() | ||
if(EXISTS ${SOURCE_DIR}/OTRExporter/2ship.otr) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy 2ship.otr ${TARGET_DIR}) | ||
if(EXISTS ${SOURCE_DIR}/OTRExporter/2ship.zip) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy 2ship.zip ${TARGET_DIR}) | ||
endif() | ||
endif() | ||
|
||
if(NOT ONLY2SHIPOTR AND (NOT EXISTS ${SOURCE_DIR}/mm.otr)) | ||
message(FATAL_ERROR "Failed to copy. No OTR files found.") | ||
if(NOT ONLY2SHIPOTR AND (NOT EXISTS ${SOURCE_DIR}/mm.zip)) | ||
message(FATAL_ERROR "Failed to copy. No ZIP files found.") | ||
endif() | ||
if(NOT EXISTS ${SOURCE_DIR}/2ship.otr) | ||
message(FATAL_ERROR "Failed to copy. No 2ship OTR found.") | ||
if(NOT EXISTS ${SOURCE_DIR}/2ship.zip) | ||
message(FATAL_ERROR "Failed to copy. No 2ship ZIP found.") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters