mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-19 08:25:09 -04:00
feat(ios): code cleanup, remove todos
Signed-off-by: rooot <hey@rooot.gay>
This commit is contained in:
parent
e2a4442261
commit
f647d3e25b
4 changed files with 1 additions and 46 deletions
loader
|
@ -109,9 +109,7 @@ if (WIN32)
|
|||
)
|
||||
list(APPEND SOURCES ${WIN_SOURCES})
|
||||
|
||||
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "iOS") # elseif(IOS) just doesn't work?
|
||||
# IOS TODO: remove the message
|
||||
message(STATUS "!!! building for ios you got it!!")
|
||||
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "iOS")
|
||||
file(GLOB IOS_SOURCES CONFIGURE_DEPENDS
|
||||
src/platform/ios/*.cpp
|
||||
)
|
||||
|
@ -119,8 +117,6 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "iOS") # elseif(IOS) just doesn't work?
|
|||
list(APPEND SOURCES ${OBJC_SOURCES})
|
||||
|
||||
elseif(APPLE)
|
||||
# IOS TODO: remove the message
|
||||
message(STATUS "!!! building for mac you suck :(")
|
||||
file(GLOB MAC_SOURCES CONFIGURE_DEPENDS
|
||||
src/platform/mac/*.cpp
|
||||
)
|
||||
|
|
|
@ -5,12 +5,6 @@
|
|||
#include <string>
|
||||
#include <type_traits>
|
||||
|
||||
// without this, typeinfo_cast doesn't compile sometimes
|
||||
#include <Geode/platform/cplatform.h>
|
||||
#ifdef GEODE_IS_IOS
|
||||
#include <Geode/platform/ItaniumCast.hpp>
|
||||
#endif
|
||||
|
||||
namespace geode::cast {
|
||||
/**
|
||||
* Alias for static_cast
|
||||
|
|
|
@ -133,9 +133,6 @@ int geodeEntry(void* platformData) {
|
|||
|
||||
tryLogForwardCompat();
|
||||
|
||||
// IOS TODO: remove this
|
||||
log::debug("save dir: {}", dirs::getSaveDir());
|
||||
|
||||
auto begin = std::chrono::high_resolution_clock::now();
|
||||
|
||||
// set up internal mod, settings and data
|
||||
|
@ -156,9 +153,6 @@ int geodeEntry(void* platformData) {
|
|||
|
||||
tryShowForwardCompat();
|
||||
|
||||
// IOS TODO: remove this
|
||||
Mod::get()->setSettingValue<bool>("show-platform-console", true);
|
||||
// open console
|
||||
if (Mod::get()->getSettingValue<bool>("show-platform-console")) {
|
||||
console::openIfClosed();
|
||||
}
|
||||
|
|
|
@ -11,35 +11,6 @@
|
|||
|
||||
using namespace geode::prelude;
|
||||
|
||||
// void dynamicEntry() {
|
||||
// auto dylib = dlopen("GeodeBootstrapper.dylib", RTLD_NOLOAD);
|
||||
// dlclose(dylib);
|
||||
|
||||
// auto workingDir = std::filesystem::path(dirs::getGameDir());
|
||||
// auto libDir = workingDir / "Frameworks";
|
||||
// auto updatesDir = workingDir / "geode" / "update";
|
||||
|
||||
// auto error = std::error_code();
|
||||
|
||||
// if (std::filesystem::exists(updatesDir / "GeodeBootstrapper.dylib", error) && !error) {
|
||||
// std::filesystem::rename(
|
||||
// updatesDir / "GeodeBootstrapper.dylib", libDir / "GeodeBootstrapper.dylib", error
|
||||
// );
|
||||
// if (error) return;
|
||||
// }
|
||||
|
||||
// geodeEntry(nullptr);
|
||||
// }
|
||||
|
||||
// extern "C" __attribute__((visibility("default"))) void dynamicTrigger() {
|
||||
// std::thread(&dynamicEntry).detach();
|
||||
// }
|
||||
|
||||
|
||||
// remove when we can figure out how to not remove it
|
||||
// auto dynamicTriggerRef = &dynamicTrigger;
|
||||
|
||||
|
||||
static bool(*s_applicationDidFinishLaunchingOrig)(void*, SEL, void*, void*);
|
||||
|
||||
bool applicationDidFinishLaunchingHook(void* self, SEL sel, void* p1, void* p2) {
|
||||
|
|
Loading…
Add table
Reference in a new issue