00001 #ifndef STEPMANIA_H 00002 #define STEPMANIA_H 00003 00004 class Game; 00005 00006 #ifdef _XBOX 00007 void __cdecl main(); 00008 #else 00009 int main( int argc, char* argv[] ); 00010 #endif 00011 void ApplyGraphicOptions(); 00012 void NORETURN HandleException( CString error ); 00013 void ExitGame(); 00014 void ResetGame( bool ReturnToFirstScreen=true ); 00015 void ReadGamePrefsFromDisk( bool bSwitchToLastPlayedGame=true ); 00016 void SaveGamePrefsToDisk(); 00017 void ChangeCurrentGame( const Game* g ); 00018 void FocusChanged( bool bHasFocus ); 00019 00020 // If successful, return filename of screenshot in sDir, else return "" 00021 CString SaveScreenshot( CString sDir, bool bSaveCompressed, bool bMakeSignature, int iIndex = -1 ); 00022 00023 void InsertCoin( int iNum = 1 ); 00024 void InsertCredit(); 00025 00026 #if defined(_WINDOWS) 00027 #include "windows.h" 00028 extern HWND g_hWndMain; 00029 #endif 00030 00031 extern int g_argc; 00032 extern char **g_argv; 00033 bool GetCommandlineArgument( const CString &option, CString *argument=NULL, int iIndex=0 ); 00034 00035 #endif 00036 00037 /* 00038 * (c) 2001-2004 Chris Danford 00039 * All rights reserved. 00040 * 00041 * Permission is hereby granted, free of charge, to any person obtaining a 00042 * copy of this software and associated documentation files (the 00043 * "Software"), to deal in the Software without restriction, including 00044 * without limitation the rights to use, copy, modify, merge, publish, 00045 * distribute, and/or sell copies of the Software, and to permit persons to 00046 * whom the Software is furnished to do so, provided that the above 00047 * copyright notice(s) and this permission notice appear in all copies of 00048 * the Software and that both the above copyright notice(s) and this 00049 * permission notice appear in supporting documentation. 00050 * 00051 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00052 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00053 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00054 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00055 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00056 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00057 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00058 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00059 * PERFORMANCE OF THIS SOFTWARE. 00060 */