Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 799 Bytes

File metadata and controls

10 lines (7 loc) · 799 Bytes

libcraftos

Shim library to allow running some CraftOS programs on Phoenix.

Installation

Pre-built versions can be installed by copying libcraftos.a and libcc.a into /lib, and all files in bin going to /bin. To run unpacked, copy all Lua files in the root to /lib/craftos, and copy the cc folder to /lib/cc.

Usage

Load any CraftOS API with local api = require "craftos.api", and load CC:T modules with local module = require "cc.module". See the CC: Tweaked documentation for more information on how to use each API.

You can also use the craftos program to run a CraftOS program with all CraftOS APIs loaded into the global table. The shell program can be used to start a fresh CraftOS shell using a CraftOS ROM mounted or extracted at /rom.