From f8b7f942fb77033e74ca11d280ffdf030c0ffc43 Mon Sep 17 00:00:00 2001 From: user95401 <90561697+user95401@users.noreply.github.com> Date: Mon, 8 Jul 2024 21:32:49 +0400 Subject: [PATCH] Update level_data.cpp --- src/level_data.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/level_data.cpp b/src/level_data.cpp index 1ed1578..50ccbbc 100644 --- a/src/level_data.cpp +++ b/src/level_data.cpp @@ -53,20 +53,20 @@ class $modify(GameLevelManagerExt, GameLevelManager) { level->m_sfxIDs = value.try_get("m_sfxIDs").value_or(level->m_sfxIDs.data()); //setup json value.try_set("________MAIN_STUFF________", " vvv vvv "); - value.try_set("m_levelName", level->m_levelName); + value.try_set("m_levelName", level->m_levelName.data()); value.try_set("m_audioTrack", level->m_audioTrack); value.try_set("m_difficulty", (int)level->m_difficulty); value.try_set("m_stars", level->m_stars.value()); value.try_set("________SOME_SHIT________", " vvv vvv "); - value.try_set("m_levelDesc", level->m_levelDesc); - value.try_set("m_creatorName", level->m_creatorName); + value.try_set("m_levelDesc", level->m_levelDesc.data()); + value.try_set("m_creatorName", level->m_creatorName.data()); value.try_set("m_songID", level->m_songID); value.try_set("m_levelVersion", level->m_levelVersion); value.try_set("m_gameVersion", level->m_gameVersion); value.try_set("m_levelType", (int)level->m_levelType); - value.try_set("m_capacityString", level->m_capacityString); - value.try_set("m_songIDs", level->m_songIDs); - value.try_set("m_sfxIDs", level->m_sfxIDs); + value.try_set("m_capacityString", level->m_capacityString.data()); + value.try_set("m_songIDs", level->m_songIDs.data()); + value.try_set("m_sfxIDs", level->m_sfxIDs.data()); //save json std::ofstream(level_meta_file) << value.dump(matjson::TAB_INDENTATION); } @@ -83,4 +83,4 @@ class $modify(LevelTools) { //hooking error lol return 1; } -}; \ No newline at end of file +};