diff --git a/src/win32/Directories.cpp b/src/win32/Directories.cpp index 4df6418b..0aea6679 100644 --- a/src/win32/Directories.cpp +++ b/src/win32/Directories.cpp @@ -102,7 +102,7 @@ BOOL Directories::OnInitDialog() if(!p.IsEmpty()) GetDlgItem(IDC_SAVE_PATH)->SetWindowText(p); - p = regQueryStringValue("captureDir", NULL); + p = regQueryStringValue("captureDir", DEFAULT_SCREENSHOTS_DIR); if(!p.IsEmpty()) GetDlgItem(IDC_CAPTURE_PATH)->SetWindowText(p); diff --git a/src/win32/MainWnd.cpp b/src/win32/MainWnd.cpp index 90892c13..cf0b5f44 100644 --- a/src/win32/MainWnd.cpp +++ b/src/win32/MainWnd.cpp @@ -1083,7 +1083,7 @@ void MainWnd::screenCapture(int captureNumber) { CString buffer; - CString captureDir = regQueryStringValue("captureDir", ""); + CString captureDir = regQueryStringValue("captureDir", DEFAULT_SCREENSHOTS_DIR); treatRelativePath( captureDir ); int index = theApp.filename.ReverseFind('\\'); diff --git a/src/win32/MainWndFile.cpp b/src/win32/MainWndFile.cpp index d50e10ed..579e6d40 100644 --- a/src/win32/MainWndFile.cpp +++ b/src/win32/MainWndFile.cpp @@ -564,7 +564,7 @@ void MainWnd::OnFileScreencapture() else name = theApp.filename; - CString capdir = regQueryStringValue("captureDir", ""); + CString capdir = regQueryStringValue("captureDir", DEFAULT_SCREENSHOTS_DIR); treatRelativePath( capdir ); if(capdir.IsEmpty()) diff --git a/src/win32/VBA.h b/src/win32/VBA.h index 92b42432..ee9056d6 100644 --- a/src/win32/VBA.h +++ b/src/win32/VBA.h @@ -66,6 +66,7 @@ enum pixelFilterType #define DEFAULT_BATTERY_DIR ".\\battery" #define DEFAULT_SAVESTATES_DIR ".\\savestates" +#define DEFAULT_SCREENSHOTS_DIR ".\\screenshots" class AVIWrite; class WavWriter;