Skip to content

Commit

Permalink
automatically patch executable with external map loader & more collis…
Browse files Browse the repository at this point in the history
…ion stuff
  • Loading branch information
Astral-C committed Jun 18, 2024
1 parent 4f31944 commit a438529
Show file tree
Hide file tree
Showing 37 changed files with 663 additions and 196 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@
[submodule "lib/ImGuiFileDialog"]
path = lib/ImGuiFileDialog
url = https://github.com/aiekick/ImGuiFileDialog.git
[submodule "lib/bsdifflib"]
path = lib/bsdifflib
url = https://github.com/petervas/bsdifflib.git
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ file(GLOB BOOLDOZER_SRC
"include/io/*.hpp"
"include/nlohmann/*.hpp"
"include/ImGuiFileDialog/*.h"


"lib/bsdifflib/bsdifflib.c"
"lib/bsdifflib/bspatchlib.c"

# glad
"lib/glad/src/*.c"
)
Expand All @@ -34,4 +37,5 @@ add_executable(booldozer ${BOOLDOZER_SRC})
target_include_directories(booldozer PUBLIC include lib/libflipper/include lib/libflipper/include/geometry lib/imgui lib/imgui/backends lib/fmt/include lib/glfw/include lib/glad/include lib/glm lib/J3DUltra/include lib/gctoolsplusplus/include)

find_package(ICU 61.0 COMPONENTS uc i18n REQUIRED)
target_link_libraries(booldozer PUBLIC imgui glfw gctools++ ICU::uc ICU::i18n fmt j3dultra)
find_package(BZip2 REQUIRED)
target_link_libraries(booldozer PUBLIC imgui glfw gctools++ ICU::uc ICU::i18n BZip2::BZip2 fmt j3dultra)
2 changes: 2 additions & 0 deletions include/DOL.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ constexpr size_t DOL_SECTION_COUNT = 18;

class DOL
{
bool mPatched { false };
std::string mChecksum { "" };
uint32_t mTextDataOffsets[DOL_SECTION_COUNT];
uint32_t mTextDataRAMAddresses[DOL_SECTION_COUNT];

Expand Down
3 changes: 2 additions & 1 deletion include/DOM/MapCollisionDOMNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ class LMapCollisionDOMNode : public LBGRenderDOMNode
bool mDirty { false };
bool mGridRender { true };
int mGridYLevel { 0 };
int mGridZLevel { 0 };
uint32_t mGridDimension[3];
std::shared_ptr<LCollisionGridCell> mSelectedCell { nullptr };
glm::vec3 mGridScale, mMinBounds, mAxisLengths;
std::vector<std::vector<std::vector<std::shared_ptr<LCollisionGridCell>>>> mGrid;
std::vector<std::shared_ptr<LCollisionGridCell>> mGrid;

LMapCollisionDOMNode(std::string name);

Expand Down
19 changes: 0 additions & 19 deletions include/DiscordIntegration.hpp

This file was deleted.

Loading

0 comments on commit a438529

Please sign in to comment.