Fised tipos, bcus i dont knaw how to writttte
This commit is contained in:
@@ -37,12 +37,12 @@ namespace updater {
|
||||
}
|
||||
|
||||
if (automatic_update || (response == 'Y' || response == 'y')) {
|
||||
if (download_file(raw_updated_offets.c_str(), "offsets.json")) {
|
||||
if (download_file(raw_updated_offsets.c_str(), "offsets.json")) {
|
||||
std::cout << "[updater] Successfully downloaded latest offsets.json file\n" << std::endl;
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
std::cout << "[updater] Error: Failed to download file, try downloading manually from " << raw_updated_offets << "\n" << std::endl;
|
||||
std::cout << "[updater] Error: Failed to download file, try downloading manually from " << raw_updated_offsets << "\n" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,12 +59,12 @@ namespace updater {
|
||||
}
|
||||
|
||||
if (automatic_update || (response == 'Y' || response == 'y')) {
|
||||
if (download_file(raw_updated_offets.c_str(), "offsets.json")) {
|
||||
if (download_file(raw_updated_offsets.c_str(), "offsets.json")) {
|
||||
std::cout << "[updater] Successfully downloaded latest offsets.json file\n" << std::endl;
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
std::cout << "[updater] Error: Failed to download file, try downloading manually from " << raw_updated_offets << "\n" << std::endl;
|
||||
std::cout << "[updater] Error: Failed to download file, try downloading manually from " << raw_updated_offsets << "\n" << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace updater {
|
||||
extern void save();
|
||||
|
||||
const inline std::string github_repo_api = "https://api.github.com/repos/IMXNOOBX/cs2-external-esp/commits";
|
||||
const inline std::string raw_updated_offets = "https://github.com/IMXNOOBX/cs2-external-esp/raw/main/offsets/offsets.json";
|
||||
const inline std::string raw_updated_offsets = "https://github.com/IMXNOOBX/cs2-external-esp/raw/main/offsets/offsets.json";
|
||||
|
||||
inline int build_number = 0;
|
||||
|
||||
|
||||
@@ -14,6 +14,6 @@ void Utils::update_console_title() {
|
||||
}
|
||||
|
||||
|
||||
bool Utils::is_in_bounds(const Vector3& pos, int width, int heigh) {
|
||||
return pos.x >= 0 && pos.x <= width && pos.y >= 0 && pos.y <= heigh;
|
||||
bool Utils::is_in_bounds(const Vector3& pos, int width, int height) {
|
||||
return pos.x >= 0 && pos.x <= width && pos.y >= 0 && pos.y <= height;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ class Utils {
|
||||
private:
|
||||
public:
|
||||
void update_console_title();
|
||||
bool is_in_bounds(const Vector3& pos, int width, int heigh);
|
||||
bool is_in_bounds(const Vector3& pos, int width, int height);
|
||||
};
|
||||
|
||||
inline Utils utils;
|
||||
Reference in New Issue
Block a user