mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-22 04:30:03 +00:00
Merge pull request #189 from ryandesign/minivmac-copy-attrs
MiniVMac.cc: Preserve attributes when copying
This commit is contained in:
commit
2d38cceb19
@ -460,6 +460,8 @@ void MiniVMacLauncher::CopySystemFile(const std::string &fn, bool required)
|
||||
hfs_setfork(out, 1);
|
||||
hfs_read(in, buffer.data(), fileent.u.file.rsize);
|
||||
hfs_write(out, buffer.data(), fileent.u.file.rsize);
|
||||
fileent.fdflags &= ~HFS_FNDR_HASBEENINITED;
|
||||
hfs_fsetattr(out, &fileent);
|
||||
hfs_close(in);
|
||||
hfs_close(out);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user