Merge pull request #255 from IMXNOOBX/auto-build
Update typo check workflow to target the correct directory
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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