2002-11-16 08:07:38 +00:00
|
|
|
#ifndef STEPMANIA_H
|
|
|
|
|
#define STEPMANIA_H
|
2001-12-19 05:04:20 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
File: StepMania.h
|
|
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
Desc: Objects accessable from anywhere in the program.
|
2001-12-19 05:04:20 +00:00
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
|
|
|
Chris Danford
|
2001-12-19 05:04:20 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
2003-10-02 03:06:20 +00:00
|
|
|
#include "Game.h"
|
|
|
|
|
|
2003-07-22 07:47:27 +00:00
|
|
|
int SMmain(int argc, char* argv[]);
|
2002-03-30 20:00:13 +00:00
|
|
|
void ApplyGraphicOptions();
|
2004-05-06 09:06:24 +00:00
|
|
|
void HandleException( CString error );
|
2003-01-19 04:44:22 +00:00
|
|
|
void ExitGame();
|
2003-09-25 06:05:19 +00:00
|
|
|
void ResetGame( bool ReturnToFirstScreen=true );
|
2003-10-02 03:06:20 +00:00
|
|
|
void ReadGamePrefsFromDisk( bool bSwitchToLastPlayedGame=true );
|
2003-10-02 01:39:23 +00:00
|
|
|
void SaveGamePrefsToDisk();
|
2003-10-02 03:06:20 +00:00
|
|
|
void ChangeCurrentGame( Game g );
|
2004-02-17 01:16:57 +00:00
|
|
|
|
|
|
|
|
// If successful, return filename of screenshot in sDir, else return ""
|
2004-02-22 05:04:11 +00:00
|
|
|
CString SaveScreenshot( CString sDir, bool bSaveCompressed, bool bMakeSignature, int iIndex = -1 );
|
2001-12-19 05:04:20 +00:00
|
|
|
|
2004-01-17 05:21:24 +00:00
|
|
|
#if defined(_WINDOWS)
|
2003-11-14 17:17:36 +00:00
|
|
|
#include "windows.h"
|
2003-02-14 23:16:32 +00:00
|
|
|
extern HWND g_hWndMain;
|
2003-07-15 00:45:43 +00:00
|
|
|
#endif
|
2003-07-12 19:51:40 +00:00
|
|
|
|
2003-07-15 00:47:53 +00:00
|
|
|
extern int g_argc;
|
|
|
|
|
extern char **g_argv;
|
2004-04-30 07:24:29 +00:00
|
|
|
bool GetCommandlineArgument( const CString &option, CString *argument=NULL, int iIndex=0 );
|
2003-07-15 00:47:53 +00:00
|
|
|
|
2002-11-16 08:07:38 +00:00
|
|
|
#endif
|