This commit is contained in:
Glenn Maynard
2003-01-24 22:28:23 +00:00
parent 24a8ea5a47
commit bca879f9b0
6 changed files with 28 additions and 35 deletions
+2 -1
View File
@@ -15,7 +15,8 @@
#include "RageUtil.h"
#include <fstream>
#include "crash.h"
/* XXX */
#include "archutils/win32/crash.h"
RageLog* LOG; // global and accessable from anywhere in the program
+2 -2
View File
@@ -56,8 +56,8 @@ using namespace std;
/* Assertion that sets an optional message and brings up the crash handler, so
* we get a backtrace. This should probably be used instead of throwing an
* exception in most cases we expect never to happen (but not in cases that
* we do expect, such as d3d init failure.) */
#include "crash.h"
* we do expect, such as DSound init failure.) */
#include "archutils/win32/crash.h"
#define RAGE_ASSERT_M(COND, MESSAGE) { if(!(COND)) { VDCHECKPOINT_M(MESSAGE); *(char*)0=0; } }
#define RAGE_ASSERT(COND) RAGE_ASSERT_M((COND), "Assertion '" #COND "' failed")
+5 -11
View File
@@ -46,20 +46,16 @@
#include "InputQueue.h"
#include "SongCacheIndex.h"
//
// StepMania common classes
//
#include "GameConstantsAndTypes.h"
#include "tls.h"
#include "crash.h"
#include "archutils/win32/tls.h"
#include "archutils/win32/crash.h"
#include "SDL.h"
#include "SDL_opengl.h"
#ifdef _DEBUG
#ifdef DEBUG
#pragma comment(lib, "SDL-1.2.5/lib/SDLmaind.lib")
#else
#pragma comment(lib, "SDL-1.2.5/lib/SDLmain.lib")
@@ -73,8 +69,6 @@ HWND g_hWndMain = NULL;
static bool g_bHasFocus = true;
#include <time.h>
static void ChangeToDirOfExecutable(const char *argv0)
{
@@ -258,11 +252,11 @@ int main(int argc, char* argv[])
SDL_WM_SetCaption("StepMania", "StepMania");
loading_window->Paint();
srand( (unsigned)RageTimer::GetTimeSinceStart() ); // seed number generator
//
// Create game objects
//
srand( (unsigned)time(NULL) ); // seed number generator
LOG = new RageLog();
#ifdef _DEBUG
LOG->ShowConsole();
@@ -3,20 +3,18 @@
* Each sound gets its own stream, which allows for very little startup
* latency for each sound and lower CPU usage. */
#include "../../stdafx.h"
#include "stdafx.h"
#include "RageSoundDriver_DSound.h"
#include "DSoundHelpers.h"
#include "../../RageSoundManager.h"
#include "../../RageException.h"
#include "../../RageUtil.h"
#include "../../RageSound.h"
#include "../../RageLog.h"
#include "../../tls.h"
#include "RageSoundManager.h"
#include "RageException.h"
#include "RageUtil.h"
#include "RageSound.h"
#include "RageLog.h"
#include "archutils/win32/tls.h"
#include "SDL.h"
#include "../../RageTimer.h"
RageSoundManager *SOUNDMAN = NULL;
const int channels = 2;
@@ -1,12 +1,12 @@
#include "../../stdafx.h"
#include "stdafx.h"
#include "RageSoundDriver_DSound_Software.h"
#include "DSoundHelpers.h"
#include "../../RageTimer.h"
#include "../../RageLog.h"
#include "../../RageSound.h"
#include "../../RageUtil.h"
#include "../../tls.h"
#include "RageTimer.h"
#include "RageLog.h"
#include "RageSound.h"
#include "RageUtil.h"
#include "archutils/win32/tls.h"
#include "SDL.h"
@@ -1,13 +1,13 @@
#include "../../stdafx.h"
#include "stdafx.h"
#include "RageSoundDriver_WaveOut.h"
#pragma comment(lib, "winmm.lib")
#include "../../RageTimer.h"
#include "../../RageLog.h"
#include "../../RageSound.h"
#include "../../RageUtil.h"
#include "../../tls.h"
#include "RageTimer.h"
#include "RageLog.h"
#include "RageSound.h"
#include "RageUtil.h"
#include "archutils/win32/tls.h"
#include "SDL.h"