mirror of https://github.com/stella-emu/stella.git
For FSNodeUNIX, use actual symlink name instead of underlying name (fixes #325),
This commit is contained in:
parent
68eec27c5c
commit
64fd3f50f9
|
@ -52,8 +52,11 @@
|
|||
* Fixed emulator crash when starting SaveKey ROMs from commandline with
|
||||
SaveKey messages enabled.
|
||||
|
||||
* Fixed missing TV format update in frame stats dialog when switching display
|
||||
type.
|
||||
* Fixed missing TV format update in frame stats dialog when switching
|
||||
display type.
|
||||
|
||||
* For UNIX systems: in the ROM launcher, when using symlinks use the
|
||||
symlink pathname instead of the underlying filesystem pathname.
|
||||
|
||||
* Updated PAL palette.
|
||||
|
||||
|
|
|
@ -63,10 +63,13 @@ FilesystemNodePOSIX::FilesystemNodePOSIX(const string& p, bool verify)
|
|||
_path.replace(0, 1, home);
|
||||
}
|
||||
|
||||
// Get absolute path
|
||||
char buf[MAXPATHLEN];
|
||||
if(realpath(_path.c_str(), buf))
|
||||
_path = buf;
|
||||
// Get absolute path (only used for relative directories)
|
||||
if(_path[0] == '.')
|
||||
{
|
||||
char buf[MAXPATHLEN];
|
||||
if(realpath(_path.c_str(), buf))
|
||||
_path = buf;
|
||||
}
|
||||
|
||||
_displayName = lastPathComponent(_path);
|
||||
|
||||
|
|
Loading…
Reference in New Issue