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; return true;
} }
bool SteamTweaks::uninstallTweaks() bool SteamTweaks::uninstallTweaks(bool force)
{ {
if (!CEFDebugAvailable()) { if (!CEFDebugAvailable()) {
return false; return false;
} }
if (glossi_tweaks_injected_map_.empty()) { if (glossi_tweaks_injected_map_.empty() && !force) {
return false; return false;
} }

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

Loading…
Cancel
Save