Add gameplay, keyboard/joystick controls, disk-backed high scores and settings, standard CMOC effects, and the approved C graphics renderer. Include the clearer attributed font, title/credits updates, source-verified Modern and Classic (40.2) scoring, meaningful regression fixtures, and recorded guest validation. Deliver QUADPSL01.DSK with fresh high scores. Retain source, licenses and selected guest evidence; exclude personal disks, private connections and build scratch. Host rules/input/persistence/video checks and memory guards pass. Official 512 KB playtests pass the recorded checks; actual 128 KB/physical joystick qualification and the normal-window buzzing retest remain pending.
29 lines
683 B
C
29 lines
683 B
C
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
#include <cmoc.h>
|
|
#include <decbfile.h>
|
|
#include "hello.h"
|
|
|
|
static DECBDrive drives[1];
|
|
static DECBFile file;
|
|
static byte words[256];
|
|
|
|
byte showDiskWords(void)
|
|
{
|
|
byte status = decb_init(drives, 1);
|
|
if (status != DECB_OK)
|
|
return status;
|
|
status = decb_registerDrive(0);
|
|
if (status == DECB_OK)
|
|
status = decb_openSectorFile(&file, 0, "WORDS.DAT");
|
|
if (status == DECB_OK)
|
|
{
|
|
status = decb_readSector(&file, words, 0);
|
|
words[255] = 0;
|
|
if (status == DECB_OK)
|
|
printf("%s\n", words);
|
|
decb_closeSectorFile(&file);
|
|
}
|
|
decb_shutdown();
|
|
return status;
|
|
}
|