diff --git a/desmume/src/frontend/windows/main.cpp b/desmume/src/frontend/windows/main.cpp index bc27ff181..b05ac3d50 100755 --- a/desmume/src/frontend/windows/main.cpp +++ b/desmume/src/frontend/windows/main.cpp @@ -2968,6 +2968,10 @@ void WavRecordTo(int wavmode) if(GetSaveFileName(&ofn)) { WAV_Begin(outFilename, (WAVMode)wavmode); + + dir = Path::GetFileDirectoryPath(outFilename); + path.setpath(path.SOUNDS, dir); + WritePrivateProfileString(SECTION, SOUNDKEY, dir.c_str(), IniName); } NDS_UnPause();