move games to dir
This commit is contained in:
parent
5d47366ea9
commit
bb5a24fa2b
5 changed files with 2 additions and 3 deletions
3
Makefile
3
Makefile
|
|
@ -12,8 +12,7 @@ test:
|
||||||
|
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
run:
|
run:
|
||||||
# RUST_BACKTRACE=1 cargo run -- game.ayin
|
cargo run -- games/there-she-is.ayin
|
||||||
cargo run -- game.ayin
|
|
||||||
|
|
||||||
.PHONY: review
|
.PHONY: review
|
||||||
review:
|
review:
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ fn read_file() -> std::io::Result<String> {
|
||||||
}
|
}
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
fn read_file() -> std::io::Result<String> {
|
fn read_file() -> std::io::Result<String> {
|
||||||
Ok(include_str!("../game.ayin").to_string())
|
Ok(include_str!("../games/there-she-is.ayin").to_string())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue