autc04 / Retro68

a gcc-based cross-compiler for classic 68K and PPC Macintoshes
GNU General Public License v3.0
548 stars 54 forks source link

MiniVMac.cc: Preserve attributes when copying #189

Closed ryandesign closed 1 year ago

ryandesign commented 2 years ago

When copying files from the system disk image to the new disk image, preserve all attributes (creation date, modification date, bundle bit, locked bit, etc.), except clear the inited bit so that the Finder chooses new icon positions, otherwise (under System 6 at least) the icons pile up on top of each other. Preserving the bundle bit in particular tells the Finder to look in the file for icon information when building the desktop database, without which the files all show generic icons in the Finder.