-
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.
* O2R support * Still look for .otrs * Update submodule * Hotfix for exporter
- Loading branch information
Showing
7 changed files
with
48 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.zip | ||
*.otr | ||
.vscode | ||
*.swp | ||
|
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
10 files
+1 −0 | .gitignore | |
+5 −0 | OTRExporter/CMakeLists.txt | |
+0 −141 | OTRExporter/ExporterArchive.cpp | |
+6 −9 | OTRExporter/ExporterArchive.h | |
+93 −0 | OTRExporter/ExporterArchiveO2R.cpp | |
+24 −0 | OTRExporter/ExporterArchiveO2R.h | |
+147 −0 | OTRExporter/ExporterArchiveOTR.cpp | |
+28 −0 | OTRExporter/ExporterArchiveOTR.h | |
+326 −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