Skip to content

Commit

Permalink
feat: add luarocks lfs.dll to the build.
Browse files Browse the repository at this point in the history
  • Loading branch information
jochumdev committed Dec 22, 2023
1 parent 2ca6037 commit db141ca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,13 @@
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/out/build/msys2-mingw64-debug/src/Upspring",
"args": [],
"args": [
"--run",
"runscripts\\convert_with_atlas.lua",
"--",
"..\\TA\\unittextures\\arm.yaml",
"..\\TA-3do\\objects3d\\arm_broadside.3do",
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
Expand All @@ -173,7 +179,6 @@
"ignoreFailures": true
}
],
"preLaunchTask": "msys2-mingw64-debug"
}
]
}
Binary file added lfs.dll
Binary file not shown.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ find_package(Lua REQUIRED)

add_subdirectory(swig)

file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../lfs.dll DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../data DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../scripts DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../runscripts DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
Expand Down
1 change: 1 addition & 0 deletions src/FileIO/S3O.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ bool Model::SaveS3O(const char* filename, IProgressCtl& /*progctl*/) {

FILE* f = fopen(filename, "wb");
if (f == nullptr) {
spdlog::error("Failed to open '{}' for writing.", filename);
return false;
}

Expand Down

0 comments on commit db141ca

Please sign in to comment.