summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2025-11-08 15:51:24 -0600
committerGitHub <noreply@github.com>2025-11-08 15:51:24 -0600
commit5249cd89df086e29510d2d77b4ce30d4019fe0d2 (patch)
tree7352c3dda8023200f6f7b2067d1dbd8676c6cd89
parent8073f9685611222c180e1407c0bd9612981e4150 (diff)
Stop creating timesplits file on init, and gitignore it (#5933)
-rw-r--r--.gitignore1
-rw-r--r--soh/soh/Enhancements/timesplits/TimeSplits.cpp11
2 files changed, 1 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index 2b7352d95..7feccf1fe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -417,6 +417,7 @@ tags
shipofharkinian.ini
shipofharkinian.json
imgui.ini
+timesplitdata.json
# Switch Stuff
diff --git a/soh/soh/Enhancements/timesplits/TimeSplits.cpp b/soh/soh/Enhancements/timesplits/TimeSplits.cpp
index 3f06450f7..1aa15795e 100644
--- a/soh/soh/Enhancements/timesplits/TimeSplits.cpp
+++ b/soh/soh/Enhancements/timesplits/TimeSplits.cpp
@@ -948,16 +948,6 @@ void TimeSplitsDrawManageList() {
ImGui::EndChild();
}
-void InitializeSplitDataFile() {
- std::string filename = Ship::Context::GetPathRelativeToAppDirectory("timesplitdata.json");
- if (!std::filesystem::exists(filename)) {
- json j;
- std::ofstream file(filename);
- file << j.dump(4);
- file.close();
- }
-}
-
void TimeSplitWindow::Draw() {
ImGui::PushStyleColor(ImGuiCol_WindowBg, windowColor);
GuiWindow::Draw();
@@ -997,7 +987,6 @@ void TimeSplitWindow::InitElement() {
ImVec4(1, 1, 1, 1));
Color_RGBA8 defaultColour = { 0, 0, 0, 255 };
windowColor = VecFromRGBA8(CVarGetColor(CVAR_ENHANCEMENT("TimeSplits.WindowColor.Value"), defaultColour));
- InitializeSplitDataFile();
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnTimestamp>([](u8 item) {
if (item != ITEM_SKULL_TOKEN) {