#include "ExploitsAnti.hpp"
#include "../imgui_helper.hpp"
#include "SetManager.hpp"
#include "../imgui_custom.hpp"
#include "../Menu.hpp"

#include <Windows.h>
#include <fstream>
#include <sstream>

#include <Globals.hpp>

ExploitsAnti::ExploitsAnti() : Module(obf("ExploitsAnti"), obf("")) {
	AntiE11 = &SetManager::i().add(new Set(false, obf("AntiE11"), getName())).getBVal();
	BlockVideoPlayers = &SetManager::i().add(new Set(false, obf("BlockVideoPlayers"), getName())).getBVal();
}

void ExploitsAnti::renderImGui() {
	ImGui::Checkbox_(obf("Anti E11").c_str(), AntiE11);
	if (ImGui::IsItemHovered())
		ImGui::SetTooltip(obf("Block E11 Completely (WILL Break Worlds that rely on udon scripts)").c_str());

	ImGui::Checkbox_(obf("Block VideoPlayers").c_str(), BlockVideoPlayers);
	if (ImGui::IsItemHovered())
		ImGui::SetTooltip(obf("Prevent Video Players From Playing Videos").c_str());
}