(Windows) Save selected WAV path

This commit is contained in:
SuuperW 2018-09-07 16:14:00 -05:00
parent 3b310082dc
commit 39f473c590
1 changed files with 4 additions and 0 deletions

View File

@ -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();