mirror of
https://github.com/ksherlock/mpw.git
synced 2025-01-03 19:30:43 +00:00
keep file name when opening
This commit is contained in:
parent
95f41785eb
commit
a9553a11b5
@ -68,6 +68,7 @@ namespace MPW
|
||||
|
||||
|
||||
sname = ToolBox::ReadCString(name, true);
|
||||
std::string xname = sname;
|
||||
|
||||
Log(" open(%s, %04x)\n", sname.c_str(), f.flags);
|
||||
|
||||
@ -104,7 +105,7 @@ namespace MPW
|
||||
|
||||
if (f.flags & kO_RSRC) f.flags |= kO_BINARY;
|
||||
|
||||
auto &e = OS::Internal::FDEntry::allocate(fd);
|
||||
auto &e = OS::Internal::FDEntry::allocate(fd, std::move(xname));
|
||||
e.text = !(f.flags & kO_BINARY);
|
||||
e.resource = f.flags & kO_RSRC;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user