Skip to content

armgit / gecko

Public Imported from GitHub
0

A GameCube/Wii emulator and debugger written in Rust.

fix apploader hle arg base causing text section writes. center loading dialog properly in gecko-app

Layleb30085547cc5
diff --git a/crates/app/src/app.rs b/crates/app/src/app.rs
index e5335f9..8d77e40 100644
--- a/crates/app/src/app.rs
+++ b/crates/app/src/app.rs
@@ -478,7 +478,7 @@ fn overlay_card(palette: &Palette, title: &str, detail: Option<&str>, error: boo
card_col = card_col.push(text(detail.to_owned()).size(12).color(dim));
}
- let card: Element<'static, Message> = container(card_col.align_x(iced::Alignment::Center))
+ let card: Element<'static, Message> = container(card_col.width(Length::Fill).align_x(iced::Alignment::Center))
.width(Length::Fixed(420.0))
.padding(24)
.style(move |_: &Theme| container::Style {
diff --git a/crates/gecko/src/wii.rs b/crates/gecko/src/wii.rs
index 8e63b19..9974df3 100644
--- a/crates/gecko/src/wii.rs
+++ b/crates/gecko/src/wii.rs
@@ -12,8 +12,9 @@ const APPLOADER_BASE: u32 = 0x8120_0000;
/// Stack pointer for apploader execution matching Dolphin.
const APPLOADER_STACK: u32 = 0x816F_FFF0;
-/// Wii: 0x8000_4000 (GC: 0x8000_3100). TODO: Verify?
-const APPLOADER_ARG_BASE: u32 = 0x8000_4000;
+/// Must sit above every plausible DOL section and above the apploader stack
+/// or else you'll be in a world of hurt.
+const APPLOADER_ARG_BASE: u32 = 0x8170_0000;
/// Address of the OSReport function pointer passed to apploader's init().
/// Write a `blr` here to stub it out.