CorsixTH
CorsixTH emulates Theme Hospital. It reads 6 files, 5 of them required: without a required file it does not start games.
About this profile
Install this emulator's files
With Batocera, Recalbox, RetroBat or KNULLI: the installer finds Batocera, Recalbox, RetroBat or KNULLI and its BIOS folder, then downloads only the files CorsixTH reads there and checks each one.
Open Start. Type PowerShell, press Enter. Click Copy. Right-click to paste. Press Enter.
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator corsixthOpen a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator corsixthTechnical notes
CorsixTH is a Lua + C++ reimplementation of Bullfrog's Theme Hospital engine. It reads graphics, sprites, levels and sounds from an untouched Theme Hospital install (full retail/GOG or the shareware demo).
App:checkInstallFolder() in CorsixTH/Lua/app.lua:1450 drives the
install discovery:
- config.theme_hospital_install (user override) is tried first (:1453). If unset or wrong, the loader scans a list of common paths (:1473-1491) looking for a folder that passes App:isThemeHospitalPath, which demands three subdirectories named data, levels and qdata (:1435-1447).
- Once a candidate is accepted, three sentinel files must exist (:1523-1525): DATA/VBlk-0.tab LEVELS/Level.L1 QDATA/SPointer.dat Any missing file aborts init with "Invalid Theme Hospital folder specified in config file..." (:1528).
- DataM/Demo.dat (:1537) marks the shareware demo install. Its presence switches a different corruption-size check on ANIMS/WINLEVEL.SMK (243188), LEVELS/LEVEL.L1 (163948) and DATA/BUTTON01.DAT (252811) at :1561-1563. Full installs instead get soft size checks on ANIMS/AREA01V.SMK, WINGAME.SMK, WINLEVEL.SMK, LOSE1.SMK and INTRO/INTRO.SM4 (:1565-1569).
- QData/Font00V.dat is read unconditionally (:1578) and its CRC32 picks the charset (mik vs cp437).
The install root is read as a tree. FileSystem:setRoot() lists the
root, each subdirectory is listed the first time a path crosses it,
and every name is matched after normalise() upper-cases it
(CorsixTH/, 93-117, 243-272). Graphics,
sprites, levels, sounds and movies are opened from that tree on
demand, so the install is declared as one directory. The files the
loader names at startup keep their own entries, written with the
upper-case names the DOS release ships and the lookup normalises to.
The sound/music path uses the game's XMI tracks when a SoundFont is
available (App:findSoundFont at CorsixTH/Lua/app.lua:1591 probes GeneralUser-GS.sf2,
FluidR3_GM.sf2, FluidR3.sf3 and three Linux system paths), and the
SoundFont is a user preference, not game data.
6 files: 5 required, 1 optional.
By kind: 6 game data.
In this collection: 6 in repo and 0 missing.
Game data
Section titled “Game data”| File | Status |
|---|---|
corsixth/Theme Hospital install directory (full game or demo)
| required in repo game data directory |
VBLK-0.TABTheme Hospital core sprite index, sentinel checked at startup
Source
| required in repo game data |
LEVEL.L1First Theme Hospital level file, sentinel checked at startup
Source | required in repo game data |
SPOINTER.DATSprite pointer table, sentinel checked at startup
Source
| required in repo game data |
FONT00V.DATTheme Hospital font, its CRC32 selects charset (mik vs cp437)
Source
| required in repo game data |
DEMO.DATDemo marker: its presence selects the demo graphics set and the demo size checks
Source | optional in repo game data |
Next steps
Section titled “Next steps”- Get the files, for the setup in use
- Every system, and the files each one needs
- When a game does not start