Skip to content

Commit

Permalink
ObjectExplorer: Adjust style of last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Feb 26, 2025
1 parent 5f272b1 commit 3d533b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/mods/tools/ObjectExplorer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ void ObjectExplorer::on_draw_dev_ui() {
std::thread t(&ObjectExplorer::generate_sdk, this, false);
t.detach();
}

ImGui::SameLine();
if (ImGui::Button("Dump il2cpp json Only")) {
std::thread t(&ObjectExplorer::generate_sdk, this, true);
t.detach();
Expand Down Expand Up @@ -993,7 +995,7 @@ void ObjectExplorer::export_deserializer_chain(nlohmann::json& il2cpp_dump, sdk:
}
#endif

void ObjectExplorer::generate_sdk(const bool justIl2CppJson) {
void ObjectExplorer::generate_sdk(const bool skip_sdkgenny) {
// enums
//auto ref = utility::scan(g_framework->get_module().as<HMODULE>(), "66 C7 40 18 01 01 48 89 05 ? ? ? ?");
//auto& l = *(std::map<uint64_t, REEnumData>*)(utility::calculate_absolute(*ref + 9));
Expand Down Expand Up @@ -2247,7 +2249,7 @@ void ObjectExplorer::generate_sdk(const bool justIl2CppJson) {
spdlog::info("Generating IDA SDK...");
m_sdk_dump_stage = SdkDumpStage::GENERATE_SDK;

if (!justIl2CppJson) {
if (!skip_sdkgenny) {
genny::ida::transform(sdk);
sdk.generate("sdk_ida");
}
Expand Down
2 changes: 1 addition & 1 deletion src/mods/tools/ObjectExplorer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class ObjectExplorer : public Tool {
std::string generate_full_name(sdk::RETypeDB* tdb, uint32_t i);
void export_deserializer_chain(nlohmann::json& il2cpp_dump, sdk::RETypeDB* tdb, REType* t, std::optional<std::string> real_name = std::nullopt);
#endif
void generate_sdk(bool justIl2CppJson);
void generate_sdk(bool skip_sdkgenny);
void report_sdk_dump_progress(float progress);

void handle_game_object(REGameObject* game_object);
Expand Down

0 comments on commit 3d533b6

Please sign in to comment.