-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch in ps2/opl support for game scanning #330
Conversation
Patch in ps2/opl support for game scanning
i just tryed to load a ps2 game and got this error.
|
I tried it on my local setup and it worked fine:
cd /romm/library/roms/ps2
python3
>>> import os
>>> os.listdir(os.getcwd())
['SLUS_200.91.1.iso']
>>> os.stat('SLUS_200.91.1.iso')
os.stat_result(st_mode=33188, st_ino=35754805, st_dev=16777232, st_nlink=1, st_uid=501, st_gid=20, st_size=0, st_atime=1693489458, st_mtime=1693489458, st_ctime=1693489458)
>>> os.stat('SLUS_200.91.1.iso').st_size
0 |
figured it out seems romm doesnt like symbolic link. is there a way of making it happy with symbolic links i need the files to be in two places at the sametime with out taking up double the space. |
How are you creating the symlink, |
ln -sf source destination |
If this is on the same disk, you should use a hardlink instead so they're all pointing to the same inode: |
thats did it thanks |
Patches in support for the OPL file naming convention. In the case where the filename start with a value matching the OPL serial regex (XXXX_000.00), use the name from the index to search IGDB. This also has the added benefit of using that name over the filename when the IGDB lookup fails.
Note: I chose to implement the index as an in-memory python dict due to it's relatively small size (1.1MB), and not having to load it in from a fixture file (JSON, YAML). In the future, objects like these can be stored in Redis to offload that memory footprint, while allowing for fast-ish access. Since you can't view it in github, here's the structure of that index:
cc @binarygeek119 if you want to have a look
Closes #324