Pomme
A partial, cross-platform implementation of the Macintosh Toolbox C API
Install / Use
/learn @jorio/PommeREADME
Pomme
A cross-platform implementation of the Macintosh Toolbox C API
Pomme is a partial, cross-platform implementation of the Macintosh Toolbox C API. It is designed to ease the porting of 90's/early 00's games written for MacOS 7-9 to modern operating systems. You can think of it as a cross-platform reimagining of Apple's own Carbon, albeit at a much reduced scope.
The goal isn't to achieve 100% source compatibility with old Mac C programs, but rather, to make it a bit easier to port them. I only intend to implement the bare minimum functionality required to keep a reasonable level of source code compatibility with the games I'm interested in porting.
Games ported with Pomme
License
Please see LICENSE.md
Features
Files and resources:
- Access files on the host's filesystem with
FSSpecstructures. - Read/write data forks.
- Access resources inside AppleDouble files (transparently presented as resource forks to application code).
QuickDraw 2D:
- Load images from QuickDraw 2D
PICTresources and files. - Manipulate ports.
- Basic draw calls: lines, rects, bitmap text, CopyBits.
Sound Manager:
- Load audio from AIFF & AIFF-C files and
sndresources. - Supported audio codecs: raw PCM,
ima4,MAC3,ulaw,alaw. - Use SndChannels to output audio thanks to the built-in software mixer (requires SDL).
QuickDraw 3D-ish:
- Basic QD3D geometry structures and math routines.
- Load 3D model data from 3DMF files.
- Please note: Accurate source compatibility with QD3D is out of scope for Pomme. For a faithful implementation of QD3D, look at Quesa.
Misc:
- Memory management routines.
- Limited playback of QuickTime
moovfiles (only Cinepak is supported). - Byte-swapping routines inspired from Python's
structformat strings to convert big-endian structs to little-endian. - Basic keyboard/mouse input via SDL.
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
