Skip to main content

setup

Macro setup 

Source
setup!() { /* proc-macro */ }
Expand description

Configures the dumpspace game hash for compile-time offset resolution.

Must be called once at the top of your crate root, before any other dumpspace macros. Downloads and caches offset data on first build; subsequent builds read from the local .dsapi/ cache.

§Example

use dumpspace_macros::*;

setup!("6b77eceb"); // Fortnite

fn main() {
    let off = offset!("UWorld", "OwningGameInstance");
}

To force a re-download (e.g. after a game update):

DSAPI_FORCE_REFRESH=1 cargo build