rpcsx/rpcs3/Emu/NP/rpcn_config.h

31 lines
771 B
C
Raw Normal View History

2020-12-05 13:08:24 +01:00
#pragma once
2020-08-27 21:47:04 +02:00
#include "Utilities/Config.h"
struct cfg_rpcn : cfg::node
{
cfg::string host{this, "Host", "np.rpcs3.net"};
cfg::string npid{this, "NPID", ""};
cfg::string password{this, "Password", ""};
cfg::string token{this, "Token", ""};
void load();
void save() const;
std::string get_host() const;
std::string get_npid(); // not const because it can save if npid is requested and it has never been set
std::string get_password() const;
std::string get_token() const;
void set_host(const std::string& host);
void set_npid(const std::string& npid);
void set_password(const std::string& password);
void set_token(const std::string& token);
private:
static std::string get_path();
static std::string generate_npid();
};
extern cfg_rpcn g_cfg_rpcn;