mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 18:15:14 +00:00
Config entry isConnectedToNetwork
This commit is contained in:
parent
0b72a795eb
commit
d5194ce6cb
@ -47,6 +47,7 @@ static bool isShowSplash = false;
|
|||||||
static std::string isSideTrophy = "right";
|
static std::string isSideTrophy = "right";
|
||||||
static bool compatibilityData = false;
|
static bool compatibilityData = false;
|
||||||
static bool checkCompatibilityOnStartup = false;
|
static bool checkCompatibilityOnStartup = false;
|
||||||
|
static bool isConnectedToNetwork = false;
|
||||||
|
|
||||||
// Input
|
// Input
|
||||||
static int cursorState = HideCursorState::Idle;
|
static int cursorState = HideCursorState::Idle;
|
||||||
@ -353,6 +354,10 @@ bool getCheckCompatibilityOnStartup() {
|
|||||||
return checkCompatibilityOnStartup;
|
return checkCompatibilityOnStartup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool getIsConnectedToNetwork() {
|
||||||
|
return isConnectedToNetwork;
|
||||||
|
}
|
||||||
|
|
||||||
void setGpuId(s32 selectedGpuId) {
|
void setGpuId(s32 selectedGpuId) {
|
||||||
gpuId = selectedGpuId;
|
gpuId = selectedGpuId;
|
||||||
}
|
}
|
||||||
@ -636,6 +641,9 @@ void load(const std::filesystem::path& path) {
|
|||||||
compatibilityData = toml::find_or<bool>(general, "compatibilityEnabled", compatibilityData);
|
compatibilityData = toml::find_or<bool>(general, "compatibilityEnabled", compatibilityData);
|
||||||
checkCompatibilityOnStartup = toml::find_or<bool>(general, "checkCompatibilityOnStartup",
|
checkCompatibilityOnStartup = toml::find_or<bool>(general, "checkCompatibilityOnStartup",
|
||||||
checkCompatibilityOnStartup);
|
checkCompatibilityOnStartup);
|
||||||
|
|
||||||
|
isConnectedToNetwork =
|
||||||
|
toml::find_or<bool>(general, "isConnectedToNetwork", isConnectedToNetwork);
|
||||||
chooseHomeTab = toml::find_or<std::string>(general, "chooseHomeTab", chooseHomeTab);
|
chooseHomeTab = toml::find_or<std::string>(general, "chooseHomeTab", chooseHomeTab);
|
||||||
|
|
||||||
entry_count += general.size();
|
entry_count += general.size();
|
||||||
@ -830,6 +838,7 @@ void save(const std::filesystem::path& path) {
|
|||||||
data["General"]["sideTrophy"] = isSideTrophy;
|
data["General"]["sideTrophy"] = isSideTrophy;
|
||||||
data["General"]["compatibilityEnabled"] = compatibilityData;
|
data["General"]["compatibilityEnabled"] = compatibilityData;
|
||||||
data["General"]["checkCompatibilityOnStartup"] = checkCompatibilityOnStartup;
|
data["General"]["checkCompatibilityOnStartup"] = checkCompatibilityOnStartup;
|
||||||
|
data["General"]["isConnectedToNetwork"] = isConnectedToNetwork;
|
||||||
data["Input"]["cursorState"] = cursorState;
|
data["Input"]["cursorState"] = cursorState;
|
||||||
data["Input"]["cursorHideTimeout"] = cursorHideTimeout;
|
data["Input"]["cursorHideTimeout"] = cursorHideTimeout;
|
||||||
data["Input"]["useSpecialPad"] = useSpecialPad;
|
data["Input"]["useSpecialPad"] = useSpecialPad;
|
||||||
@ -926,6 +935,7 @@ void setDefaultValues() {
|
|||||||
isSideTrophy = "right";
|
isSideTrophy = "right";
|
||||||
compatibilityData = false;
|
compatibilityData = false;
|
||||||
checkCompatibilityOnStartup = false;
|
checkCompatibilityOnStartup = false;
|
||||||
|
isConnectedToNetwork = false;
|
||||||
|
|
||||||
// Input
|
// Input
|
||||||
cursorState = HideCursorState::Idle;
|
cursorState = HideCursorState::Idle;
|
||||||
|
@ -111,6 +111,7 @@ std::filesystem::path GetSaveDataPath();
|
|||||||
void setLoadGameSizeEnabled(bool enable);
|
void setLoadGameSizeEnabled(bool enable);
|
||||||
bool getCompatibilityEnabled();
|
bool getCompatibilityEnabled();
|
||||||
bool getCheckCompatibilityOnStartup();
|
bool getCheckCompatibilityOnStartup();
|
||||||
|
bool getIsConnectedToNetwork();
|
||||||
std::string getUserName();
|
std::string getUserName();
|
||||||
std::string getChooseHomeTab();
|
std::string getChooseHomeTab();
|
||||||
bool GetUseUnifiedInputConfig();
|
bool GetUseUnifiedInputConfig();
|
||||||
|
Loading…
Reference in New Issue
Block a user