[Opentnl-cvs] tnl/zap main.cpp,1.72,1.73 osxInput.cpp,1.6,1.7
Brought to you by:
mark_frohnmayer,
s_alanet
From: Mark F. <mar...@us...> - 2004-10-08 21:26:52
|
Update of /cvsroot/opentnl/tnl/zap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12843/zap Modified Files: main.cpp osxInput.cpp Log Message: Index: main.cpp =================================================================== RCS file: /cvsroot/opentnl/tnl/zap/main.cpp,v retrieving revision 1.72 retrieving revision 1.73 diff -C2 -d -r1.72 -r1.73 *** main.cpp 5 Oct 2004 23:41:59 -0000 1.72 --- main.cpp 8 Oct 2004 21:26:41 -0000 1.73 *************** *** 47,50 **** --- 47,54 ---- #include "input.h" + #ifdef TNL_OS_MAC_OSX + #include <unistd.h> + #endif + namespace Zap { *************** *** 648,651 **** --- 652,664 ---- #endif { + #ifdef TNL_OS_MAC_OSX + char path[1024]; + strcpy(path, argv[0]); + char *pos = strrchr(path, '/'); + *pos = 0; + logprintf("Path = %s", path); + chdir(path); + #endif + //TNLLogEnable(LogConnectionProtocol, true); //TNLLogEnable(LogNetConnection, true); Index: osxInput.cpp =================================================================== RCS file: /cvsroot/opentnl/tnl/zap/osxInput.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** osxInput.cpp 29 Sep 2004 20:40:18 -0000 1.6 --- osxInput.cpp 8 Oct 2004 21:26:41 -0000 1.7 *************** *** 309,313 **** } ! bool ReadJoystick(F32 axes[MaxJoystickAxes], U32 &buttonMask) { if(!gJoystickInit) --- 309,313 ---- } ! bool ReadJoystick(F32 axes[MaxJoystickAxes], U32 &buttonMask, U32 &hatMask) { if(!gJoystickInit) *************** *** 346,348 **** } ! }; \ No newline at end of file --- 346,348 ---- } ! }; |