Input and Output of the Patcher #9
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#2 Implement the Core}
Atlas/Atlas-Launcher
Reference: Atlas/Atlas-Launcher#9
Loading…
Reference in a new issue
No description provided.
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?
Input and Output of the Patcher
The patcher is responsible for applying modifications on a given file, and send back another patched file.
This require a mechanism to insert a file into the virtual file system of the patcher, and another to retrieve the output.
This can be done in multiple way, but we still need to consider multiple things :
To do so, the patch meta informations shall contains a "type" indicating which files he is looking for in the input, and which files is he supposed to receive in the end. For example, a type "Wii Games Patch" would indicate that the patcher is expecting an
iso
,wbfs
, etc. and expecting a file of the same kind in the output.A function
atlas::patch::setOutput(Path@ path)
might allow the developper to set the output file. Note that if the patcher is expected to return multiple files, either because it use another type that would return more differents files, setting others output files might be necessary, either by selecting an entire directory, or mapping files to a dictionary of output path.