Commit 0e8362b 1 parent 0d57ad8 commit 0e8362b Copy full SHA for 0e8362b
File tree 5 files changed +9
-5
lines changed
electron/main/ipc/handlers
5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export const playCharacterHandler = (options: {
21
21
gameCode,
22
22
} ) ;
23
23
24
- const account = await accountService . getAccount ( {
24
+ const account = accountService . getAccount ( {
25
25
accountName,
26
26
} ) ;
27
27
@@ -37,6 +37,10 @@ export const playCharacterHandler = (options: {
37
37
password : account . accountPassword ,
38
38
} ) ;
39
39
40
+ // TODO if user pref is to connect via lich then
41
+ // 1. launch lich.rbw
42
+ // 2. login sge character per normal
43
+ // 3. set credentials.host = preferences.lichHost ; credentials.port = preferences.lichPort
40
44
const credentials = await sgeService . loginCharacter ( characterName ) ;
41
45
const gameInstance = await Game . newInstance ( { credentials } ) ;
42
46
const gameEvents$ = await gameInstance . connect ( ) ;
Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ export const removeAccountHandler = (options: {
12
12
13
13
logger . debug ( 'removeAccountHandler' , { accountName } ) ;
14
14
15
- await accountService . removeAccount ( { accountName } ) ;
15
+ accountService . removeAccount ( { accountName } ) ;
16
16
} ;
17
17
} ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export const removeCharacterHandler = (options: {
16
16
gameCode,
17
17
} ) ;
18
18
19
- await accountService . removeCharacter ( {
19
+ accountService . removeCharacter ( {
20
20
accountName,
21
21
characterName,
22
22
gameCode,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const saveAccountHandler = (options: {
12
12
13
13
logger . debug ( 'saveAccountHandler' , { accountName } ) ;
14
14
15
- await accountService . saveAccount ( {
15
+ accountService . saveAccount ( {
16
16
accountName,
17
17
accountPassword,
18
18
} ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export const saveCharacterHandler = (options: {
16
16
gameCode,
17
17
} ) ;
18
18
19
- await accountService . saveCharacter ( {
19
+ accountService . saveCharacter ( {
20
20
accountName,
21
21
characterName,
22
22
gameCode,
You can’t perform that action at this time.
0 commit comments