mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 10:00:27 +02:00
Add MD5 hash information for clean PAL disc and update related UI messages
This commit is contained in:
1 parent
59c0e00d3b
commit
b230c75f34
3 files changed
+11
-2
No files matched your search
@@ -362,9 +362,10 @@ class LauncherActivity : Activity() {
|
||||
showBanner(getString(R.string.home_mod_needed_message), warning = true)
|
||||
gameStatus == GameLibrary.Status.Stale -> showBanner(getString(R.string.home_game_stale), warning = true)
|
||||
gameStatus == GameLibrary.Status.Missing && discStatus == GameStorage.DiscStatus.Missing ->
|
||||
showBanner(getString(R.string.home_setup_intro), warning = false)
|
||||
showBanner(getString(R.string.home_setup_intro) + discMd5Note(), warning = false)
|
||||
gameStatus == GameLibrary.Status.Missing -> showBanner(getString(R.string.home_game_missing), warning = false)
|
||||
discStatus == GameStorage.DiscStatus.Missing -> showBanner(getString(R.string.home_data_missing, disc), warning = false)
|
||||
discStatus == GameStorage.DiscStatus.Missing ->
|
||||
showBanner(getString(R.string.home_data_missing, disc) + discMd5Note(), warning = false)
|
||||
else -> showBanner(null)
|
||||
}
|
||||
|
||||
@@ -527,6 +528,9 @@ class LauncherActivity : Activity() {
|
||||
}
|
||||
}
|
||||
|
||||
/** The clean disc's .iso hash, for the banners that ask for a disc image. */
|
||||
private fun discMd5Note(): String = "\n\n" + getString(R.string.disc_md5_note, getString(R.string.disc_md5))
|
||||
|
||||
private fun showBanner(text: String?, warning: Boolean = false) {
|
||||
if (text == null) {
|
||||
dataBanner.visibility = View.GONE
|
||||
|
||||
@@ -326,6 +326,7 @@ class SettingsPage(
|
||||
action(R.string.about_extract, R.string.about_extract_helper, R.string.home_select_disc, enabled = idle) {
|
||||
selectDiscImage()
|
||||
}
|
||||
info(R.string.about_disc_md5, activity.getString(R.string.disc_md5), stacked = true)
|
||||
// One row per game this app carries a kit for, so both are visible at once.
|
||||
for (profile in GameProfile.available(activity)) {
|
||||
val manifest = GameLibrary.manifest(activity, profile)
|
||||
|
||||
@@ -285,6 +285,10 @@
|
||||
<string name="about_logs">Logs</string>
|
||||
<string name="about_extract">Extract from disc image</string>
|
||||
<string name="about_extract_helper">Replaces DATA with the files of your own PAL disc image.</string>
|
||||
<!-- MD5 of the clean PAL (RMCP01) disc as a plain .iso (Redump). -->
|
||||
<string name="disc_md5" translatable="false">E7B1FF1FABB0789482CE2CB0661D986E</string>
|
||||
<string name="disc_md5_note">Your disc image must be the clean PAL game: as a .iso file its MD5 hash is %1$s. Compressed images (WBFS, RVZ…) have a different hash.</string>
|
||||
<string name="about_disc_md5">Clean PAL .iso MD5</string>
|
||||
<string name="about_game">Game</string>
|
||||
<string name="about_game_ready">Built by %1$s on %2$s</string>
|
||||
<string name="about_game_missing">Not installed yet</string>
|
||||
|
||||
Reference in new issue
Block a user