From b6f7e70cddfd04a23d5fd8dc5680ce95f19e87b0 Mon Sep 17 00:00:00 2001 From: kiritow <1362050620@qq.com> Date: Sat, 1 Jul 2017 14:50:01 +0800 Subject: [PATCH] Remove main function provided in MiniEngine --- MiniEngine.cpp | 24 ------------------------ MiniEngine.h | 10 ---------- 2 files changed, 34 deletions(-) diff --git a/MiniEngine.cpp b/MiniEngine.cpp index 687a572..e4b2650 100644 --- a/MiniEngine.cpp +++ b/MiniEngine.cpp @@ -130,27 +130,3 @@ bool canexecute(std::string Path) #else /// _MINIENGINE_HAS_UNISTD == 0 /// File Functions will be implied in platform specific source file. #endif - -int _miniengine_argc; -char** _miniengine_argv; - - /// Default Setup Code -int main(int argc, char* argv[]) -{ - _miniengine_argc=argc; - _miniengine_argv=argv; - MiniEngine::SDLSystem::Init(); - int ret = AppMain(); - MiniEngine::SDLSystem::Quit(); - return ret; -} - -int GetArgc() -{ - return _miniengine_argc; -} - -char** GetArgv() -{ - return _miniengine_argv; -} diff --git a/MiniEngine.h b/MiniEngine.h index 6604e92..e48ef73 100644 --- a/MiniEngine.h +++ b/MiniEngine.h @@ -39,13 +39,3 @@ bool canread(std::string Path); bool canwrite(std::string Path); bool isexist(std::string Path); bool canexecute(std::string Path); - - /// Your Program Should Start Here -int AppMain(); - -/// MiniEngine Provides main -int main(int argc,char* argv[]); - -/// MiniEngine Provided API: Get Start Parameters -int GetArgc(); -char** GetArgv();