vc64web / virtualc64web

vc64web - Commodore C64 Emulator for iPad iPhone Android and the Web with CSDb access for thousands of demos at your fingertip.
https://vc64web.github.io/doc/about.html
GNU General Public License v3.0
42 stars 4 forks source link

Unable to select c64 roms on iOS #226

Closed DkWeb closed 6 months ago

DkWeb commented 6 months ago

I have installed the app to my homescreen on my iPhone but I'm unable to "install" a custom rom. But I can choose to install the open roms without a problem.

After clicking on a certain rom slot within the settings dialog (e.g. "basic rom") I can choose a file from the file system, but it does never appear within the slot. There is no iOS dialog asking me for permitting the access to the filesystem, so maybe there is a problem with the rights the app is asking for?

Some basic environment information: iPhone 12 iOS: 16.7.2

mithrendal commented 6 months ago

Hi @DkWeb The emulator welcomes you with a dialog where you can choose any of the C64 compatible system ROMs stored on your iPad/iPhone , e.g. original Commodore Roms, or SpeedDOS, DolphinDOS, … (you find these files inside various other emulators like Denise, Hoxs64 or Vice (e.g. in official vice sources under folder c64 they are called kernal-901227-03.bin, basic.bin and chargen.bin, and in folder Drives you want some 1541.bin)

let me check whether the file extension has to be .bin ...

EDIT: 1.) the file can have any extension... not necessarily .bin...

2.) when you click at lets say the basic rom slot and you select the drive rom in the upcoming file dialog then it loads the rom into the drive rom slot ... there is no error message like invalid rom type ... it just eats every of the four rom types and puts them into their respective slots...

3.) when the file is not recognized as a valid rom format then the rom slot pictures are not changed, there will be no error message in the user interface. In the javascript console you will find the message

try to build RomFile
Failed to read ROM image file <your selected filename>

on iPhone pause the emulator then enable show live debug output in the settings and then go to C64 system roms and choose the file and watch the output

image

here I selected chaos engine into a rom slot which is totaly chaotic 🫣

DkWeb commented 6 months ago

Hi and thanks a lot for the quick and response and thorough explanation. You've leat me to the solution: I've dropped the roms via airdrop from my mac to the iPhone and unfortunately the files were messed up by that. Maybe it is a bit unfortunate, that no error message is displayed, but that is surely not a bug :-).