Skip to content

Virtual Filesystem

Retro Jack edited this page Mar 26, 2026 · 56 revisions

Virtual Filesystem

The virtual filesystem is a JavaScript object defined in prompt/index.html. It simulates a single drive (C:) with directories and files.

Structure

C:\
├── AUTOEXEC.BAT        (runs on boot — navigates to C:\LGR and lists files)
├── CHANGES.BAT         (shows changelog)
│
├── LGR\
│   ├── YOUTUBE.COM     → https://www.youtube.com/@LGR
│   ├── BSKY.COM        → https://bsky.app/profile/lgr-yt.bsky.social
│   ├── REDDIT.BAT      → https://www.reddit.com/r/LGR/
│   ├── DONATE.BAT      → http://donate.lazygamereviews.com/
│   └── PATREON.COM     → https://www.patreon.com/LazyGameReviews
│
└── GAMES\
    ├── SW.BAT          (navigates to SHAREWRE and lists files)
    ├── DOOM\           → Archive.org — The Ultimate Doom
    ├── DUKE2\          → Archive.org — Duke Nukem II
    ├── ZORK\           → Archive.org — Zork I
    ├── GALAXY\         → Archive.org — Commander Keen: Goodbye Galaxy
    ├── OOTW\           → Archive.org — Out of This World
    ├── EPICPIN\        → Archive.org — Epic Pinball
    ├── TYRIAN\         → Archive.org — Tyrian 2.1
    ├── SC2KCD\         → Archive.org — SimCity 2000 CD
    ├── WOLF3D\         → ClassicReload — Wolfenstein 3D
    └── SHAREWRE\       (150+ shareware titles via ClassicDOSGames.com)

File Object Format

Each file in the fs array is a JavaScript object with:

Property Type Description
name string Filename (e.g. DOOM.EXE, AUTOEXEC.BAT)
link string URL to open in a new tab when the file is executed
data string Text content or batch script commands (newline-separated)

Files with link open in a new tab. Files with data and a .bat extension are executed as batch scripts.

Clone this wiki locally