mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-16 04:36:59 +00:00
DownloadManager: Always use Nintendo servers + additional streamlining
- Download manager now always uses Nintendo servers. Requires only a valid OTP and SEEPROM dump so you can use it in combination with a Pretendo setup even without a NNID
- Account drop down removed from download manager since it's not required
- Internally all our API requests now support overriding which service to use
- Drop support for act-url and ecs-url command line parameters. Usage of network_services.xml ("custom" option in the UI) is preferred
This commit is contained in:
parent
989e2b8c8c
commit
efbbb817fe
29 changed files with 323 additions and 338 deletions
|
|
@ -3,13 +3,15 @@
|
|||
#include "ConfigValue.h"
|
||||
#include "XMLConfig.h"
|
||||
|
||||
|
||||
enum class NetworkService {
|
||||
Nintendo,
|
||||
Pretendo,
|
||||
Custom,
|
||||
enum class NetworkService
|
||||
{
|
||||
Nintendo,
|
||||
Pretendo,
|
||||
Custom
|
||||
};
|
||||
struct NetworkConfig {
|
||||
|
||||
struct NetworkConfig
|
||||
{
|
||||
NetworkConfig()
|
||||
{
|
||||
|
||||
|
|
@ -69,4 +71,15 @@ struct PretendoURLs {
|
|||
|
||||
typedef XMLDataConfig<NetworkConfig, &NetworkConfig::Load, &NetworkConfig::Save> XMLNetworkConfig_t;
|
||||
extern XMLNetworkConfig_t n_config;
|
||||
inline NetworkConfig& GetNetworkConfig() { return n_config.data();};
|
||||
inline NetworkConfig& GetNetworkConfig() { return n_config.data();};
|
||||
|
||||
inline bool IsNetworkServiceSSLDisabled(NetworkService service)
|
||||
{
|
||||
if(service == NetworkService::Nintendo)
|
||||
return false;
|
||||
else if(service == NetworkService::Pretendo)
|
||||
return true;
|
||||
else if(service == NetworkService::Custom)
|
||||
return GetNetworkConfig().disablesslver.GetValue();
|
||||
return false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue