diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index 63a4606..5c48be9 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -3,6 +3,7 @@ on: push: branches: - main + # - auto-build # Testing jobs: run: @@ -16,7 +17,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 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