0
OP New Sysop Apr 20, 2026 5:14pm (edited 25x) view history

Source: src/Controllers/PlatformGameController.php

Overview

No class-level docblock. Add one at the top of the file.

Extends: App\Controllers\BaseController

Public methods

index(string $platform): void

GET /games/{platform} — one platform's cartridge shelf, with in-catalog search (?q=) and pagination (?page=).

play(string $platform, string $id): void

POST /games/{platform}/play/{id} — serve the ROM binary. Charges credits the first time a user plays a given title, like the file-exchange download flow.

romFile(string $platform, string $id): void

GET /games/{platform}/rom/{id} — serve the raw ROM binary to the xemu preRun stager. No CSRF, no credit charge, no download tracking: this is only used to inject a disk image into xemu's VFS at page-load time, not a "play" event. Auth still required (we don't want this as an open ROM mirror).

copyFromFile(string $platform, string $id): void

POST /games/{platform}/copy-from-file/{id} — copy an approved file-exchange entry into the platform's game catalog. Super Admin only. The file's extension is validated against the platform's allowed extension list.

adminIndex(): void

GET /admin/games — list every game across every platform.

adminCreate(): void

Undocumented.

adminStore(): void

Undocumented.

adminEdit(string $id): void

Undocumented.

adminUpdate(string $id): void

Undocumented.

adminDelete(string $id): void

Undocumented.


Auto-generated from source by bin/sync-class-docs.php on 2026-04-21 09:56 CDT. Re-runs overwrite this thread body.


. __  ____   ___ ____  _     _     
 / /_| ___| / _ \___ \(_)___| |__  
| '_ \___ \| | | |__) | / __| '_ \ 
| (_) |__) | |_| / __/| \__ \ | | |
 \___/____/ \___/_____|_|___/_| |_|
        D2sk - Sysop

Log in or register to reply to this thread.