From a6ef9a856b734cc999027b2afdb3b879f053ee91 Mon Sep 17 00:00:00 2001 From: IMXNOOBX <69653071+IMXNOOBX@users.noreply.github.com> Date: Sat, 5 Jul 2025 13:26:14 +0200 Subject: [PATCH 1/5] Update typo check workflow to target the correct directory --- .github/workflows/typos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index 63a4606..5097e4e 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -16,7 +16,7 @@ jobs: - name: Check spelling of SRC folder uses: crate-ci/typos@master with: - files: ./src + files: ./memory-external config: .github/typos.toml write_changes: true # Write changes if typos are detected continue-on-error: true From 0cdf1c2e3d3fe79a3cf6562e6acc2c79ed68a655 Mon Sep 17 00:00:00 2001 From: IMXNOOBX <69653071+IMXNOOBX@users.noreply.github.com> Date: Sat, 5 Jul 2025 13:27:59 +0200 Subject: [PATCH 2/5] Add auto-build branch to typo check workflow triggers --- .github/workflows/typos.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index 5097e4e..9de57e8 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -3,6 +3,7 @@ on: push: branches: - main + - auto-build # testing jobs: run: From a98db775210eeee68a1a0b5733c6d7c701ebdbf4 Mon Sep 17 00:00:00 2001 From: IMXNOOBX <69653071+IMXNOOBX@users.noreply.github.com> Date: Sat, 5 Jul 2025 13:30:38 +0200 Subject: [PATCH 3/5] =?UTF-8?q?Forgot=20to=20add=20git=20pat=20?= =?UTF-8?q?=F0=9F=A6=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/typos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index 9de57e8..3c33799 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -3,7 +3,7 @@ on: push: branches: - main - - auto-build # testing + - auto-build # Testing jobs: run: From f1254cfbfe5089a42add590af32d5d37983009a3 Mon Sep 17 00:00:00 2001 From: IMXNOOBX <69653071+IMXNOOBX@users.noreply.github.com> Date: Sat, 5 Jul 2025 13:33:09 +0200 Subject: [PATCH 4/5] Fised tipos, bcus i dont knaw how to writttte --- memory-external/classes/auto_updater.cpp | 8 ++++---- memory-external/classes/auto_updater.hpp | 2 +- memory-external/classes/utils.cpp | 4 ++-- memory-external/classes/utils.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/memory-external/classes/auto_updater.cpp b/memory-external/classes/auto_updater.cpp index f830177..23ab1bc 100644 --- a/memory-external/classes/auto_updater.cpp +++ b/memory-external/classes/auto_updater.cpp @@ -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; } } } diff --git a/memory-external/classes/auto_updater.hpp b/memory-external/classes/auto_updater.hpp index 624215d..1cc2e44 100644 --- a/memory-external/classes/auto_updater.hpp +++ b/memory-external/classes/auto_updater.hpp @@ -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; diff --git a/memory-external/classes/utils.cpp b/memory-external/classes/utils.cpp index 7f03010..9275c56 100644 --- a/memory-external/classes/utils.cpp +++ b/memory-external/classes/utils.cpp @@ -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; } \ No newline at end of file diff --git a/memory-external/classes/utils.h b/memory-external/classes/utils.h index 3c35ed4..8b7d3f2 100644 --- a/memory-external/classes/utils.h +++ b/memory-external/classes/utils.h @@ -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; \ No newline at end of file From 85e2f730d9a2395eb54c992f9df3e0b84f6c7a80 Mon Sep 17 00:00:00 2001 From: IMXNOOBX <69653071+IMXNOOBX@users.noreply.github.com> Date: Sat, 5 Jul 2025 13:36:31 +0200 Subject: [PATCH 5/5] Remove commented auto-build branch from typo check workflow --- .github/workflows/typos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index 3c33799..5c48be9 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -3,7 +3,7 @@ on: push: branches: - main - - auto-build # Testing + # - auto-build # Testing jobs: run: