mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 07:39:45 -06:00
WiiUtils: Add a disc updater
This commit is contained in:
@ -21,10 +21,18 @@ enum class UpdateResult
|
||||
Succeeded,
|
||||
AlreadyUpToDate,
|
||||
|
||||
// Current region does not match disc region.
|
||||
RegionMismatch,
|
||||
// Missing update partition on disc.
|
||||
MissingUpdatePartition,
|
||||
// Missing or invalid files on disc.
|
||||
DiscReadFailed,
|
||||
|
||||
// NUS errors and failures.
|
||||
ServerFailed,
|
||||
// General download failures.
|
||||
DownloadFailed,
|
||||
|
||||
// Import failures.
|
||||
ImportFailed,
|
||||
// Update was cancelled.
|
||||
@ -37,4 +45,7 @@ using UpdateCallback = std::function<bool(size_t processed, size_t total, u64 ti
|
||||
// If no region is specified, the region of the installed System Menu will be used.
|
||||
// If no region is specified and no system menu is installed, the update will fail.
|
||||
UpdateResult DoOnlineUpdate(UpdateCallback update_callback, const std::string& region);
|
||||
|
||||
// Perform a disc update with behaviour similar to the System Menu.
|
||||
UpdateResult DoDiscUpdate(UpdateCallback update_callback, const std::string& image_path);
|
||||
}
|
||||
|
Reference in New Issue
Block a user