Added simple config system to enable team esp, automatic updates, and render distance. Also moved the offsets to the updater namespace and read/writte methods to the offsets.json Implemented Handle Hijacking method requested by #19 to improve the security. Credits to Apxaey on github for the source
17 lines
330 B
C++
17 lines
330 B
C++
#pragma once
|
|
#include <fstream>
|
|
#include "json.hpp"
|
|
#include "auto_updater.hpp"
|
|
|
|
using json = nlohmann::json;
|
|
|
|
namespace config {
|
|
const std::string file_path = "config.json";
|
|
|
|
extern bool read();
|
|
extern void save();
|
|
|
|
inline bool automatic_update = false;
|
|
inline bool team_esp = false;
|
|
inline float render_distance = -1.f;
|
|
} |