File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 17
17
18
18
#include " config.h"
19
19
20
- bool Config::internal_init_done = false ;
21
20
bool Config::connect_to_network = false ;
22
21
bool Config::initialized = false ;
23
22
bool Config::shown_warning = false ;
Original file line number Diff line number Diff line change 5
5
#ifndef INKAY_CONFIG_H
6
6
#define INKAY_CONFIG_H
7
7
8
- #include < string_view>
9
- #include < nn/swkbd.h>
10
-
11
8
class Config {
12
9
public:
13
- static bool internal_init_done;
14
10
15
11
static bool connect_to_network;
16
12
Original file line number Diff line number Diff line change @@ -208,13 +208,12 @@ WUMS_APPLICATION_STARTS() {
208
208
}
209
209
210
210
WUMS_ALL_APPLICATION_STARTS_DONE () {
211
- if (!Config::internal_init_done) {
212
- setup_olv_libs ();
213
- peertopeer_patch ();
214
- matchmaking_notify_titleswitch ();
215
- hotpatchAccountSettings ();
216
- Config::internal_init_done = true ;
217
- }
211
+ // we need to do the patches here because otherwise the Config::connect_to_network flag might be set yet
212
+ setup_olv_libs ();
213
+ peertopeer_patch ();
214
+ matchmaking_notify_titleswitch ();
215
+ hotpatchAccountSettings ();
216
+
218
217
if (Config::initialized && !Config::plugin_is_loaded) {
219
218
DEBUG_FUNCTION_LINE (" Inkay is running but the plugin got unloaded" );
220
219
if (!Config::block_initialize) {
You can’t perform that action at this time.
0 commit comments