Added default "screenshots" directory.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@775 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
spacy51 2008-10-21 19:46:44 +00:00
parent 83a3996168
commit cba3c9dc1c
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;