Closed deftmega closed 3 years ago
Drag'n'Drop feature is designed for D81 images. The logic, that if the size is exactly D81 default size, it is mounted as disk image. If not, but "small enough" it's treated as PRG file and "virtually" converted to D81 image and presented that way. However, the size was limited to 38000 bytes for whatever reasons I can't even remember right now ;) Note, that I can raise that limit, however it won't be a true solution still but surely at least kind of cure the typical situation like this.
So the solution is kinda easy, just raise PRG_MAX_SIZE
. For better solution maybe a question box would be need to ask what to do, if it's a PRG file, a "memory inject" (what UI context menu does for the similar option name) would be fancy allow both functionality to be selected as the user wishes.
According to Bit Shifter, $D700 is the max PRG size (about 217 blocks or so) which can be safely LOADed with his closed-rom flavours. So I'm about raising the limit to that size (even that, if loaded in C64 mode, it can be - ? - already a problem, but that's other question).
Also, about adding a popup window disappear on dropping file. So you can mount the dropped file as D81 (being a real D81, or converted a file to be on a D81 so can be loaded then) or using PRG run, which is a more faster and direct approach but bypasses the normal LOAD mechanism.
Just to have some love for the C65 emulator, the drag&drop question thingy should be ported there as well ;)
Only some .PRG files get detected when using drag'n drop into the XEMU window (C65/MEGA65 mode executables).
Please find attached one working (kalle65.prg) and one not working (megadots.prg).
Desktop.zip