(Windows) Switch Record WAV to use the same directory as Record AVI.
This commit is contained in:
parent
39f473c590
commit
910661f982
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue