C64Emulator icon indicating copy to clipboard operation
C64Emulator copied to clipboard

Can't see any files on iOS 15.2

Open rev111 opened this issue 3 years ago • 4 comments

Greetings!

I downloaded the master tree from github, built and installed with XCode 13.2.1 on an iPhone with iOS 15.2. I see the "Programs/Disks" selection, select "Disks", tap on "Upload", browse to the URL which is displayed on the device. I uploaded several files through the web interface - some are named .d64, others are named .sid. When closing+killing the app and restarting, the files are still there, so I think they have been transferred to the device. However, I can't see any. The screen remains empty.

  1. Which file format is expected, are .d64 files the right format?
  2. Is this a bug with iOS 15 (other issues seem to relate to older iOS versions)?

Thanks, l

rev111 avatar Jan 22 '22 18:01 rev111

Upon further inspection the problem seems to be that the database can't be opened because this line returns nil: https://github.com/AndyQ/C64Emulator/blob/7f024f532956b35b925059eaabd19240452ee129/C64Emulator/Utils/DatabaseManager.swift#L62

Apparently the app bundle is searched for a (sqlite?) file "games.db" and fails. I can't find this file in the project, is it there?

rev111 avatar Jan 23 '22 10:01 rev111

I fixed this by adding the games.db folder from the /resources/roms folder into the corresponding resources folder in Xcode, I can confirm it runs fine on IOS 16 with this small change.

markiehill avatar Mar 26 '23 16:03 markiehill

markiehill, I see the file games.db in C64Emulator/Resources, not in /resources/roms. I don't understand what you mean with "corresponding resources folder in Xcode", could you give a few more details? On a sidenote, to make sure I have everything right I made a fresh clone from the repo. The install instructions say I should run "pod install", but there is no Podfile found. Do I have to run cocoapods or otherwise I will miss crucial files?

rev111 avatar May 25 '23 08:05 rev111

I updated this a while ago - from memory I just pulled down the code and then moved the games.db into the right place and everything worked perfectly for me.

Screenshot 2023-05-30 at 08 35 51

I have enclosed a screenshot of where the games.db file should be.

markiehill avatar May 30 '23 07:05 markiehill