(Windows) Switch Record WAV to use the same directory as Record AVI.

This commit is contained in:
SuuperW 2018-09-07 16:24:02 -05:00
parent 39f473c590
commit 910661f982
1 changed files with 2 additions and 2 deletions

View File

@ -2952,7 +2952,7 @@ void WavRecordTo(int wavmode)
ofn.lpstrDefExt = "wav";
ofn.lpstrTitle = "Save WAV as";
std::string dir = path.getpath(path.SOUNDS);
std::string dir = path.getpath(path.AVI_FILES);
ofn.lpstrInitialDir = dir.c_str();
path.formatname(outFilename);
ofn.lpstrFile = outFilename;
@ -2970,7 +2970,7 @@ void WavRecordTo(int wavmode)
WAV_Begin(outFilename, (WAVMode)wavmode);
dir = Path::GetFileDirectoryPath(outFilename);
path.setpath(path.SOUNDS, dir);
path.setpath(path.AVI_FILES, dir);
WritePrivateProfileString(SECTION, SOUNDKEY, dir.c_str(), IniName);
}