Skip to content

Commit

Permalink
debug log stuff and visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciremun committed Jan 23, 2024
1 parent e86411d commit 0e3952e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
18 changes: 10 additions & 8 deletions freedom/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ void update_ui()
if (ImGui::Button("Debug Log"))
{
cfg_show_debug_log = true;
cfg_write_debug_log = true;
ImGui::SaveIniSettingsToDisk(ImGui::GetIO().IniFilename);
}
ImGui::Dummy(ImVec2(.0f, 2.f));
Expand Down Expand Up @@ -629,8 +630,7 @@ void parameter_slider(uintptr_t selected_song_ptr, Parameter *p)
const char *slider_fmt;
if (!p->found)
{
ImGui::PushItemFlag(ImGuiItemFlags_Disabled, true);
ImGui::PushStyleColor(ImGuiCol_Text, ITEM_DISABLED);
ImGui::BeginDisabled();
slider_fmt = p->error_message;
}
else
Expand All @@ -648,11 +648,11 @@ void parameter_slider(uintptr_t selected_song_ptr, Parameter *p)
internal_memory_read(g_process, param_ptr, &p->value);
}
}
ImGui::BeginDisabled();
ImGui::PushID(slider_fmt);
ImGui::BeginDisabled();
ImGui::SliderFloat("", &p->value, .0f, 11.0f, slider_fmt);
ImGui::PopID();
ImGui::EndDisabled();
ImGui::PopID();
}
else
{
Expand All @@ -671,10 +671,7 @@ void parameter_slider(uintptr_t selected_song_ptr, Parameter *p)
}
ImGui::PopID();
if (!p->found)
{
ImGui::PopStyleColor();
ImGui::PopItemFlag();
}
ImGui::EndDisabled();
ImGui::Dummy(ImVec2(0.0f, 5.0f));
}

Expand All @@ -692,5 +689,10 @@ void draw_debug_log()
debug_log.draw();
ImGui::End();
ImGui::PopFont();
if (!cfg_show_debug_log)
{
cfg_write_debug_log = false;
ImGui::SaveIniSettingsToDisk(ImGui::GetIO().IniFilename);
}
}
}
6 changes: 3 additions & 3 deletions include/baked_utils_dll.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ static const unsigned int utils_dll_data[8704/4] =
{
0x00905a4d, 0x00000003, 0x00000004, 0x0000ffff, 0x000000b8, 0x00000000, 0x00000040, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000080, 0x0eba1f0e, 0xcd09b400, 0x4c01b821, 0x685421cd, 0x70207369, 0x72676f72, 0x63206d61, 0x6f6e6e61,
0x65622074, 0x6e757220, 0x206e6920, 0x20534f44, 0x65646f6d, 0x0a0d0d2e, 0x00000024, 0x00000000, 0x00004550, 0x0003014c, 0x65b02222, 0x00000000,
0x65622074, 0x6e757220, 0x206e6920, 0x20534f44, 0x65646f6d, 0x0a0d0d2e, 0x00000024, 0x00000000, 0x00004550, 0x0003014c, 0x65b028a1, 0x00000000,
0x00000000, 0x202200e0, 0x0030010b, 0x00001a00, 0x00000600, 0x00000000, 0x0000394e, 0x00002000, 0x00004000, 0x10000000, 0x00002000, 0x00000200,
0x00000004, 0x00000000, 0x00000004, 0x00000000, 0x00008000, 0x00000200, 0x00000000, 0x85400003, 0x00100000, 0x00001000, 0x00100000, 0x00001000,
0x00000000, 0x00000010, 0x00000000, 0x00000000, 0x000038fc, 0x0000004f, 0x00004000, 0x00000298, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
Expand Down Expand Up @@ -134,8 +134,8 @@ static const unsigned int utils_dll_data[8704/4] =
0x00550066, 0x00420042, 0x00680075, 0x005a0047, 0x00480024, 0x005a0079, 0x004c0030, 0x006e0041, 0x00510066, 0x003d003d, 0x00232f00, 0x007a003d,
0x0024006e, 0x004d004b, 0x004f0038, 0x00420050, 0x00560033, 0x00330044, 0x00450045, 0x00680051, 0x00410058, 0x003d003d, 0x00231700, 0x007a003d,
0x005f0072, 0x0035005f, 0x00300054, 0x003d006f, 0x00233f00, 0x007a003d, 0x00300045, 0x00440056, 0x0066005a, 0x004a0077, 0x00480045, 0x007a0033,
0x00440036, 0x00580033, 0x00710047, 0x0054006d, 0x0044006b, 0x00460052, 0x0077006b, 0x00470066, 0x00000100, 0x3bf1670c, 0x4a9da8a8, 0x0a105fae,
0x2305f90e, 0x01200400, 0x20030801, 0x20050100, 0x11110101, 0x01012005, 0x07041d11, 0x04311101, 0x59120000, 0x12012005, 0x20050e35, 0x0e391201,
0x00440036, 0x00580033, 0x00710047, 0x0054006d, 0x0044006b, 0x00460052, 0x0077006b, 0x00470066, 0x00000100, 0x7f58ee71, 0x4a83ae27, 0xc88490a8,
0x60d00786, 0x01200400, 0x20030801, 0x20050100, 0x11110101, 0x01012005, 0x07041d11, 0x04311101, 0x59120000, 0x12012005, 0x20050e35, 0x0e391201,
0x11002004, 0x00200331, 0x01000418, 0x07061808, 0x112d1102, 0x1215072d, 0x110e0229, 0x0120052d, 0x06001302, 0x01130120, 0x00050013, 0x08181802,
0x11020007, 0x65111c2d, 0x01022007, 0x01130013, 0x11010704, 0x0307082d, 0x0824111d, 0x20032411, 0x20030e00, 0x070e0800, 0x113d1106, 0x113d113d,
0x41121d3d, 0x00200408, 0x20043d11, 0x04511100, 0x35120020, 0x02020007, 0x35123512, 0x1d002005, 0x07154112, 0x121d080a, 0x35120835, 0x0839121d,
Expand Down
Binary file modified nobuild.exe
Binary file not shown.

0 comments on commit 0e3952e

Please sign in to comment.