From 56902c5a9b6b59341f71098566f2d84a4af4b572 Mon Sep 17 00:00:00 2001 From: tma Date: Fri, 2 Nov 2007 23:36:23 +0000 Subject: * (bug 3393) Blank user names still possible (Michael Jard ) * (bug 3363) Download percentage overflow (Martin Doucha ) * (bug 3390) MSVC project (Julian Priestley ) * For OS X and MinGW ports, don't -I code/SDL when USE_LOCAL_HEADERS is 0 git-svn-id: svn://svn.icculus.org/quake3/trunk@1204 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/sys/sys_main.c | 20 +++++++++----------- code/sys/win_resource.rc | 5 +++++ 2 files changed, 14 insertions(+), 11 deletions(-) (limited to 'code/sys') diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c index dcefa78..453b082 100644 --- a/code/sys/sys_main.c +++ b/code/sys/sys_main.c @@ -19,13 +19,11 @@ along with Quake III Arena source code; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA =========================================================================== */ -#include + #include #include #include -#include #include -#include #include #include #include @@ -34,8 +32,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #ifndef DEDICATED -#include "SDL.h" -#include "SDL_cpuinfo.h" +#ifdef USE_LOCAL_HEADERS +# include "SDL.h" +# include "SDL_cpuinfo.h" +#else +# include +# include +#endif #endif #include "sys_local.h" @@ -163,10 +166,7 @@ void Sys_Exit( int ex ) #endif #ifdef NDEBUG - // _exit is called instead of exit since there are rumours of - // GL libraries installing atexit calls that we don't want to call - // FIXME: get some testing done with plain exit - _exit(ex); + exit(ex); #else // Cause a backtrace on error exits assert( ex == 0 ); @@ -436,7 +436,6 @@ void *Sys_LoadDll( const char *name, char *fqpath , { void *libHandle; void (*dllEntry)( intptr_t (*syscallptr)(intptr_t, ...) ); - char curpath[MAX_OSPATH]; char fname[MAX_OSPATH]; char *basepath; char *homepath; @@ -445,7 +444,6 @@ void *Sys_LoadDll( const char *name, char *fqpath , assert( name ); - getcwd(curpath, sizeof(curpath)); Q_snprintf (fname, sizeof(fname), "%s" ARCH_STRING DLL_EXT, name); // TODO: use fs_searchpaths from files.c diff --git a/code/sys/win_resource.rc b/code/sys/win_resource.rc index 2654835..cbc9ce5 100644 --- a/code/sys/win_resource.rc +++ b/code/sys/win_resource.rc @@ -57,7 +57,12 @@ END // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. +#ifndef __MINGW32__ +IDI_ICON1 ICON DISCARDABLE "../quake3.ico" +#else IDI_ICON1 ICON DISCARDABLE "misc/quake3.ico" +#endif + ///////////////////////////////////////////////////////////////////////////// // -- cgit v1.2.3