#ifndef _GAME_H_
#define _GAME_H_
+#if USE_SDL
+#include "SDL.h"
+#endif
+
#if (defined(__APPLE__) && defined(__MACH__))
# ifdef PLATFORM_MACOSX
# error Do not define PLATFORM_MACOSX for new builds. It is for the old Carbonized build.
#include "TGALoader.h"
-#if USE_SDL
-#include "SDL.h"
-#endif
-
#if !PLATFORM_MACOSX
#include "WinInput.h"
#else
char tempstring[256];
#if defined(__APPLE__)
sprintf (tempstring, "%s", registrationname);
- #elif defined(_MSC_VER) || defined(__linux__)
+ #elif defined(_WIN32) || defined(__linux__)
sprintf (tempstring, "%s-windows", registrationname);
#else
#error Please make sure you have the right registration key stuff here!
struct tm *tme = localtime(&t);
sprintf(temp, "Screenshots\\Screenshot_%04d_%02d_%02d--%02d_%02d_%02d.png", tme->tm_year + 1900, tme->tm_mon + 1, tme->tm_mday, tme->tm_hour, tme->tm_min, tme->tm_sec);
+ #if defined(_WIN32)
+ mkdir("Screenshots");
+ #else
mkdir("Screenshots", S_IRWXU);
+ #endif
+
ScreenShot(temp/*"Screenshots\\Screenshot.png"*/);
/*FSSpec MAC_file;
char tempstring[256];
#if defined(__APPLE__)
sprintf (tempstring, "%s", registrationname);
- #elif defined(_MSC_VER) || defined(__linux__)
+ #elif defined(_WIN32) || defined(__linux__)
sprintf (tempstring, "%s-windows", registrationname);
#else
#error Please make sure you have the right registration key stuff here!
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#if USE_SDL
+#include "SDL.h"
+#endif
+
#include "gamegl.h"
#include "Quaternions.h"
#include "Lights.h"
#include "Constants.h"
-#if USE_SDL
-#include "SDL.h"
-#endif
-
bool visibleloading = 0;
FSOUND_SAMPLE *samp[100] = {0};
FSOUND_STREAM * strm[20] = {0};
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "Game.h"
#include "Models.h"
//#include "altivec.h"
-#include "Game.h"
extern float multiplier;
extern float viewdistance;
extern bool decals;
extern int loadscreencolor;
-#include "Game.h"
extern Game * pgame;
extern bool visibleloading;
//Functions
*/
/**> HEADER FILES <**/
+#include "Game.h"
#include "Skeleton.h"
extern float multiplier;
extern int whichjointstartarray[26];
extern int whichjointendarray[26];
-#include "Game.h"
extern Game * pgame;
extern bool visibleloading;
extern "C" void PlaySoundEx(int channel, FSOUND_SAMPLE *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused);
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "Game.h"
#include "Terrain.h"
#include "Objects.h"
-#include "Game.h"
extern XYZ viewer;
extern float viewdistance;
extern float lightambient[3],lightbrightness[3];