a2x / cs2-dumper

Counter-Strike: 2 Offset Dumper
MIT License
940 stars 123 forks source link

Outputs rust files as client.dll.rs making it unable to import easily #194

Closed conner-replogle closed 3 weeks ago

conner-replogle commented 3 months ago

What i said in title is this a feature im confused

a2x commented 3 months ago

Yes, I agree that it should be simpler. It would be nice to have a separate crate available that streamlines the process.

conner-replogle commented 3 months ago

Could we make that a config toggle? I can implement that. Also would be nice to setup the crates as a Binary and a Library. In order to make it so that we can call the library from other rust code so signatures can be gathered on start of a program. While the binary is a wrapper that just calls the library.

a2x commented 3 weeks ago

Now, the generated Rust files no longer have a . in the file name before the extension (which was why they couldn't be imported).

For standalone Rust projects, it might better to use my other project instead (to avoid adding unnecessary complexity to this code base). It also doesn't require the game to be running.

https://github.com/a2x/cs2-analyzer