// Copyright (C) 2019 Force67 #include #include #include #include "dcore.h" static bool verifyViablity() { size_t mavail = utl::getAvailableMem() / 1024; return (mavail / 1024) >= 8160; } EXPORT int dcoreMain(int argc, char** argv) { utl::createLogger(true); if (!verifyViablity()) { LOG_ERROR("Your system doesn't have enough physical memory to run " FXNAME); return -1; } /*if (argc < 2) { LOG_ERROR("Please supply ELF path"); return -2; }*/ auto app = std::make_unique(argc, argv); if (app) { if (app->init()) { std::string temp(R"(C:\Users\vince\Desktop\Eboot_Give\Tetris_eboot.bin)"); app->boot(temp); // enter event loop return app->exec(); } } return 0; }