Skip to content

armgit / gecko

Public Imported from GitHub
0

A GameCube/Wii emulator and debugger written in Rust.

asdasd

Laylea9bd83a21bc3
diff --git a/README.md b/README.md
index 5baead2..81a1418 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,7 @@ Gecko is in early development. The IPL works flawlessly as far as I can tell. Ma
- `wesl` based shader compiler
- LUA scripting/hooks system for runtime introspection
- egui-based debugging UI
+- Symbol parsing from ELFs and IDA Pro databases
- [Support for web browser](https://gecko.layle.dev)
- [incl. debugging capabilities](https://gecko.layle.dev/dbg)
- Terrible idle skipping :^)
diff --git a/crates/image/src/dvd.rs b/crates/image/src/dvd.rs
index 04558f6..2de0112 100644
--- a/crates/image/src/dvd.rs
+++ b/crates/image/src/dvd.rs
@@ -11,7 +11,7 @@ pub const DVD_HEADER_OFFSET: usize = 0x00000000;
pub const DVD_HEADER_INFO_OFFSET: usize = DVD_HEADER_OFFSET + DVD_HEADER_SIZE;
pub const DVD_APPLOADER_OFFSET: usize = DVD_HEADER_INFO_OFFSET + DVD_HEADER_INFO_SIZE;
-#[repr(C)]
+#[repr(C, packed)]
#[derive(FromBytes, IntoBytes, Immutable, KnownLayout, Debug)]
pub struct Header {
pub game_code: [u8; 4],
@@ -35,7 +35,7 @@ pub struct Header {
_unused3: [u8; 0x8],
}
-#[repr(C)]
+#[repr(C, packed)]
#[derive(FromBytes, IntoBytes, Immutable, KnownLayout, Debug)]
pub struct HeaderInfo {
pub debug_monitor_size: U32,
@@ -48,7 +48,7 @@ pub struct HeaderInfo {
_unused0: [u8; DVD_HEADER_INFO_SIZE - 0x1C],
}
-#[repr(C)]
+#[repr(C, packed)]
#[derive(FromBytes, IntoBytes, Immutable, KnownLayout, Debug)]
pub struct Apploader {
pub timestamp: [u8; 10],