use PRODUCT_NAME

This commit is contained in:
Chris Danford
2005-11-04 03:24:53 +00:00
parent 99512396d7
commit ce6e56c14f
7 changed files with 17 additions and 15 deletions
+5 -3
View File
@@ -1,9 +1,11 @@
#include "ProductInfo.h"
void InformUserOfCrash( const char *sPath ) void InformUserOfCrash( const char *sPath )
{ {
NSString *s = @"StepMania has crashed. Debugging information has been output to\n\n%s\n\n" NSString *s = @PRODUCT_NAME " has crashed. Debugging information has been output to\n\n%s\n\n"
@"Please file a bug report at\n\nhttp://sf.net/tracker/?func=add&group_id=37892&atid=421366"; @"Please file a bug report at\n\n" REPORT_BUG_URL;
int ret = NSRunAlertPanel( @"StepMania has crashed", s, @"Open crashinfo.txt", @"Quit", nil, sPath ); int ret = NSRunAlertPanel( @PRODUCT_NAME " has crashed", s, @"Open crashinfo.txt", @"Quit", nil, sPath );
if( ret == NSAlertDefaultReturn ) if( ret == NSAlertDefaultReturn )
{ {
+1 -1
View File
@@ -445,7 +445,7 @@ bool VDDebugInfoInitFromMemory(VDDebugInfoContext *pctx, const void *_src) {
pctx->pRVAHeap = NULL; pctx->pRVAHeap = NULL;
if (memcmp((char *)src, "StepMania symbolic debug information", 36)) if (memcmp((char *)src, PRODUCT_NAME " symbolic debug information", 36))
return false; return false;
// Extract fields // Extract fields
@@ -7,7 +7,7 @@ void Win32RestartProgram()
TCHAR szFullAppPath[MAX_PATH]; TCHAR szFullAppPath[MAX_PATH];
GetModuleFileName(NULL, szFullAppPath, MAX_PATH); GetModuleFileName(NULL, szFullAppPath, MAX_PATH);
// Launch StepMania // Relaunch
PROCESS_INFORMATION pi; PROCESS_INFORMATION pi;
STARTUPINFO si; STARTUPINFO si;
ZeroMemory( &si, sizeof(si) ); ZeroMemory( &si, sizeof(si) );
@@ -28,7 +28,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
IDD_ERROR_DIALOG DIALOGEX 0, 0, 332, 234 IDD_ERROR_DIALOG DIALOGEX 0, 0, 332, 234
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION
CAPTION "StepMania Error" CAPTION "Error"
FONT 8, "MS Sans Serif", 0, 0, 0x0 FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN BEGIN
DEFPUSHBUTTON "Close",IDOK,265,215,60,15 DEFPUSHBUTTON "Close",IDOK,265,215,60,15
@@ -36,9 +36,9 @@ BEGIN
WS_VSCROLL | NOT WS_TABSTOP WS_VSCROLL | NOT WS_TABSTOP
PUSHBUTTON "View Log",IDC_BUTTON_VIEW_LOG,8,215,74,15 PUSHBUTTON "View Log",IDC_BUTTON_VIEW_LOG,8,215,74,15
PUSHBUTTON "Report the Error",IDC_BUTTON_REPORT,90,215,76,15 PUSHBUTTON "Report the Error",IDC_BUTTON_REPORT,90,215,76,15
PUSHBUTTON "Restart StepMania",IDC_BUTTON_RESTART,175,215,80,15 PUSHBUTTON "Restart Game",IDC_BUTTON_RESTART,175,215,80,15
CONTROL 129,IDC_STATIC,"Static",SS_BITMAP,0,0,332,38 CONTROL 129,IDC_STATIC,"Static",SS_BITMAP,0,0,332,38
LTEXT "Sorry! An error has occurred while running StepMania.\r\n\r\nSpecific details about the error may be shown in the box below:", LTEXT "Sorry! A fatal error has occurred.\r\n\r\nSpecific details about the error may be shown in the box below:",
IDC_STATIC,7,46,298,28 IDC_STATIC,7,46,298,28
END END
@@ -57,7 +57,7 @@ END
IDD_DISASM_CRASH DIALOGEX 0, 0, 399, 151 IDD_DISASM_CRASH DIALOGEX 0, 0, 399, 151
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION
CAPTION "StepMania Error" CAPTION "Error"
FONT 8, "MS Sans Serif", 0, 0, 0x1 FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN BEGIN
PUSHBUTTON "&View crash dump",IDC_CRASH_SAVE,1,135,70,15 PUSHBUTTON "&View crash dump",IDC_CRASH_SAVE,1,135,70,15
@@ -70,7 +70,7 @@ BEGIN
LTEXT "crash reason: programmer needs good whack on head", LTEXT "crash reason: programmer needs good whack on head",
IDC_STATIC_BOMBREASON,8,120,219,8 IDC_STATIC_BOMBREASON,8,120,219,8
CONTROL 121,IDC_STATIC,"Static",SS_BITMAP,1,2,396,36 CONTROL 121,IDC_STATIC,"Static",SS_BITMAP,1,2,396,36
LTEXT "StepMania has crashed due to a program error. Diagnostic information has been saved to a file called ""crashinfo.txt"" in the StepMania program directory. Hit ""View crash dump"" to view it. Please include this file in all bug reports.", LTEXT "A fatal error has occurred. Diagnostic information has been saved to a file called ""crashinfo.txt"" in the game program directory. Hit ""View crash dump"" to view it. Please include this file in all bug reports.",
IDC_STATIC,8,41,382,19 IDC_STATIC,8,41,382,19
LTEXT "Estimated call stack",IDC_STATIC,7,64,64,8 LTEXT "Estimated call stack",IDC_STATIC,7,64,64,8
END END
@@ -78,7 +78,7 @@ END
IDD_OK DIALOG 0, 0, 318, 87 IDD_OK DIALOG 0, 0, 318, 87
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP |
WS_CAPTION WS_CAPTION
CAPTION "StepMania" CAPTION "Prompt"
FONT 8, "MS Shell Dlg" FONT 8, "MS Shell Dlg"
BEGIN BEGIN
DEFPUSHBUTTON "OK",IDOK,131,66,50,14 DEFPUSHBUTTON "OK",IDOK,131,66,50,14
+1 -1
View File
@@ -267,7 +267,7 @@ int main(int argc, char **argv) {
// dump data // dump data
static const char header[64]="StepMania symbolic debug information\r\n\x1A"; static const char header[64]= PRODUCT_NAME " symbolic debug information\r\n\x1A";
fwrite(header, 64, 1, fo); fwrite(header, 64, 1, fo);
@@ -50,7 +50,7 @@ BOOL ChangeGameSettings::OnInitDialog()
// Fill the radio buttons // Fill the radio buttons
// //
IniFile ini; IniFile ini;
ini.SetPath( "Data\\StepMania.ini" ); ini.SetPath( "Data\\" PRODUCT_NAME );
ini.ReadFile(); ini.ReadFile();
CString sValue; CString sValue;
@@ -99,7 +99,7 @@ void ChangeGameSettings::OnOK()
{ {
// TODO: Add extra validation here // TODO: Add extra validation here
IniFile ini; IniFile ini;
ini.SetPath( "Data\\StepMania.ini" ); ini.SetPath( "Data\\" PRODUCT_NAME );
ini.ReadFile(); ini.ReadFile();
+1 -1
View File
@@ -195,5 +195,5 @@ BOOL MainMenuDlg::OnInitDialog()
void MainMenuDlg::OnOpenStepmaniaIni() void MainMenuDlg::OnOpenStepmaniaIni()
{ {
// TODO: Add your control notification handler code here // TODO: Add your control notification handler code here
::ShellExecute( this->m_hWnd, "open", "Data\\StepMania.ini", "", "", SW_SHOWNORMAL ); ::ShellExecute( this->m_hWnd, "open", "Data\\" PRODUCT_NAME, "", "", SW_SHOWNORMAL );
} }