diff options
| author | Matthew Collins <[email protected]> | 2018-05-05 15:46:12 +0100 |
|---|---|---|
| committer | Matthew Collins <[email protected]> | 2018-05-05 15:46:12 +0100 |
| commit | 5ef3f6e17cd14d452cfcdbb8a30abf61e513e84d (patch) | |
| tree | e667ed1dccc3d3ac0df83e8c66b76dd5dc0771e8 /steamworks-sys/src/lib.cpp | |
| parent | Minor bump due to slight mistake with last publish (diff) | |
| download | steamworks-rs-5ef3f6e17cd14d452cfcdbb8a30abf61e513e84d.tar.xz steamworks-rs-5ef3f6e17cd14d452cfcdbb8a30abf61e513e84d.zip | |
Rework how the sys crate is generated
Due to packing issues with steam's structs we use wrapper methods
to access the fields and create the structs.
Diffstat (limited to 'steamworks-sys/src/lib.cpp')
| -rw-r--r-- | steamworks-sys/src/lib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/steamworks-sys/src/lib.cpp b/steamworks-sys/src/lib.cpp index 226c31a..38701da 100644 --- a/steamworks-sys/src/lib.cpp +++ b/steamworks-sys/src/lib.cpp @@ -6,7 +6,7 @@ struct CallbackData { int param_size; void* userdata; void (*run)(void*, void*, void*); - void (*run_extra)(void*, void*, void*, bool, SteamAPICall_t); + void (*run_extra)(void*, void*, void*, uint8_t, SteamAPICall_t); void (*dealloc)(void*, void*); }; @@ -26,7 +26,7 @@ public: } void Run(void* pvParam, bool bIOFailure, SteamAPICall_t hSteamAPICall) { - data.run_extra(this, data.userdata, pvParam, bIOFailure, hSteamAPICall); + data.run_extra(this, data.userdata, pvParam, bIOFailure ? 1 : 0, hSteamAPICall); } int GetCallbackSizeBytes() { |