mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
25 lines
553 B
Rust
25 lines
553 B
Rust
mod app;
|
|
mod profile;
|
|
mod tool;
|
|
|
|
use gtk::glib::ExitCode;
|
|
use profile::Profile;
|
|
|
|
fn main() -> ExitCode {
|
|
use app::App;
|
|
|
|
if let Err(e) = gtk::init() {
|
|
eprintln!("Failed to initialize GTK: {e}");
|
|
return ExitCode::FAILURE;
|
|
}
|
|
|
|
match Profile::init() {
|
|
Ok(profile) => match App::build(profile).run() {
|
|
Ok(app) => return app,
|
|
Err(e) => eprintln!("Failed to initialize application: {e}"),
|
|
},
|
|
Err(e) => eprintln!("Failed to initialize profile: {e}"),
|
|
}
|
|
|
|
ExitCode::FAILURE
|
|
}
|