Open stojy opened 4 years ago
Could be worth considering. The big problem I see is that VP games have multiple file components, particularly the b2s files you mentioned, and PinballY doesn't know about those; it only knows about the table file. There'd have to be some way to tell it about any auxiliary files to be included in the "staleness" sensing. I definitely would not want to hard-code this with a b2s file search, since that's VP specific, and PinballY is meant to work with any system, even systems that we've never heard of or future systems that don't even exist yet.
Perhaps just a simple wildcard search ignoring the file extension would suffice? i.e. table media would be considered stale if it's 'last updated' timestamp is older than any files matching the table name for any extension.
e.g. TableXXX.vpx, TableXXX.b2s, TableXXX.vbs, etc.
In that way PinballY would be agnostic to the various other table filenames. Alternatively, if this is too broad you could add a generic configuration option to associate known file extensions for each system.
In addition to 'missing only' and 'capture always', adding a 'stale only' option.
The intention would be to capture media if the media file last updated timestamp is earlier than either the table or backglass.
Thus any updated table vpn/directb2s files no longer need to be manually tracked in order to be later marked for pinbally batch capture.
It'd be a great time saver for users :)