diff --git a/repro.sh b/repro.sh index b3c64d0..ab9608b 100755 --- a/repro.sh +++ b/repro.sh @@ -8,7 +8,7 @@ cargo build ./apply.py -OUT=$(cargo build 2>&1) +OUT=$(cargo rustc -- --cfg second 2>&1) cp tiles.rs src/tiles.rs diff --git a/src/main.rs b/src/main.rs index c9c02a7..e94dba2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,10 @@ extern crate alloc; -mod tiles; + +pub struct TileDef { + pub layer: (), + #[cfg(second)] + pub blend_graphic: String, +} pub(crate) struct App { pub(crate) game: GameState, @@ -26,7 +31,7 @@ fn main() { } // this is actually used pub struct TileDb { - unknown_bg: tiles::TileDef, + unknown_bg: TileDef, } impl std::fmt::Debug for TileDb {