From 08b79641d9598fa1aea62aa468b9d31521577bc4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 13 Nov 2006 23:48:56 +0000 Subject: [PATCH] fix "view log" --- stepmania/src/arch/Dialog/DialogDriver_Win32.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/Dialog/DialogDriver_Win32.cpp b/stepmania/src/arch/Dialog/DialogDriver_Win32.cpp index fa1234a13a..7818aa0855 100644 --- a/stepmania/src/arch/Dialog/DialogDriver_Win32.cpp +++ b/stepmania/src/arch/Dialog/DialogDriver_Win32.cpp @@ -11,6 +11,7 @@ #include "archutils/win32/ErrorStrings.h" #include "archutils/win32/GotoURL.h" #include "archutils/win32/RestartProgram.h" +#include "archutils/Win32/SpecialDirs.h" #if !defined(SMPACKAGE) #include "archutils/win32/WindowsResources.h" #include "archutils/win32/GraphicsWindow.h" @@ -134,9 +135,11 @@ static BOOL CALLBACK ErrorWndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP STARTUPINFO si; ZeroMemory( &si, sizeof(si) ); + RString sMyDocumentsDir = SpecialDirs::GetMyDocumentsDir(); + RString sCommand = "notepad \"" + sMyDocumentsDir + PRODUCT_ID + "/Logs/log.txt\""; CreateProcess( NULL, // pointer to name of executable module - "notepad.exe log.txt", // pointer to command line string + sCommand.GetBuffer(), // pointer to command line string NULL, // process security attributes NULL, // thread security attributes false, // handle inheritance flag