{
  "commit": "3effc4a043e0fca93f5882c62eba9a2344b02d56",
  "count": 1,
  "generated_at": "2026-11-24T10:38:35Z",
  "items": [
    {
      "id": "corsixth",
      "profile": {
        "core_classification": "game_engine",
        "core_version": "v0.70.1-263-ge5668b9",
        "cores": [
          "corsixth"
        ],
        "display_name": "Theme Hospital (CorsixTH)",
        "emulator": "CorsixTH",
        "files": [
          {
            "category": "game_data",
            "description": "Theme Hospital install directory (full game or demo)",
            "name": "corsixth/",
            "note": "Accepted as an install when it holds data, levels and qdata subdirectories. The rest of the tree is opened by name on demand.",
            "path": "corsixth/",
            "required": true,
            "source_ref": "CorsixTH/Lua/filesystem.lua:64-76, CorsixTH/Lua/app.lua:1435-1447, 1454, 1501",
            "system": "theme-hospital",
            "type": "directory"
          },
          {
            "category": "game_data",
            "description": "Theme Hospital core sprite index, sentinel checked at startup",
            "name": "VBLK-0.TAB",
            "note": "Looked up as Data/VBlk-0.tab.",
            "path": "corsixth/DATA/VBLK-0.TAB",
            "required": true,
            "source_ref": "CorsixTH/Lua/app.lua:1523",
            "system": "theme-hospital"
          },
          {
            "category": "game_data",
            "description": "First Theme Hospital level file, sentinel checked at startup",
            "name": "LEVEL.L1",
            "note": "Looked up as Levels/Level.L1. With the demo marker present, a size more than 1024 bytes away from 163948 is reported as corrupt and the game still starts.",
            "path": "corsixth/LEVELS/LEVEL.L1",
            "required": true,
            "source_ref": "CorsixTH/Lua/app.lua:1524, 1562",
            "system": "theme-hospital"
          },
          {
            "category": "game_data",
            "description": "Sprite pointer table, sentinel checked at startup",
            "name": "SPOINTER.DAT",
            "note": "Looked up as QData/SPointer.dat.",
            "path": "corsixth/QDATA/SPOINTER.DAT",
            "required": true,
            "source_ref": "CorsixTH/Lua/app.lua:1525",
            "system": "theme-hospital"
          },
          {
            "category": "game_data",
            "description": "Theme Hospital font, its CRC32 selects charset (mik vs cp437)",
            "name": "FONT00V.DAT",
            "note": "Looked up as QData/Font00V.dat.",
            "path": "corsixth/QDATA/FONT00V.DAT",
            "required": true,
            "source_ref": "CorsixTH/Lua/app.lua:1578-1586",
            "system": "theme-hospital"
          },
          {
            "category": "game_data",
            "description": "Demo marker: its presence selects the demo graphics set and the demo size checks",
            "name": "DEMO.DAT",
            "note": "Looked up as DataM/Demo.dat. Absent from a full install.",
            "path": "corsixth/DATAM/DEMO.DAT",
            "required": false,
            "source_ref": "CorsixTH/Lua/app.lua:1537-1541, 1560-1563",
            "system": "theme-hospital"
          }
        ],
        "notes": "CorsixTH is a Lua + C++ reimplementation of Bullfrog's Theme Hospital\nengine. It reads graphics, sprites, levels and sounds from an\nuntouched Theme Hospital install (full retail/GOG or the shareware\ndemo).\n\nApp:checkInstallFolder() in CorsixTH/Lua/app.lua:1450 drives the\ninstall discovery:\n  1. config.theme_hospital_install (user override) is tried first\n     (:1453). If unset or wrong, the loader scans a list of common\n     paths (:1473-1491) looking for a folder that passes\n     App:isThemeHospitalPath, which demands three subdirectories\n     named data, levels and qdata (:1435-1447).\n  2. Once a candidate is accepted, three sentinel files must exist\n     (:1523-1525):\n       DATA/VBlk-0.tab\n       LEVELS/Level.L1\n       QDATA/SPointer.dat\n     Any missing file aborts init with \"Invalid Theme Hospital\n     folder specified in config file...\" (:1528).\n  3. DataM/Demo.dat (:1537) marks the shareware demo install. Its\n     presence switches a different corruption-size check on\n     ANIMS/WINLEVEL.SMK (243188), LEVELS/LEVEL.L1 (163948) and\n     DATA/BUTTON01.DAT (252811) at :1561-1563. Full installs instead\n     get soft size checks on ANIMS/AREA01V.SMK, WINGAME.SMK,\n     WINLEVEL.SMK, LOSE1.SMK and INTRO/INTRO.SM4 (:1565-1569).\n  4. QData/Font00V.dat is read unconditionally (:1578) and its CRC32\n     picks the charset (mik vs cp437).\n\nThe install root is read as a tree. FileSystem:setRoot() lists the\nroot, each subdirectory is listed the first time a path crosses it,\nand every name is matched after normalise() upper-cases it\n(CorsixTH/Lua/filesystem.lua:59-76, 93-117, 243-272). Graphics,\nsprites, levels, sounds and movies are opened from that tree on\ndemand, so the install is declared as one directory. The files the\nloader names at startup keep their own entries, written with the\nupper-case names the DOS release ships and the lookup normalises to.\n\nThe sound/music path uses the game's XMI tracks when a SoundFont is\navailable (App:findSoundFont at CorsixTH/Lua/app.lua:1591 probes GeneralUser-GS.sf2,\nFluidR3_GM.sf2, FluidR3.sf3 and three Linux system paths), and the\nSoundFont is a user preference, not game data.\n",
        "profiled_date": "2026-10-04",
        "source": "https://github.com/CorsixTH/CorsixTH",
        "source_commit": "e5668b9b2a6f59c492b2446821528d67f5d0ee53",
        "systems": [
          "theme-hospital"
        ],
        "type": "standalone",
        "upstream": null,
        "verification": "existence",
        "version_basis": {
          "distance": 263,
          "kind": "tag",
          "tag": "v0.70.1"
        }
      }
    }
  ],
  "kind": "emulators",
  "schema_version": 1
}
