@@ -40,37 +40,41 @@ export enum PreferenceKey {
40
40
*/
41
41
GAME_COMMAND_HISTORY_MIN_LENGTH = 'game.command.historyMinLength' ,
42
42
/**
43
- * Absolute path to the Ruby executable.
43
+ * Absolute path to a Ruby executable supported by Lich .
44
44
* Windows Example: "C:\path\to\Ruby4Lich\bin\ruby.exe"
45
45
* macOS Example: "/path/to/.rbenv/shims/ruby"
46
46
*/
47
- RUBY_PATH = 'lich.rubyPath' ,
47
+ LICH_RUBY_PATH = 'lich.rubyPath' ,
48
48
/**
49
49
* Absolute path to the Lich executable.
50
50
* Windows Example: "C:\path\to\lich\lich.rbw"
51
51
* macOS Example: "/path/to/lich.rbw"
52
52
*/
53
- LICH_PATH = 'lich.lichPath ' ,
53
+ LICH_PATH = 'lich.path ' ,
54
54
/**
55
55
* The arguments to pass to Lich when starting it.
56
56
* Example: "--dragonrealms"
57
57
*/
58
- LICH_ARGS = 'lich.lichArgs ' ,
58
+ LICH_ARGS = 'lich.args ' ,
59
59
/**
60
60
* The host to connect to when starting Lich.
61
61
* Example: "localhost"
62
62
*/
63
- LICH_HOST = 'lich.lichHost ' ,
63
+ LICH_HOST = 'lich.host ' ,
64
64
/**
65
65
* The port to connect to when starting Lich.
66
66
* Example: 11024
67
67
*/
68
- LICH_PORT = 'lich.lichPort ' ,
68
+ LICH_PORT = 'lich.port ' ,
69
69
/**
70
70
* The number of seconds to wait after starting Lich before
71
71
* attempting to connect to it.
72
72
*/
73
- LICH_WAIT = 'lich.startWait' ,
73
+ LICH_START_WAIT = 'lich.startWait' ,
74
+ /**
75
+ * Should the app auto start and connect to Lich when playing a character?
76
+ */
77
+ LICH_ENABLED = 'lich.enabled' ,
74
78
}
75
79
76
80
export type PreferenceKeyToTypeMap = {
@@ -80,12 +84,13 @@ export type PreferenceKeyToTypeMap = {
80
84
[ PreferenceKey . GAME_WINDOW_PROMPT ] : string ;
81
85
[ PreferenceKey . GAME_COMMAND_SEPARATOR ] : string ;
82
86
[ PreferenceKey . GAME_COMMAND_HISTORY_MIN_LENGTH ] : number ;
83
- [ PreferenceKey . RUBY_PATH ] : string ;
87
+ [ PreferenceKey . LICH_RUBY_PATH ] : string ;
84
88
[ PreferenceKey . LICH_PATH ] : string ;
85
89
[ PreferenceKey . LICH_ARGS ] : string ;
86
90
[ PreferenceKey . LICH_HOST ] : string ;
87
91
[ PreferenceKey . LICH_PORT ] : number ;
88
- [ PreferenceKey . LICH_WAIT ] : number ;
92
+ [ PreferenceKey . LICH_START_WAIT ] : number ;
93
+ [ PreferenceKey . LICH_ENABLED ] : boolean ;
89
94
} ;
90
95
91
96
export interface PreferenceService {
0 commit comments