void nvnDeviceGetInteger(const NVNdevice* d, NVNdeviceInfo what, i32* out)
Get an integer of the device, such as its API version, a limit or an alignment
| Parameter | Type | Description |
|---|---|---|
d | const NVNdevice* | Pointer to the device, not read |
what | NVNdeviceInfo | Item (NVN_DEVICE_INFO_*): the game's driver's answer, when ScarletNX finds it in the driver's code, else ScarletNX's table's (0x62, and from 0x69, are 0). An item past 0xB0 is 0 |
out | i32* | Pointer to where the integer goes, NULL is invalid |
| Drivers | Switch and Switch 2 |
|---|---|
| Declared | nvn.hook |
| Handler | nvn_DeviceGetInteger (nvn_object.c) |
Types as nvn.hook writes them: i32, u32, i64, u64: integers of that many bits; f32: float; bool: NVNboolean; usize, isize: size_t, ptrdiff_t.
Made from ScarletNX's Sail at 166ad3910f80. nvn.h is h1k421's reconstruction (MIT); nvn.hook, the handlers and the format table ScarletNX's (GPL-3.0-or-later). The Switch 2 marks are the drivers' procedure tables (tools/manual/nvn-drivers.txt).