added smlauncher
This commit is contained in:
@@ -67,7 +67,7 @@ void Actor::Draw() // set the world matrix and calculate actor properties, the
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SCREEN->Translate( pos.x+0.5f, pos.y-0.5f, pos.z ); // offset so that pixels are aligned to texels
|
SCREEN->Translate( pos.x-0.5f, pos.y-0.5f, pos.z ); // offset so that pixels are aligned to texels
|
||||||
SCREEN->Scale( scale.x, scale.y, 1 );
|
SCREEN->Scale( scale.x, scale.y, 1 );
|
||||||
|
|
||||||
// super slow!
|
// super slow!
|
||||||
|
|||||||
+10
-28
@@ -15,8 +15,9 @@
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// UTIL globals
|
// UTIL globals
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
const CString g_sLogFileName = "debug.log";
|
const CString g_sLogFileName = "log.txt";
|
||||||
|
const CString g_sErrorFileName = "error.txt";
|
||||||
|
FILE* g_fileLog = NULL;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Name: randomf()
|
// Name: randomf()
|
||||||
@@ -67,12 +68,11 @@ void RageLogStart()
|
|||||||
{
|
{
|
||||||
#if defined(DEBUG) | defined(_DEBUG)
|
#if defined(DEBUG) | defined(_DEBUG)
|
||||||
|
|
||||||
// delete the old log and create a new one
|
// create a new log file, overwriting the old one
|
||||||
DeleteFile( g_sLogFileName );
|
DeleteFile( g_sLogFileName );
|
||||||
FILE *fp = NULL;
|
g_fileLog = fopen( g_sLogFileName, "w" );
|
||||||
fp = fopen( g_sLogFileName, "w" );
|
|
||||||
fclose( fp );
|
|
||||||
|
|
||||||
|
// let the OS close the file when the app exits
|
||||||
|
|
||||||
SYSTEMTIME st;
|
SYSTEMTIME st;
|
||||||
GetLocalTime( &st );
|
GetLocalTime( &st );
|
||||||
@@ -98,16 +98,7 @@ void RageLog( LPCTSTR fmt, ...)
|
|||||||
CString sBuff = vssprintf( fmt, va );
|
CString sBuff = vssprintf( fmt, va );
|
||||||
sBuff += "\n";
|
sBuff += "\n";
|
||||||
|
|
||||||
FILE *fp = NULL;
|
fprintf(g_fileLog, sBuff);
|
||||||
|
|
||||||
// open our logging file
|
|
||||||
fp = fopen( g_sLogFileName, "a" );
|
|
||||||
if( fp==NULL )
|
|
||||||
RageLog( ssprintf("Couldn't write to log %s", g_sLogFileName) );
|
|
||||||
|
|
||||||
fprintf(fp, sBuff);
|
|
||||||
|
|
||||||
fclose(fp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RageLogHr( HRESULT hr, LPCTSTR fmt, ...)
|
void RageLogHr( HRESULT hr, LPCTSTR fmt, ...)
|
||||||
@@ -398,8 +389,6 @@ void SortCStringArray( CStringArray &arrayCStrings, BOOL bSortAcsending )
|
|||||||
|
|
||||||
VOID DisplayErrorAndDie( CString sError )
|
VOID DisplayErrorAndDie( CString sError )
|
||||||
{
|
{
|
||||||
// Something very bad happened. Display an error dialog, then exit right away.
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
////////////////////////
|
////////////////////////
|
||||||
// get a stack trace
|
// get a stack trace
|
||||||
@@ -419,18 +408,11 @@ VOID DisplayErrorAndDie( CString sError )
|
|||||||
sError += "\n\n" + fromClipboard;
|
sError += "\n\n" + fromClipboard;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RageLog( "" );
|
FILE* fp = fopen( g_sErrorFileName, "w" );
|
||||||
RageLog( "// Fatal Error /////////////////////////////" );
|
|
||||||
RageLog( sError );
|
|
||||||
RageLog( "////////////////////////////////////////////" );
|
|
||||||
|
|
||||||
|
fprintf( fp, sError );
|
||||||
|
fclose( fp );
|
||||||
|
|
||||||
MessageBox(
|
|
||||||
NULL, // handle of owner window
|
|
||||||
sError, // text in message box
|
|
||||||
"Fatal Error", // address of title of message box
|
|
||||||
MB_OK | MB_ICONERROR // style of message box
|
|
||||||
);
|
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,18 @@ Package=<4>
|
|||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
Project: "smlauncher"=.\smlauncher\smlauncher.dsp - Package Owner=<4>
|
||||||
|
|
||||||
|
Package=<5>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
Package=<4>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
Project: "smpackage"=.\smpackage\smpackage.dsp - Package Owner=<4>
|
Project: "smpackage"=.\smpackage\smpackage.dsp - Package Owner=<4>
|
||||||
|
|
||||||
Package=<5>
|
Package=<5>
|
||||||
|
|||||||
@@ -85,9 +85,14 @@ LINK32=link.exe
|
|||||||
|
|
||||||
# Name "smpackage - Win32 Release"
|
# Name "smpackage - Win32 Release"
|
||||||
# Name "smpackage - Win32 Debug"
|
# Name "smpackage - Win32 Debug"
|
||||||
# Begin Group "Stepmania Package files"
|
# Begin Source File
|
||||||
|
|
||||||
# PROP Default_Filter ""
|
SOURCE=.\install.bmp
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\manage.bmp
|
||||||
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\RageUtil.cpp
|
SOURCE=..\RageUtil.cpp
|
||||||
@@ -98,6 +103,10 @@ SOURCE=..\RageUtil.h
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\ReadMe.txt
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\Resource.h
|
SOURCE=.\Resource.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
@@ -114,6 +123,10 @@ SOURCE=.\res\smpackage.ico
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\smpackage.ICO
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\smpackage.rc
|
SOURCE=.\smpackage.rc
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
@@ -145,23 +158,6 @@ SOURCE=.\StdAfx.cpp
|
|||||||
|
|
||||||
SOURCE=.\StdAfx.h
|
SOURCE=.\StdAfx.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Group
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\install.bmp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\manage.bmp
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\ReadMe.txt
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=.\smpackage.ICO
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\res\StepMania.ICO
|
SOURCE=.\res\StepMania.ICO
|
||||||
|
|||||||
Reference in New Issue
Block a user