@@ -559,7 +559,7 @@ export function registerRequestCallbacks(state: BackState, init: () => Promise<v
559
559
return state . execMappings ;
560
560
} ) ;
561
561
562
- state . socketServer . register ( BackIn . LAUNCH_ADDAPP , async ( event , id ) => {
562
+ state . socketServer . register ( BackIn . LAUNCH_ADDAPP , async ( event , id , override ) => {
563
563
const addApp = await fpDatabase . findAddAppById ( id ) ;
564
564
if ( addApp ) {
565
565
// Force load relation
@@ -614,14 +614,16 @@ export function registerRequestCallbacks(state: BackState, init: () => Promise<v
614
614
state,
615
615
parentGame,
616
616
runAddApp : runAddAppFactory ( state ) ,
617
- autoClearWininetCache : state . preferences . autoClearWininetCache
617
+ autoClearWininetCache : state . preferences . autoClearWininetCache ,
618
+ override,
618
619
} , false ) ;
619
620
state . apiEmitters . games . onDidLaunchAddApp . fireAlert ( state , addApp , event . client , 'Error during post add app launch api event' ) ;
620
621
}
621
622
} ) ;
622
623
623
- state . socketServer . register ( BackIn . LAUNCH_GAME , async ( event , id ) => {
624
+ state . socketServer . register ( BackIn . LAUNCH_GAME , async ( event , id , override ) => {
624
625
const game = await fpDatabase . findGame ( id ) ;
626
+ console . log ( 'override: ' + override ) ;
625
627
626
628
if ( game ) {
627
629
// Make sure Server is set to configured server - Curations may have changed it
@@ -750,6 +752,7 @@ export function registerRequestCallbacks(state: BackState, init: () => Promise<v
750
752
activeConfig : activeConfig ? activeConfig : null ,
751
753
state,
752
754
autoClearWininetCache : state . preferences . autoClearWininetCache ,
755
+ override,
753
756
} ,
754
757
state . apiEmitters . games . onWillLaunchGame . fireableFactory ( state , event . client , 'Error during game launch api event' ) , false ) ;
755
758
await state . apiEmitters . games . onDidLaunchGame . fireAlert ( state , game , event . client , 'Error from post game launch api event' ) ;
@@ -1772,6 +1775,7 @@ export function registerRequestCallbacks(state: BackState, init: () => Promise<v
1772
1775
activeConfig : null ,
1773
1776
state,
1774
1777
autoClearWininetCache : state . preferences . autoClearWininetCache ,
1778
+ override : data . override ,
1775
1779
} ,
1776
1780
state . apiEmitters . games . onWillLaunchCurationGame . fireableFactory ( state , event . client , 'Error during curate game launch api event' ) ,
1777
1781
state . apiEmitters . games . onDidLaunchCurationGame . fireableFactory ( state , event . client , 'Error during curate post game launch api event' ) ,
@@ -1809,6 +1813,7 @@ export function registerRequestCallbacks(state: BackState, init: () => Promise<v
1809
1813
state,
1810
1814
parentGame : newGame ( ) ,
1811
1815
autoClearWininetCache : state . preferences . autoClearWininetCache ,
1816
+ override : data . override ,
1812
1817
} ,
1813
1818
state . apiEmitters . games . onWillLaunchCurationAddApp . fireableFactory ( state , event . client , 'Error during curate add app launch api event' ) ,
1814
1819
state . apiEmitters . games . onDidLaunchCurationAddApp . fireableFactory ( state , event . client , 'Error during curate post add app launch api event' ) ) ;
0 commit comments