mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-03 21:29:27 +00:00
[Investigation] Internal Media Type Agnostic #805
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mnadareski on GitHub (Feb 11, 2025).
Originally assigned to: @mnadareski on GitHub.
Investigate whether or not it is feasible for internals to be media type agnostic across the various dumping programs. Of the 3 dumping programs internal to MPF, only DIC actually "cares" about the media type. The other processors are all consistent in which media formats are supported.
The motivation behind this investigation is to allow for the dumping programs to deal with auto-detection of media type where possible and then just pull the information based on the system and any available files.
The outcome of this could be that multiple media type dependent pieces less expensive to maintain in terms of dev hours and allow only the "full set of outputs" to be considered. The likely outcome is that all programs except for DIC may be able to have this change done. The priority should be put on Redumper due to the still-growning userbase and default program status.
@mnadareski commented on GitHub (May 1, 2025):
Since opening this, Redumper moved toward a unified
disccommand for dumping, which basically means that all media types are treated identically on input. This doesn't solve the issue of checking for output files, but it is a step in the direction that I was hoping to achieve.@mnadareski commented on GitHub (Jun 17, 2025):
As an update to this investigation, I have a few more findings:
With the above, I will likely be trying to reduce the number of media-specific checks, but the dream of being entirely agnostic (or entirely reliant on program outputs to determine the media type) are not likely to happen soon.
@mnadareski commented on GitHub (Jul 18, 2025):
As an update here:
Until there is a way for DIC to have an agnostic dumping command, it will be nearly impossible to have the dumping step also be media type agnostic. This is an unfortunate reality that cannot be fixed from the side of MPF.
@mnadareski commented on GitHub (Jul 18, 2025):
As of
2e9970ee6a, the processors are now fully decoupled from the dumping step. No matter what is selected in the UI, the output files will be trusted instead. This removes many of the biggest concerns around trusting user input.This leaves the following open issues:
dumpcommand for DiscImageCreator@Deterous commented on GitHub (Jul 19, 2025):
Maybe keep current media detection logic just for setting the dumping speed. Users can change it after of course, and media detection is still needed for DIC.
@Deterous commented on GitHub (Sep 29, 2025):
As of
89145df0fa, the media type box is now hidden unless DiscImageCreator is selected.More of the code should be made MediaType-agnostic where possible, with the MediaType field only used for calling DiscImageCreator.
Preferably MPF.Check and MPF.CLI also only requiring MediaType when using DIC processor