Remove main function provided in MiniEngine

This commit is contained in:
Kirigaya Kazuto 2017-07-01 14:50:01 +08:00
parent 17f12ecc2f
commit b6f7e70cdd
2 changed files with 0 additions and 34 deletions

View File

@ -130,27 +130,3 @@ bool canexecute(std::string Path)
#else /// _MINIENGINE_HAS_UNISTD == 0 #else /// _MINIENGINE_HAS_UNISTD == 0
/// File Functions will be implied in platform specific source file. /// File Functions will be implied in platform specific source file.
#endif #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;
}

View File

@ -39,13 +39,3 @@ bool canread(std::string Path);
bool canwrite(std::string Path); bool canwrite(std::string Path);
bool isexist(std::string Path); bool isexist(std::string Path);
bool canexecute(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();