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) {
|
if (name == VSTDLIB_DLL) {
|
||||||
// VStdLib DLL handles Family Sharing functions
|
// VStdLib DLL handles Family Sharing functions
|
||||||
init_vstdlib_hooks();
|
if (smoke_api::config.unlock_family_sharing) {
|
||||||
|
init_vstdlib_hooks();
|
||||||
|
}
|
||||||
} else if (name == STEAMCLIENT_DLL) {
|
} else if (name == STEAMCLIENT_DLL) {
|
||||||
// SteamClient DLL handles unlocking functions
|
// SteamClient DLL handles unlocking functions
|
||||||
init_steamclient_hooks();
|
init_steamclient_hooks();
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ namespace smoke_api {
|
|||||||
struct Config {
|
struct Config {
|
||||||
uint32_t $version = 2;
|
uint32_t $version = 2;
|
||||||
bool logging = false;
|
bool logging = false;
|
||||||
|
bool unlock_family_sharing = true;
|
||||||
bool unlock_all = true;
|
bool unlock_all = true;
|
||||||
Set<uint32_t> override;
|
Set<uint32_t> override;
|
||||||
Vector<uint32_t> dlc_ids;
|
Vector<uint32_t> dlc_ids;
|
||||||
@@ -39,6 +40,7 @@ namespace smoke_api {
|
|||||||
NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(
|
NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(
|
||||||
Config, $version, // NOLINT(misc-const-correctness)
|
Config, $version, // NOLINT(misc-const-correctness)
|
||||||
logging,
|
logging,
|
||||||
|
unlock_family_sharing,
|
||||||
unlock_all,
|
unlock_all,
|
||||||
override,
|
override,
|
||||||
dlc_ids,
|
dlc_ids,
|
||||||
|
|||||||
Reference in New Issue
Block a user