mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Remove main function provided in MiniEngine
This commit is contained in:
parent
17f12ecc2f
commit
b6f7e70cdd
|
@ -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;
|
||||
}
|
||||
|
|
10
MiniEngine.h
10
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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user