Added default "screenshots" directory.
This commit is contained in:
parent
dedbb05edd
commit
ca8905eb0a
|
@ -102,7 +102,7 @@ BOOL Directories::OnInitDialog()
|
||||||
if(!p.IsEmpty())
|
if(!p.IsEmpty())
|
||||||
GetDlgItem(IDC_SAVE_PATH)->SetWindowText(p);
|
GetDlgItem(IDC_SAVE_PATH)->SetWindowText(p);
|
||||||
|
|
||||||
p = regQueryStringValue("captureDir", NULL);
|
p = regQueryStringValue("captureDir", DEFAULT_SCREENSHOTS_DIR);
|
||||||
if(!p.IsEmpty())
|
if(!p.IsEmpty())
|
||||||
GetDlgItem(IDC_CAPTURE_PATH)->SetWindowText(p);
|
GetDlgItem(IDC_CAPTURE_PATH)->SetWindowText(p);
|
||||||
|
|
||||||
|
|
|
@ -1083,7 +1083,7 @@ void MainWnd::screenCapture(int captureNumber)
|
||||||
{
|
{
|
||||||
CString buffer;
|
CString buffer;
|
||||||
|
|
||||||
CString captureDir = regQueryStringValue("captureDir", "");
|
CString captureDir = regQueryStringValue("captureDir", DEFAULT_SCREENSHOTS_DIR);
|
||||||
treatRelativePath( captureDir );
|
treatRelativePath( captureDir );
|
||||||
|
|
||||||
int index = theApp.filename.ReverseFind('\\');
|
int index = theApp.filename.ReverseFind('\\');
|
||||||
|
|
|
@ -564,7 +564,7 @@ void MainWnd::OnFileScreencapture()
|
||||||
else
|
else
|
||||||
name = theApp.filename;
|
name = theApp.filename;
|
||||||
|
|
||||||
CString capdir = regQueryStringValue("captureDir", "");
|
CString capdir = regQueryStringValue("captureDir", DEFAULT_SCREENSHOTS_DIR);
|
||||||
treatRelativePath( capdir );
|
treatRelativePath( capdir );
|
||||||
|
|
||||||
if(capdir.IsEmpty())
|
if(capdir.IsEmpty())
|
||||||
|
|
|
@ -66,6 +66,7 @@ enum pixelFilterType
|
||||||
|
|
||||||
#define DEFAULT_BATTERY_DIR ".\\battery"
|
#define DEFAULT_BATTERY_DIR ".\\battery"
|
||||||
#define DEFAULT_SAVESTATES_DIR ".\\savestates"
|
#define DEFAULT_SAVESTATES_DIR ".\\savestates"
|
||||||
|
#define DEFAULT_SCREENSHOTS_DIR ".\\screenshots"
|
||||||
|
|
||||||
class AVIWrite;
|
class AVIWrite;
|
||||||
class WavWriter;
|
class WavWriter;
|
||||||
|
|
Loading…
Reference in New Issue