Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions CMake/copy-existing-otrs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ if(EXISTS ${SOURCE_DIR}/mm/2ship.o2r)
message(STATUS "Copied 2ship.o2r")
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}/mm/mm.o2r)
execute_process(COMMAND ${CMAKE_COMMAND} -E copy mm.o2r ${TARGET_DIR}/mm.o2r)
endif()
if(EXISTS ${SOURCE_DIR}/OTRExporter/2ship.o2r)
execute_process(COMMAND ${CMAKE_COMMAND} -E copy 2ship.o2r ${TARGET_DIR})
endif()
endif()


if(NOT ONLY2SHIPOTR AND (NOT EXISTS ${SOURCE_DIR}/mm.o2r))
message(FATAL_ERROR "Failed to copy. No O2R files found.")
Expand Down
2 changes: 1 addition & 1 deletion mm/2s2h/BenPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ OTRGlobals::OTRGlobals() {
}
}

std::string shipOtrPath = Ship::Context::GetPathRelativeToAppBundle("2ship.o2r");
std::string shipOtrPath = Ship::Context::LocateFileAcrossAppDirs("2ship.o2r");
if (std::filesystem::exists(shipOtrPath)) {
archiveFiles.push_back(shipOtrPath);
}
Expand Down
Loading