Added family sharing toggle

This commit is contained in:
acidicoala
2023-01-02 02:51:12 +03:00
parent 71506bd03c
commit 297861ba88
2 changed files with 5 additions and 1 deletions

View File

@@ -38,7 +38,9 @@ namespace koalageddon {
if (name == VSTDLIB_DLL) {
// VStdLib DLL handles Family Sharing functions
init_vstdlib_hooks();
if (smoke_api::config.unlock_family_sharing) {
init_vstdlib_hooks();
}
} else if (name == STEAMCLIENT_DLL) {
// SteamClient DLL handles unlocking functions
init_steamclient_hooks();

View File

@@ -27,6 +27,7 @@ namespace smoke_api {
struct Config {
uint32_t $version = 2;
bool logging = false;
bool unlock_family_sharing = true;
bool unlock_all = true;
Set<uint32_t> override;
Vector<uint32_t> dlc_ids;
@@ -39,6 +40,7 @@ namespace smoke_api {
NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(
Config, $version, // NOLINT(misc-const-correctness)
logging,
unlock_family_sharing,
unlock_all,
override,
dlc_ids,