Previous Thread
Next Thread
Print Thread
Page 39 of 116 1 2 37 38 39 40 41 115 116
Joined: May 2012
Posts: 429
Likes: 1
R
Senior Member
Offline
Senior Member
R
Joined: May 2012
Posts: 429
Likes: 1
According to the Tafoid's answer, i'm affraid it ain't gonna be fixed frown

Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
Well, I talked to Micko if someone's working on it (he said "not that he's aware") and will give it a try... I actually don't think it's "impossible" smile.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
The problem seems to be that the audit is searching the files not as software-list parts but as "system parts". For example, putting any of the software-list CHDs in one of the ROM paths will make the verification happy smile. However, that wouldn't work with software-lists when starting the entries...


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: Jan 2006
Posts: 3,690
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,690
but if you -verifyroms a MAME game with chd, like kinst, what is the result? is the chd verified or not?

Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
It IS verified, of course... but for software-lists those need to be searched for (also) in "<rompath>/<software-list>/<software-entry>[/|.zip|.7z]".


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
Here's an excerpt from an strace on Linux for "mess64 -rp /home/games/mess/roms -verifysoftlist mac_hdd":

Code:
...
open("/home/games/mess/roms/mac2fdhd.zip", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0664, st_size=153840, ...}) = 0
pread(5, "\207U\2233\355\374\354\242U\223G\315\214\233\10\26\327y\253\306vu\217\232\311b\2624rl,\375"..., 1024, 152816) = 1024
pread(5, "PK\1\2\0\0\24\0\2\0\10\0\22]\203Bo\226;\316CX\2\0\0\0\4\0\f\0\0\0"..., 58, 153721) = 58
close(5)                                = 0
open("/home/games/mess/roms.zip", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/games/mess.zip", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("/home/games.zip", O_RDONLY)       = -1 ENOENT (No such file or directory)
open("/home.zip", O_RDONLY)             = -1 ENOENT (No such file or directory)
open(".zip", O_RDONLY)                  = -1 ENOENT (No such file or directory)
open("/home/games/mess/roms/mac608.chd", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/games/mess/roms.7z", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/games/mess.7z", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("/home/games.7z", O_RDONLY)        = -1 ENOENT (No such file or directory)
open("/home.7z", O_RDONLY)              = -1 ENOENT (No such file or directory)
open(".7z", O_RDONLY)                   = -1 ENOENT (No such file or directory)
open("/home/games/mess/roms.zip", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/games/mess.zip", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("/home/games.zip", O_RDONLY)       = -1 ENOENT (No such file or directory)
open("/home.zip", O_RDONLY)             = -1 ENOENT (No such file or directory)
open(".zip", O_RDONLY)                  = -1 ENOENT (No such file or directory)
...

So, it's simply not searching where it's supposed to be searching!

As opposed to starting an actual software-list entry, where it finally finds the CHD in "/home/games/mess/roms/mac_hdd/mac750/mac750.chd" (strace excerpt from "mess64 -rp /home/games/mess/roms macclas2 -hard1 mac_hdd:mac750:hdd"):

Code:
...
open("/home/games/mess/roms/macclas2/mac750.chd", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/games/mess/roms/macclas2.7z", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/games/mess/roms.7z", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/games/mess.7z", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("/home/games.7z", O_RDONLY)        = -1 ENOENT (No such file or directory)
open("/home.7z", O_RDONLY)              = -1 ENOENT (No such file or directory)
open(".7z", O_RDONLY)                   = -1 ENOENT (No such file or directory)
open("/home/games/mess/roms.zip", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/games/mess.zip", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("/home/games.zip", O_RDONLY)       = -1 ENOENT (No such file or directory)
open("/home.zip", O_RDONLY)             = -1 ENOENT (No such file or directory)
open(".zip", O_RDONLY)                  = -1 ENOENT (No such file or directory)
open("/home/games/mess/roms/mac750.chd", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/games/mess/roms.7z", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/games/mess.7z", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("/home/games.7z", O_RDONLY)        = -1 ENOENT (No such file or directory)
open("/home.7z", O_RDONLY)              = -1 ENOENT (No such file or directory)
open(".7z", O_RDONLY)                   = -1 ENOENT (No such file or directory)
open("/home/games/mess/roms.zip", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/games/mess.zip", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("/home/games.zip", O_RDONLY)       = -1 ENOENT (No such file or directory)
open("/home.zip", O_RDONLY)             = -1 ENOENT (No such file or directory)
open(".zip", O_RDONLY)                  = -1 ENOENT (No such file or directory)
open("/home/games/mess/roms/mac_hdd/mac750/mac750.chd", O_RDONLY) = 12
...

Last edited by qmc2; 05/22/13 01:45 PM.

A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: Jan 2006
Posts: 3,690
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,690
well, by adding a few printfs to audit.c, I was able to see that the code properly calls audit_one_disk (emu/audit.c line 475) for each item but it fails the (err == CHDERR_NONE) at line 482, i.e. something goes wrong when the code attempts to open the chd...

I have failed to find the reason though

Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
Yes, that's what I did first too (adding printf's in audit.c) to find out that the file wasn't found... then I checked with strace where it looks for it.

Last edited by qmc2; 05/22/13 01:10 PM.

A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
@eta, for clarification: it's not even trying to open the CHD, it just doesn't find it because it's not searching in the right place(s)!

As I said above, when I put the software-list CHD (i.e. mac750.chd) in one of the ROM paths it will be found and verified successfully!! So it's not that software-list CHDs can't be verified at all.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: Jan 2006
Posts: 3,690
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,690
not finding the file because it's searching the wrong place is indeed a special case of "something goes wrong when the code attempts to open the chd" :P

the problem is the last NULL parameter of the open_disk_image call at line 486, which is the "locationtag" that it is used properly when you load from softlist
it shall be in the format "swlist % clonename % parentname" to allow the various places to be properly scanned

as is audit_one_disk has no way to retrieve the proper locationtag, and hence there is no easy way to fix this. I will see if I have any smart idea for a solution, or if Micko or you or anyone else beats me to it...

Page 39 of 116 1 2 37 38 39 40 41 115 116

Moderated by  qmc2 

Link Copied to Clipboard
Who's Online Now
1 members (MrBogi), 26 guests, and 10 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,103
Posts119,274
Members5,019
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com