mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Update cargo toml and refactor uplay (#347)
* Update dependencies * Conditional imports for linux * Fix windows warnings * Sample testconfiguration for uplay * Refactor uplay code to remove unsafe blocks * Update version to 1.8.0 * Update cargo-lock for flatpak * Update flatpak appdata with realse 1.8.0 * Update src/platforms/uplay/platform.rs Co-authored-by: Ofacy <github@ofacy.com> --------- Co-authored-by: Ofacy <github@ofacy.com>
This commit is contained in:
co-authored by
Ofacy
parent
c092ffba88
commit
d5f038a2fa
+5
-11
@@ -151,8 +151,9 @@ fn try_get_rename_map() -> Result<HashMap<u32, String>, Box<dyn Error>> {
|
||||
Ok(deserialized)
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Clone)]
|
||||
#[derive(PartialEq, Clone, Default)]
|
||||
enum Menues {
|
||||
#[default]
|
||||
Import,
|
||||
Settings,
|
||||
Images,
|
||||
@@ -160,12 +161,6 @@ enum Menues {
|
||||
Disconnect,
|
||||
}
|
||||
|
||||
impl Default for Menues {
|
||||
fn default() -> Menues {
|
||||
Menues::Import
|
||||
}
|
||||
}
|
||||
|
||||
fn create_games_to_sync(rt: &mut Runtime, platforms: &[Box<dyn GamesPlatform>]) -> GamesToSync {
|
||||
let mut to_sync = vec![];
|
||||
for platform in platforms {
|
||||
@@ -367,15 +362,14 @@ pub fn run_ui(args: Vec<String>) -> eyre::Result<()>{
|
||||
vsync: !no_v_sync,
|
||||
..Default::default()
|
||||
};
|
||||
eframe::run_native(
|
||||
let run_result = eframe::run_native(
|
||||
"BoilR",
|
||||
native_options,
|
||||
Box::new(|cc| {
|
||||
setup(&cc.egui_ctx);
|
||||
Box::new(app)
|
||||
}),
|
||||
);
|
||||
Ok(())
|
||||
}));
|
||||
run_result.map_err(|e| eyre::eyre!("Could not initialize: {:?}", e))
|
||||
}
|
||||
|
||||
fn is_fullscreen(args: &[String]) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user