mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-24 21:42:53 -05:00
Added family sharing toggle
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user