mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-30 06:06:18 +00:00
WiiUtils: Add a disc updater
This commit is contained in:
parent
eb1ba4b0e9
commit
916deb9004
2 changed files with 184 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue