Files
itgmania212121/src/archutils/Xbox/arch_setup.cpp
T

59 lines
1.7 KiB
C++
Raw Normal View History

2006-01-20 08:58:01 +00:00
#include "global.h"
2006-12-07 14:16:31 +00:00
#undef main
2006-01-20 08:59:54 +00:00
void __cdecl main()
2006-01-20 08:58:01 +00:00
{
2006-01-20 08:59:54 +00:00
int argc = 1;
2006-12-07 14:16:31 +00:00
char def[] = "default.xbe";
char *argv[] = { def };
int ret=SM_main( argc, argv );
2006-01-20 08:58:01 +00:00
}
2006-12-07 14:16:31 +00:00
#ifndef _DEBUG
//release xbox libs doesnt have these functions
FILE * __cdecl _popen(const char *, const char *)
{
return NULL;
}
int __cdecl _pclose(FILE *)
{
return -1;
}
char *getenv(const char *)
{
return NULL;
}
int __cdecl system(const char *)
{
return -1;
}
#endif
2006-01-20 08:58:01 +00:00
/*
2006-01-20 08:59:54 +00:00
* (c) 2006 Chris
2006-01-20 08:58:01 +00:00
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/