Big update

This repository is no longer meant for just radarflow, thus it will be renamed.
I have split the SDK from radarflow, allowing for simpler use with new projects.
Other than that, radarflow is functionally the same.

- Fixed bug in radarflow where the entity loop didn't include the last entity.
This commit is contained in:
Janek
2023-12-30 18:07:55 +01:00
parent 462cfddfef
commit 45bba35a71
85 changed files with 6982 additions and 1036 deletions

33
csflow/build.rs Normal file
View File

@@ -0,0 +1,33 @@
use std::error::Error;
fn download(url: &str, to: &str) -> Result<(), Box<dyn Error>> {
let content = reqwest::blocking::get(url)
.unwrap_or_else(|_| panic!("Downloading \"{to}\""))
.text()
.expect("Convert response to text");
std::fs::write(to, content)
.expect("Write to file");
Ok(())
}
fn main() -> Result<(), Box<dyn Error>> {
download(
"https://raw.githubusercontent.com/a2x/cs2-dumper/main/generated/client.dll.rs",
"./src/cs2dumper/client.rs"
).expect("Failed to download build file \"client.dll.rs\"");
download(
"https://raw.githubusercontent.com/a2x/cs2-dumper/main/generated/offsets.rs",
"./src/cs2dumper/offsets.rs"
).expect("Failed to download build file \"offsets.rs\"");
download(
"https://raw.githubusercontent.com/a2x/cs2-dumper/main/generated/engine2.dll.rs",
"./src/cs2dumper/engine2.rs"
).expect("Failed to download build file \"engine2.dll.rs\"");
Ok(())
}