mirror of https://github.com/stella-emu/stella.git
Fix ZIP files in Windows not finding last path correctly.
This commit is contained in:
parent
e7d9e56e9c
commit
9d292185c0
|
@ -493,7 +493,7 @@ class AbstractFSNode
|
|||
const char* start = str.c_str();
|
||||
const char* cur = start + str.size() - 2;
|
||||
|
||||
while (cur >= start && *cur != FilesystemNode::PATH_SEPARATOR)
|
||||
while (cur >= start && !(*cur == '/' || *cur == '\\'))
|
||||
--cur;
|
||||
|
||||
return cur + 1;
|
||||
|
|
|
@ -127,7 +127,6 @@ void BrowserDialog::show(const string& startpath,
|
|||
{
|
||||
const int fontWidth = _font.getMaxCharWidth(),
|
||||
fontHeight = _font.getFontHeight(),
|
||||
HBORDER = fontWidth * 1.25,
|
||||
VGAP = fontHeight / 4;
|
||||
|
||||
_mode = mode;
|
||||
|
|
Loading…
Reference in New Issue