Skip to content

Commit 03323ab

Browse files
committed
satisfy CI for web
1 parent 82405f1 commit 03323ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/screens/title.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pub(super) fn plugin(app: &mut App) {
2121
enum MenuButton {
2222
NewGame,
2323
Settings,
24+
#[cfg(not(target_arch = "wasm32"))]
2425
Quit,
2526
}
2627

@@ -150,8 +151,8 @@ fn button_system(
150151
mut commands: Commands,
151152
interaction_query: Query<(&Interaction, &MenuButton, &Children), Changed<Interaction>>,
152153
mut screen_state: ResMut<NextState<Screen>>,
153-
mut message_writer: MessageWriter<AppExit>,
154154
mut active_index: ResMut<ActiveIndex>,
155+
#[cfg(not(target_arch = "wasm32"))] mut message_writer: MessageWriter<AppExit>,
155156
) {
156157
for (interaction, menu_button, children) in interaction_query {
157158
match *interaction {
@@ -162,6 +163,7 @@ fn button_system(
162163
MenuButton::Settings => {
163164
println!("Settings button pressed");
164165
}
166+
#[cfg(not(target_arch = "wasm32"))]
165167
MenuButton::Quit => {
166168
message_writer.write(AppExit::Success);
167169
}
@@ -177,6 +179,7 @@ fn button_system(
177179
MenuButton::Settings => {
178180
active_index.0 = 1;
179181
}
182+
#[cfg(not(target_arch = "wasm32"))]
180183
MenuButton::Quit => {
181184
active_index.0 = 2;
182185
}

0 commit comments

Comments
 (0)