Added default "screenshots" directory.

This commit is contained in:
spacy51 2008-10-21 19:46:44 +00:00
parent dedbb05edd
commit ca8905eb0a
4 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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('\\');

View File

@ -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())

View File

@ -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;