Add support for choosing network service (incl Pretendo+Custom) (#302)

This commit is contained in:
MythicalPlayz 2022-10-11 04:04:47 +02:00 committed by GitHub
parent 52cc7c5996
commit b07e9efba4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 345 additions and 22 deletions

View file

@ -8,6 +8,7 @@
#include "Cafe/GameProfile/GameProfile.h"
#include "Cafe/GraphicPack/GraphicPack2.h"
#include "config/CemuConfig.h"
#include "config/NetworkSettings.h"
#include "gui/CemuApp.h"
#include "Cafe/HW/Latte/Core/LatteOverlay.h"
#include "config/LaunchSettings.h"
@ -216,6 +217,8 @@ void mainEmulatorCommonInit()
ExceptionHandler_init();
// read config
g_config.Load();
if (NetworkConfig::XMLExists())
n_config.Load();
// symbol storage
rplSymbolStorage_init();
// static initialization
@ -345,6 +348,7 @@ int wWinMain( _In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ L
if (!LaunchSettings::HandleCommandline(lpCmdLine))
return 0;
ActiveSettings::LoadOnce();
NetworkConfig::LoadOnce();
HandlePostUpdate();
return mainEmulatorHLE();
}
@ -356,6 +360,7 @@ int main(int argc, char* argv[])
if (!LaunchSettings::HandleCommandline(argc, argv))
return 0;
ActiveSettings::LoadOnce();
NetworkConfig::LoadOnce();
HandlePostUpdate();
return mainEmulatorHLE();
}
@ -371,7 +376,7 @@ int main(int argc, char *argv[])
return 0;
ActiveSettings::LoadOnce();
NetworkConfig::LoadOnce();
HandlePostUpdate();
return mainEmulatorHLE();
}