mirror of
https://github.com/transistorfet/moa.git
synced 2024-06-05 21:29:27 +00:00
29 lines
563 B
Rust
29 lines
563 B
Rust
|
|
use std::thread;
|
|
use std::sync::Arc;
|
|
|
|
use moa::machines::genesis::build_genesis;
|
|
use moa_minifb::MiniFrontend;
|
|
|
|
fn main() {
|
|
/*
|
|
let mut frontend = Arc::new(MiniFrontend::init_frontend());
|
|
|
|
{
|
|
let frontend = frontend.clone();
|
|
thread::spawn(move || {
|
|
let mut system = build_genesis(&*frontend).unwrap();
|
|
system.run_loop();
|
|
});
|
|
}
|
|
|
|
frontend.start();
|
|
*/
|
|
|
|
let mut frontend = MiniFrontend::init_frontend();
|
|
let mut system = build_genesis(&frontend).unwrap();
|
|
|
|
frontend.start(system);
|
|
}
|
|
|