Record every pad, not the one that happened to be first
The first recording ever made with this came back 1,766 frames of nothing. It recorded pad NOUGHT and the controller was somewhere else - which pad one lands on is an accident of the host, the same accident that made Lunar Porter read all four in the first place - and a flight flown for the purpose was lost to it. So every pad is or-ed into the byte. A demo is a record of what somebody DID, and on a machine one person is playing the number it arrived on is not part of that. It plays back on pad nought, where --pad puts the first file given, and any program that reads more than one pad reads them or-ed anyway for exactly the same reason. --record-pad takes one file now rather than filling pads in turn, because there is nothing left for the second one to mean. The check for it plays a recording on pad ONE with nought holding nothing and requires the bytes back. That is the case that was missing: the round trip was tested and passed, on pad nought, which is the only pad it could not have gone wrong on. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E2JrLzFvuFX9fgi1LDRjrW
This commit is contained in:
co-authored by
Claude Opus 5
parent
eb695a3f3b
commit
de1857f5f7
@@ -39,9 +39,10 @@ void printHelp(const char *programName) {
|
||||
printf(" 1 right, 2 left, 4 down, 8 up, 16 A, 32 B, 64 start,\n");
|
||||
printf(" 128 select.\n");
|
||||
printf(" -Y, --record-pad FILE\n");
|
||||
printf(" Write what a controller held, one byte a frame, in the\n");
|
||||
printf(" format --pad reads. Given again for the next pad. Play a\n");
|
||||
printf(" thing once and keep what happened.\n");
|
||||
printf(" Write what the controllers held, one byte a frame, in the\n");
|
||||
printf(" format --pad reads. Every pad at once, because which one a\n");
|
||||
printf(" controller lands on is the host's business. Play a thing\n");
|
||||
printf(" once and keep what happened.\n");
|
||||
printf(" -N, --sound FILE Save every sample the machine made, as raw signed 16 bit\n");
|
||||
printf(" at 48kHz. What --screen is for a picture: the only way to\n");
|
||||
printf(" check a sound on a machine with no speaker.\n");
|
||||
@@ -142,9 +143,7 @@ uint8_t parseOptions(int argc, char *argv[], EmulatorOptions *options) {
|
||||
options->sound = optarg;
|
||||
break;
|
||||
case 'Y':
|
||||
if (options->padRecordCount < PAD_DRIVE_COUNT) {
|
||||
options->padRecord[options->padRecordCount++] = optarg;
|
||||
}
|
||||
options->padRecord = optarg;
|
||||
break;
|
||||
case 'P':
|
||||
// Fills the pads in turn, the same way --disk fills the drives, so the first
|
||||
|
||||
Reference in New Issue
Block a user