Automatically move dev instance to different workspace

This commit is contained in:
cool-mist 2025-05-11 16:12:05 +05:30
parent 9221f3f38a
commit c8f1c043ee
2 changed files with 15 additions and 1 deletions

1
dev Executable file
View File

@ -0,0 +1 @@
TESTING=1 cargo run

View File

@ -5,7 +5,20 @@ use sol_chess::generator;
mod game;
#[macroquad::main("Solitaire Chess")]
fn window_conf() -> Conf {
let window_name = match std::env::var("TESTING") {
Ok(_) => "DEV TESTING MOVE TO WORKSPACE 10",
Err(_) => "Solitaire Chess",
};
Conf {
window_title: window_name.to_string(),
fullscreen: false,
..Default::default()
}
}
#[macroquad::main(window_conf)]
async fn main() {
rand::srand(date::now() as u64);
let background_color = Color::from_rgba(196, 195, 208, 255);