#include "common/archive.h" #include "common/common.h" #include "common/dateTime.h" #include "common/debug.h" #include "common/file.h" #include "common/stringUtils.h" #include "common/threads.h" #include "common/virtualMemory.h" #include "emulator.h" #include "kytyGitVersion.h" #include #include #include #include #include #include #include #include using namespace Common; using namespace Emulator; static std::string GetBuildString() { Date date = Date::FromMacros(std::string(__DATE__)); #if KYTY_BUILD == KYTY_BUILD_DEBUG std::string type = "Debug"; #elif KYTY_BUILD == KYTY_BUILD_RELEASE std::string type = "Release"; #else std::string type = "????"; #endif std::string compiler = Debug::GetCompiler() + "-" + Debug::GetLinker(); std::string str = fmt::format("{}, {}, ver = {}, git = {}, date = {}", type.c_str(), compiler.c_str(), KYTY_VERSION, KYTY_GIT_VERSION, date.ToString().c_str()); return str; } static void PrintUsage() { ::printf("%s\n", GetBuildString().c_str()); ::printf("kyty_emulator --game [options]\n\n"); ::printf("Options:\n"); ::printf(" --game Game directory, ELF, or ZArchive to load.\n"); ::printf(" --game-patch ETAHen cheat file.\n"); ::printf(" --addcont-dir Add-ons (DLC) folder (default: none).\n"); ::printf( " --addcont