Skip to content

Commit

Permalink
android fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Jan 23, 2024
1 parent 92f13f9 commit 55e685f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ void DrawDescription()
DrawUtils::anchoredText(ImVec2(pos.x + 10, pos.y - 10 - (ImGui::CalcTextSize(Module::descMod.c_str()).y)), ImVec2(ImGui::CalcTextSize(Module::descMod.c_str()).x, ImGui::CalcTextSize(Module::descMod.c_str()).y), Module::descMod.c_str(), ImColor(255, 255, 255, 255), ImVec2(0, 0));
}

#endif

bool v = false;

class $modify (LoadingLayer)
Expand All @@ -143,6 +145,8 @@ class $modify (LoadingLayer)
{
AndroidBall::position = ccp(32, CCDirector::get()->getWinSize().height / 2);

#ifndef GEODE_IS_ANDROID

ImGuiCocos::get().setup([] {
// this runs after imgui has been setup,
// its a callback as imgui will be re initialized when toggling fullscreen,
Expand Down Expand Up @@ -182,11 +186,11 @@ class $modify (LoadingLayer)
}
});

#endif

v = true;
}

return true;
}
};

#endif
};

0 comments on commit 55e685f

Please sign in to comment.