Skip to content

Commit

Permalink
aaaaaaaaaaaahhah hh
Browse files Browse the repository at this point in the history
wtf         how  tooooo
  • Loading branch information
user95401 committed Jul 14, 2024
1 parent ed74f03 commit 566401e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/_main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,8 @@ namespace mle_leveltools {
return level;
#endif // DEBUG
//user coin id 1329, 142 secret coin
gd::string decompressed = ZipUtils::decompressString(
level->m_levelString, true, 0
);
decompressed = std::regex_replace(std::string(decompressed.data()), std::regex(",142,"), ",1329,").data();
gd::string decompressed = ZipUtils::decompressString(level->m_levelString, true, 0);
decompressed = gd::string(std::regex_replace(std::string(decompressed.data()), std::regex(",142,"), ",1329,").data());
level->m_levelString = ZipUtils::compressString(decompressed, true, 0);
return level;
}
Expand All @@ -173,7 +171,7 @@ namespace mle_leveltools {
#endif // DEBUG
//user coin id 1329, 142 secret coin
gd::string decompressed = ZipUtils::decompressString(level->m_levelString, true, 0);
//decompressed = std::regex_replace(std::string(decompressed.data()), std::regex(",1329,"), ",142,").data();
decompressed = gd::string(std::regex_replace(std::string(decompressed.data()), std::regex(",1329,"), ",142,").data());
level->m_levelString = ZipUtils::compressString(decompressed, true, 0);
return level;
}
Expand Down

0 comments on commit 566401e

Please sign in to comment.