mirror of
https://github.com/PretendoNetwork/Inkay.git
synced 2026-07-19 17:21:24 -05:00
fix: Do title specific patches more than once
This commit is contained in:
parent
ed75702ac5
commit
79ccad1fd4
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
bool Config::internal_init_done = false;
|
||||
bool Config::connect_to_network = false;
|
||||
bool Config::initialized = false;
|
||||
bool Config::shown_warning = false;
|
||||
|
|
|
|||
|
|
@ -5,12 +5,8 @@
|
|||
#ifndef INKAY_CONFIG_H
|
||||
#define INKAY_CONFIG_H
|
||||
|
||||
#include <string_view>
|
||||
#include <nn/swkbd.h>
|
||||
|
||||
class Config {
|
||||
public:
|
||||
static bool internal_init_done;
|
||||
|
||||
static bool connect_to_network;
|
||||
|
||||
|
|
|
|||
13
src/main.cpp
13
src/main.cpp
|
|
@ -208,13 +208,12 @@ WUMS_APPLICATION_STARTS() {
|
|||
}
|
||||
|
||||
WUMS_ALL_APPLICATION_STARTS_DONE() {
|
||||
if (!Config::internal_init_done) {
|
||||
setup_olv_libs();
|
||||
peertopeer_patch();
|
||||
matchmaking_notify_titleswitch();
|
||||
hotpatchAccountSettings();
|
||||
Config::internal_init_done = true;
|
||||
}
|
||||
// we need to do the patches here because otherwise the Config::connect_to_network flag might be set yet
|
||||
setup_olv_libs();
|
||||
peertopeer_patch();
|
||||
matchmaking_notify_titleswitch();
|
||||
hotpatchAccountSettings();
|
||||
|
||||
if (Config::initialized && !Config::plugin_is_loaded) {
|
||||
DEBUG_FUNCTION_LINE("Inkay is running but the plugin got unloaded");
|
||||
if (!Config::block_initialize) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user