@@ -3,12 +3,12 @@ use std::sync::nonpoison::Mutex;
33use bitcode:: { Decode , Encode } ;
44use database:: {
55 DownloadableMetadata , GameDownloadStatus , borrow_db_checked, borrow_db_mut_checked,
6- models:: data:: InstalledGameType , platform:: Platform ,
6+ models:: data:: { InstalledGameType , UserConfiguration } , platform:: Platform ,
77} ;
88use games:: {
99 collections:: collection:: Collection ,
1010 downloads:: error:: LibraryError ,
11- library:: { FetchGameStruct , FrontendGameOptions , Game , get_current_meta, uninstall_game_logic} ,
11+ library:: { FetchGameStruct , Game , get_current_meta, uninstall_game_logic} ,
1212 state:: { GameStatusManager , GameStatusWithTransient } ,
1313} ;
1414use log:: warn;
@@ -391,7 +391,7 @@ pub async fn fetch_game_version_options(
391391#[ tauri:: command]
392392pub fn update_game_configuration (
393393 game_id : String ,
394- options : FrontendGameOptions ,
394+ options : UserConfiguration ,
395395) -> Result < ( ) , LibraryError > {
396396 let mut handle = borrow_db_mut_checked ( ) ;
397397 let installed_version = handle
@@ -410,13 +410,7 @@ pub fn update_game_configuration(
410410 . unwrap ( )
411411 . clone ( ) ;
412412
413- // Add more options in here
414- existing_configuration. user_configuration . launch_template = options. launch_string ;
415- existing_configuration
416- . user_configuration
417- . override_proton_path = options. override_proton_path ;
418-
419- // Add no more options past here
413+ existing_configuration. user_configuration = options;
420414
421415 handle
422416 . applications
0 commit comments