CEFInject: SteamTweaks: uninstallTweaks: option to uninstall regardless of stored-state

TODO: use in watchDog
pull/239/head
Peter Repukat 1 year ago
parent 4d96ed94a1
commit 4c847543fc

@ -255,12 +255,12 @@ namespace CEFInject
return true;
}
bool SteamTweaks::uninstallTweaks()
bool SteamTweaks::uninstallTweaks(bool force)
{
if (!CEFDebugAvailable()) {
return false;
}
if (glossi_tweaks_injected_map_.empty()) {
if (glossi_tweaks_injected_map_.empty() && !force) {
return false;
}

@ -49,7 +49,7 @@ namespace CEFInject
bool injectGlosSITweaks(std::string_view tab_name, uint16_t port = internal::port_);
bool injectGlosSITweaks(const Tab_Info& info, uint16_t port = internal::port_);
public:
bool uninstallTweaks();
bool uninstallTweaks(bool force = false);
// TODO: Provide API to auto-inject

Loading…
Cancel
Save