Download crates/openwa-dll/src/replacements/task/cloud.rs from nmarshall/wormz-a: direct link, hf CLI and curl.
- Browser
- Download file 758 Bytes
-
https://huggingface.co/nmarshall/wormz-a/resolve/main/crates/openwa-dll/src/replacements/task/cloud.rs
- Command line
-
hf download hf://nmarshall/wormz-a/crates/openwa-dll/src/replacements/task/cloud.rs
-
curl -L -o cloud.rs https://huggingface.co/nmarshall/wormz-a/resolve/main/crates/openwa-dll/src/replacements/task/cloud.rs
758 Bytes
| //! CTaskCloud vtable hooks and CreateWeatherFilter replacement. | |
| //! | |
| //! Thin hook shim — game logic lives in `openwa_core::task::cloud`. | |
| use openwa_core::address::va; | |
| use openwa_core::log::log_line; | |
| use openwa_core::task::{cloud, team}; | |
| pub fn install() -> Result<(), String> { | |
| use openwa_core::vtable_replace; | |
| vtable_replace!(cloud::CTaskCloudVTable, va::CTASK_CLOUD_VTABLE, { | |
| handle_message => cloud::cloud_handle_message, | |
| })?; | |
| unsafe { | |
| crate::hook::install( | |
| "CTaskTeam__CreateWeatherFilter", | |
| va::CTASK_TEAM_CREATE_WEATHER_FILTER, | |
| team::create_weather_filter as *const (), | |
| )?; | |
| } | |
| let _ = log_line("[Cloud] HandleMessage + CreateWeatherFilter hooked"); | |
| Ok(()) | |
| } | |