Skip to content

Commit

Permalink
android bug fixing...
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Jul 9, 2024
1 parent dfac809 commit 655f10d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/_main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ inline auto levels_meta_path = levels_path / "_meta";
}(value)

inline auto read_file(std::string path) {
return std::string("test");
/*if (not fs::exists(path)) {
//return std::string("test");
if (not fs::exists(path)) {
auto err = fmt::format("file \"{}\" isnt exists.", path);
log::error("{}", err);
return err;
Expand All @@ -44,7 +44,7 @@ inline auto read_file(std::string path) {
f.read(result.data(), sz);

//log::debug("\n{}({}) -> \n{}\n", __FUNCTION__, path, result);
return result;*/
return result;
}

namespace geode::cocos {
Expand Down
2 changes: 1 addition & 1 deletion src/level_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class $modify(GameLevelManagerExt, GameLevelManager) {
//save json
std::ofstream(level_meta_file) << value.dump(matjson::TAB_INDENTATION);
}
GJGameLevel* getMainLevel(int levelID, bool dontGetLevelString) {
GJGameLevel* NOT_NOW___getMainLevel(int levelID, bool dontGetLevelString) {
auto level = GameLevelManager::getMainLevel(levelID, dontGetLevelString);
//json meta
updateLevelByJson(level);
Expand Down

0 comments on commit 655f10d

Please sign in to comment.