Remove cs2dumper files

These files don't need to be in the repository, as they are automatically downloaded when building.
This commit is contained in:
Janek
2023-11-28 01:14:37 +01:00
parent f71836a763
commit ca57147ba0
5 changed files with 7 additions and 4462 deletions

View File

@@ -8,7 +8,7 @@ fn download(url: &str, to: &str) -> Result<(), Box<dyn Error>> {
.expect("Convert response to text");
std::fs::write(to, content)
.expect("Write offsets to file");
.expect("Write to file");
Ok(())
}
@@ -18,17 +18,17 @@ fn main() -> Result<(), Box<dyn Error>> {
download(
"https://raw.githubusercontent.com/a2x/cs2-dumper/main/generated/client.dll.rs",
"./src/sdk/cs2dumper/client.rs"
).expect("Failed to download build file");
).expect("Failed to download build file \"client.dll.rs\"");
download(
"https://raw.githubusercontent.com/a2x/cs2-dumper/main/generated/offsets.rs",
"./src/sdk/cs2dumper/offsets.rs"
).expect("Failed to download build file");
).expect("Failed to download build file \"offsets.rs\"");
download(
"https://raw.githubusercontent.com/a2x/cs2-dumper/main/generated/engine2.dll.rs",
"./src/sdk/cs2dumper/engine2.rs"
).expect("Failed to download build file");
).expect("Failed to download build file \"engine2.dll.rs\"");
EmitBuilder::builder()
.git_sha(true)