Example

Disk Detector (run browser demos for tools)

3

SP4CEBAR 2022-12-15 20:34 (Edited)

When you make a tool it usually doesn't work very well without a disk.
The browser NX player doesn't have a disk, this tool detects that so that you can load demo data from local ROM instead

When an empty disk is not detected, run the program again to detect it
The disk needs to have some change stored inside of it otherwise it's indistinguishable from having "no disk"

"no disk" is still a disk:
- it has default ROM entries
- and it has memory capacity: you can store information in "no disk"

Disk Detector.nx | Open in app
2022-12-16 08:43
Disk Detector.nx | Open in app
2022-12-16 08:24
Disk Detector.nx | Open in app
2022-12-15 22:02
Disk Detector.nx | Open in app
2022-12-15 21:58
Disk Detector.nx | Open in app
2022-12-15 21:35
Disk Detector.nx | Open in app
2022-12-15 21:28
Disk Detector.nx | Open in app
2022-12-15 20:34

SP4CEBAR 2022-12-15 20:38 (Edited)

Nooo, it doesn't work because without a disk the standard files are still named, there's only one solution for that: make it smarter


GAMELEGEND 2022-12-15 21:25 (Edited)

If I remember correctly Timo said that this is not possible but either that was for an older version or I just don't remember correctly.


after update: oh, never mind


GAMELEGEND 2022-12-15 21:33

oh maybe he said that it might be possible
I swear he said something about it


SP4CEBAR 2022-12-15 21:39

After the update, it still didn't work
The first method relied on counting file names, but "no disk" has default file names too
The second method writes a byte to an empty file (usually ROM entry zero) and then reads it, but "no disk" can... wait I found a bug, local RAM needs to be cleared first


SP4CEBAR 2022-12-15 21:59

How


SP4CEBAR 2022-12-15 21:59

does "no disk" have memory capacity?


SP4CEBAR 2022-12-15 22:03 (Edited)

I guess it can only detect disks with a size greater than zero


SP4CEBAR 2022-12-15 22:04

Empty disks seem indistinguishable from "no disk"


Log in to reply.