Skip to content

Commit 79ccad1

Browse files
committed
fix: Do title specific patches more than once
1 parent ed75702 commit 79ccad1

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

src/config.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
#include "config.h"
1919

20-
bool Config::internal_init_done = false;
2120
bool Config::connect_to_network = false;
2221
bool Config::initialized = false;
2322
bool Config::shown_warning = false;

src/config.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
#ifndef INKAY_CONFIG_H
66
#define INKAY_CONFIG_H
77

8-
#include <string_view>
9-
#include <nn/swkbd.h>
10-
118
class Config {
129
public:
13-
static bool internal_init_done;
1410

1511
static bool connect_to_network;
1612

src/main.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,12 @@ WUMS_APPLICATION_STARTS() {
208208
}
209209

210210
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+
218217
if (Config::initialized && !Config::plugin_is_loaded) {
219218
DEBUG_FUNCTION_LINE("Inkay is running but the plugin got unloaded");
220219
if (!Config::block_initialize) {

0 commit comments

Comments
 (0)