Replay dialog, when selecting a movie in a relative path (.\movies for example), the recent movies list stores an absolute path instead.
This commit is contained in:
parent
191196a2bb
commit
e8bed97821
|
@ -1,3 +1,4 @@
|
|||
14-may-2010 - adelikat - Win32 - Replay dialog, when selecting a movie in a relative path (.\movies for example), the recent movies list stores an absolute path instead.
|
||||
14-may-2010 - adelikat - Win32 - When recording a movie, add it to recent movies
|
||||
14-may-2010 - adelikat - Win32 - Replay dialog shows PAL flag & New PPU flag
|
||||
14-may-2010 - adelikat - New PPU flag in movie headers (doesn't change an emulators PPU state when loading a movie)
|
||||
|
|
|
@ -917,8 +917,14 @@ bool FCEUI_LoadMovie(const char *fname, bool _read_only, bool tasedit, int _paus
|
|||
}
|
||||
|
||||
#ifdef WIN32
|
||||
//Add to the recent movie menu
|
||||
AddRecentMovieFile(fname);
|
||||
//Fix relative path if necessary and then add to the recent movie menu
|
||||
extern std::string BaseDirectory;
|
||||
string name = fname;
|
||||
if (name[0] == '.' && name[1] == '\\')
|
||||
{
|
||||
name = BaseDirectory + '\\' + name.substr(2, name.length());
|
||||
}
|
||||
AddRecentMovieFile(name.c_str());
|
||||
#endif
|
||||
|
||||
LoadFM2(currMovieData, fp->stream, INT_MAX, false);
|
||||
|
|
Loading…
Reference in New Issue