The game is no longer named in the tree
Comments, documents and descriptions now say "the title". No code changes. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
1 parent
57fcf21b80
commit
29f9e89df6
55 files changed
+161
-161
No files matched your search
@@ -12,7 +12,7 @@
|
||||
//! Mixed audio leaves through the host's WASAPI, which titles and
|
||||
//! middleware reach through COM like on PC. fmod's console build sets up
|
||||
//! the coprocessor inside `System_Create` and waits there for its first
|
||||
//! command to be acknowledged; Grand Theft Auto VI uses only XMA contexts.
|
||||
//! command to be acknowledged; the title uses only XMA contexts.
|
||||
#![allow(non_snake_case)]
|
||||
#![allow(clippy::not_unsafe_ptr_arg_deref)]
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ pub const CAPTURE_PROVIDER: Guid = Guid::new(
|
||||
0x4485,
|
||||
[0xb0, 0x08, 0xa7, 0xc2, 0x6d, 0x52, 0xac, 0x27],
|
||||
);
|
||||
/// As Grand Theft Auto VI (2026) asks for it; it calls 0x28 (take a
|
||||
/// As the title (2026) asks for it; it calls 0x28 (take a
|
||||
/// screenshot) with the public API's arguments.
|
||||
pub const CAPTURE_IID_2026: Guid = Guid::new(
|
||||
0x22e6_72d7,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! The console's DirectStorage (`XCRDAPI.dll`): a factory that opens files
|
||||
//! and creates request queues and status arrays the title polls. Its
|
||||
//! interfaces have grown since 2020 (new interface ids, new slots); the
|
||||
//! slots here are the ones Grand Theft Auto VI calls, read from its call
|
||||
//! slots here are the ones the title calls, read from its call
|
||||
//! sites. Slots nobody has needed yet log their offset.
|
||||
//!
|
||||
//! Submitted requests of every queue run on one pool of workers, as the
|
||||
@@ -31,7 +31,7 @@ use super::xasync::{E_INVALIDARG, E_NOTIMPL, E_PENDING};
|
||||
use super::xgameruntime::{Guid, HRESULT, Methods, Object, S_OK, add_ref, missing, put};
|
||||
use crate::{HleModule, hle_export};
|
||||
|
||||
/// The factory interface Grand Theft Auto VI asks for.
|
||||
/// The factory interface the title asks for.
|
||||
const FACTORY: Guid = Guid::new(
|
||||
0x6295_9d11,
|
||||
0xd45f,
|
||||
@@ -171,7 +171,7 @@ extern "system" fn create_status_array(
|
||||
}
|
||||
|
||||
/// The queue's description: as in 2020 (source type, capacity, priority,
|
||||
/// name), plus a field Grand Theft Auto VI sets to 1.
|
||||
/// name), plus a field the title sets to 1.
|
||||
#[repr(C)]
|
||||
struct QueueDesc {
|
||||
source_type: u64,
|
||||
@@ -216,7 +216,7 @@ extern "system" fn create_queue(
|
||||
)
|
||||
}
|
||||
|
||||
/// Grand Theft Auto VI asks for 32 MiB and stops if this fails.
|
||||
/// The title asks for 32 MiB and stops if this fails.
|
||||
extern "system" fn set_staging_buffer_size(_: Factory, size: u32) -> HRESULT {
|
||||
tracing::info!(size, "dstorage: staging buffer size");
|
||||
if let Some(scheduler) = scheduler() {
|
||||
@@ -289,7 +289,7 @@ extern "system" fn status_result(this: Array, index: u32) -> HRESULT {
|
||||
.map_or(E_INVALIDARG, |e| e.load(Ordering::Acquire))
|
||||
}
|
||||
|
||||
/// Grand Theft Auto VI polls this (entry 0, a `Sleep(1)` loop) and never
|
||||
/// The title polls this (entry 0, a `Sleep(1)` loop) and never
|
||||
/// reads the result itself.
|
||||
extern "system" fn is_complete(this: Array, index: u32) -> bool {
|
||||
status_result(this, index) != E_PENDING
|
||||
@@ -667,7 +667,7 @@ struct Request {
|
||||
source_size: u32,
|
||||
/// Compressed size between two decompression stages; unused here.
|
||||
intermediate_size: u32,
|
||||
/// Matched by cancellation; Grand Theft Auto VI leaves it 0.
|
||||
/// Matched by cancellation; the title leaves it 0.
|
||||
tag: u64,
|
||||
name: *const c_char,
|
||||
}
|
||||
@@ -680,7 +680,7 @@ const BCPACK: u64 = 0xf << 1;
|
||||
const PAGE_DESTINATION: u64 = 1 << 21;
|
||||
const MEMORY_SOURCE: u64 = 1 << 22;
|
||||
// Bits 5-20 select a further transform, bit 23 a source in physical pages;
|
||||
// Grand Theft Auto VI's packages need neither, so requests with them fail.
|
||||
// The title's packages need neither, so requests with them fail.
|
||||
|
||||
const PAGE: usize = 64 * 1024;
|
||||
|
||||
@@ -778,7 +778,7 @@ extern "system" fn submit(this: QueueRef) {
|
||||
|
||||
/// Ends the queue whatever its reference count: what was not started never
|
||||
/// completes, and this returns once the reads already running have
|
||||
/// finished. Grand Theft Auto VI calls this, not `Release`.
|
||||
/// finished. The title calls this, not `Release`.
|
||||
extern "system" fn close(this: QueueRef) {
|
||||
// SAFETY: as above.
|
||||
close_lane(unsafe { &*this }.state.id);
|
||||
@@ -976,7 +976,7 @@ fn into_destination(
|
||||
if super::xmem::write_physical(pages, offset, &data[..n]) {
|
||||
Ok(())
|
||||
} else {
|
||||
// Said aloud: Grand Theft Auto VI never reads a request's result
|
||||
// Said aloud: the title never reads a request's result
|
||||
// (it only polls for completion), so a destination left unwritten
|
||||
// is a model or texture that silently holds whatever its pages
|
||||
// held before.
|
||||
@@ -990,8 +990,8 @@ fn into_destination(
|
||||
}
|
||||
}
|
||||
|
||||
/// Slots by the 2020 order, which the argument shapes at Grand Theft Auto
|
||||
/// VI's call sites match (0x18, 0x20, 0x30 and 0x40 are called).
|
||||
/// Slots by the 2020 order, which the argument shapes at
|
||||
/// the title's call sites match (0x18, 0x20, 0x30 and 0x40 are called).
|
||||
static QUEUE_VTABLE: Methods<12> = Methods([
|
||||
missing::<0> as *const (),
|
||||
add_ref_instance::<Queue> as *const (),
|
||||
|
||||
@@ -516,7 +516,7 @@ pub extern "C" fn _wfsopen(path: *const u16, mode: *const u16, share: i32) -> Fi
|
||||
|
||||
// Kernel reads into title memory. The GPU side leaves blocks of title GPU
|
||||
// buffers read-only to see the title's next write, and the kernel's writes
|
||||
// fail there instead of faulting into its handler; Grand Theft Auto VI's
|
||||
// fail there instead of faulting into its handler; the title's
|
||||
// synchronous reads (title+0x313fc0) read straight into 4 KiB-aligned
|
||||
// destinations and retry a failed `ReadFile` forever. So the destination
|
||||
// is opened first.
|
||||
|
||||
@@ -637,7 +637,7 @@ fn relative(
|
||||
// SAFETY: a reading we handed out and the title still holds.
|
||||
let reference = unsafe { &*reference };
|
||||
// shortcut: with no device given only the reference's device is walked,
|
||||
// not every device's readings in time order; Grand Theft Auto VI walks
|
||||
// not every device's readings in time order; the title walks
|
||||
// only keyboard readings (one device) and the current pad's previous one.
|
||||
let Some(index) = hub.index(reference.device) else {
|
||||
return fail(out, E_INVALIDARG);
|
||||
@@ -712,7 +712,7 @@ fn token(out: *mut u64) -> HRESULT {
|
||||
S_OK
|
||||
}
|
||||
|
||||
// shortcut: reading callbacks never run; Grand Theft Auto VI registers none
|
||||
// shortcut: reading callbacks never run; the title registers none
|
||||
// (it polls).
|
||||
extern "system" fn register_reading(
|
||||
_: This,
|
||||
@@ -911,7 +911,7 @@ extern "system" fn device_status(this: *const Device) -> u32 {
|
||||
// shortcut: trigger motors are dropped (XInput has none). The host API that
|
||||
// drives them without a redistributable is Windows.Gaming.Input (WinRT
|
||||
// `Gamepad.Vibration`), which needs WinRT bindings this crate lacks outside
|
||||
// diagnostics builds; Grand Theft Auto VI sends trigger levels in slot 0x50.
|
||||
// diagnostics builds; the title sends trigger levels in slot 0x50.
|
||||
extern "system" fn set_rumble(this: *const Device, params: *const [f32; 4]) {
|
||||
// SAFETY: one of our devices.
|
||||
let device = unsafe { &*this };
|
||||
@@ -1149,7 +1149,7 @@ mod host {
|
||||
// The scripted keys (`VICTORY_KEYS`) also press the first
|
||||
// pad's buttons, by the stand-in pad's table: with a real pad
|
||||
// connected the stand-in is not there, and a title that listens
|
||||
// to the pad (Grand Theft Auto VI's start screen) saw nothing.
|
||||
// to the pad (the title's start screen) saw nothing.
|
||||
#[cfg(feature = "diagnostics")]
|
||||
if slot == 0 {
|
||||
for vk in scripted() {
|
||||
@@ -1181,8 +1181,8 @@ mod host {
|
||||
// SAFETY: plain query.
|
||||
scan_code: unsafe { MapVirtualKeyW(u32::from(vk), MAPVK_VK_TO_VSC_EX) },
|
||||
virtual_key: vk,
|
||||
// shortcut: no characters (code point 0); Grand Theft
|
||||
// Auto VI reads scan codes and virtual keys only.
|
||||
// shortcut: no characters (code point 0);
|
||||
// the title reads scan codes and virtual keys only.
|
||||
..Default::default()
|
||||
})
|
||||
.collect()
|
||||
|
||||
@@ -110,8 +110,8 @@ pub extern "system" fn CreateWindowExA(
|
||||
hwnd
|
||||
}
|
||||
|
||||
/// A console title sizes its window to its render target (Grand Theft
|
||||
/// Auto VI: 3840x2160 on a Series X), which can exceed the host's screen.
|
||||
/// A console title sizes its window to its render target (
|
||||
/// the title: 3840x2160 on a Series X), which can exceed the host's screen.
|
||||
/// A top-level window larger than the work area is shrunk to fit, keeping
|
||||
/// its proportions, and centred; what it shows is scaled to it (the swap
|
||||
/// chain stretches).
|
||||
@@ -177,8 +177,8 @@ extern "system" fn window_proc(
|
||||
// Alt or F10 puts a window into menu mode: the system runs a modal menu
|
||||
// loop on the thread that owns the window, which is the title's. The
|
||||
// title then stops (no frames, no input) until a key ends the loop, and
|
||||
// nothing shows it, since the window has no menu bar; Grand Theft Auto
|
||||
// VI aborts itself about half a minute later. A console has no window
|
||||
// nothing shows it, since the window has no menu bar;
|
||||
// the title aborts itself about half a minute later. A console has no window
|
||||
// menu. The mouse still opens it from the title bar.
|
||||
if message == wm::WM_SYSCOMMAND && wparam & 0xFFF0 == wm::SC_KEYMENU as usize {
|
||||
return 0;
|
||||
|
||||
@@ -26,7 +26,7 @@ pub const IID: Guid = Guid::new(
|
||||
[0x8b, 0x27, 0x95, 0xfc, 0x02, 0xd0, 0xf7, 0x5d],
|
||||
);
|
||||
|
||||
/// As Grand Theft Auto VI (2026) asks for it; it calls 0x20 (path) and 0x28
|
||||
/// As the title (2026) asks for it; it calls 0x20 (path) and 0x28
|
||||
/// (space) with the same arguments.
|
||||
pub const IID_2026: Guid = Guid::new(
|
||||
0x41a4_e10c,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
//! slice lies, and to copy linear data into tiled memory and back. Served
|
||||
//! from `victory_formats::texture`.
|
||||
//!
|
||||
//! Grand Theft Auto VI imports `XGCreateTextureComputer` and
|
||||
//! The title imports `XGCreateTextureComputer` and
|
||||
//! `XGSuggestSwizzleMode` and calls these computer methods: Release (0x08),
|
||||
//! the layout (0x10), copies into (0x40) and out of (0x48) a subresource,
|
||||
//! and the 64 KiB tiling (0x50). The other slots log and fail.
|
||||
@@ -165,7 +165,7 @@ fn texture(desc: &ResourceDesc) -> Option<Texture> {
|
||||
const MIPS: usize = 15;
|
||||
|
||||
/// One mip in the layout the title reads (offsets 0x00, 0x08, 0x10 and
|
||||
/// 0x1c are read by Grand Theft Auto VI; the rest follow the library's
|
||||
/// 0x1c are read by the title; the rest follow the library's
|
||||
/// older public shape).
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Default, Clone, Copy)]
|
||||
@@ -539,7 +539,7 @@ extern "system" fn tiling(
|
||||
}
|
||||
|
||||
/// Slot 0x30 `(plane, mip, x, y, z or slice, sample, bit position)`: an
|
||||
/// element's byte offset from the texture's start. Grand Theft Auto VI reads
|
||||
/// element's byte offset from the texture's start. The title reads
|
||||
/// texels of a 128x4 `4KB_S` texture on the CPU through it (title+0x5151c90);
|
||||
/// an error returned as an offset made it read wild memory. 0 if outside.
|
||||
extern "system" fn element_offset(
|
||||
|
||||
@@ -63,8 +63,8 @@ extern "system" fn title_id(_: This, out: *mut u32) -> HRESULT {
|
||||
}
|
||||
|
||||
/// As documented: the title ends (suspended first, as on any end) and the
|
||||
/// game starts again in a new process; this never returns. Grand Theft
|
||||
/// Auto VI relaunches itself (its own path from `GetModuleFileNameA`) with
|
||||
/// game starts again in a new process; this never returns.
|
||||
/// The title relaunches itself (its own path from `GetModuleFileNameA`) with
|
||||
/// arguments from its configuration. The new `victory run` gets the same
|
||||
/// options, the new executable, and the title's arguments after `--`
|
||||
/// (the title reads the whole command line).
|
||||
|
||||
@@ -202,7 +202,7 @@ pub extern "system" fn InitializeApiImplEx(version: u64, build: u64, flags: u64)
|
||||
|
||||
/// The stub prefers this one when present. It passes the same three values
|
||||
/// and a pointer to the title's initialisation options, null unless the
|
||||
/// title initialises with options (Grand Theft Auto VI does not).
|
||||
/// title initialises with options (the title does not).
|
||||
pub extern "system" fn InitializeApiImplEx2(
|
||||
version: u64,
|
||||
build: u64,
|
||||
|
||||
@@ -37,7 +37,7 @@ pub const PROVIDER: Guid = Guid::new(
|
||||
0x4cc2,
|
||||
[0xb1, 0x97, 0x30, 0x51, 0x1b, 0x99, 0x6f, 0xe2],
|
||||
);
|
||||
/// As Grand Theft Auto VI (2026) asks for it; every slot it calls takes
|
||||
/// As the title (2026) asks for it; every slot it calls takes
|
||||
/// the public API's arguments in the same order as under the provider's
|
||||
/// own id (older titles).
|
||||
pub const IID_2026: Guid = Guid::new(
|
||||
|
||||
@@ -18,7 +18,7 @@ pub const PROVIDER: Guid = Guid::new(
|
||||
0x4043,
|
||||
[0xba, 0x07, 0x35, 0xd6, 0x07, 0xdf, 0x98, 0xb0],
|
||||
);
|
||||
/// As Grand Theft Auto VI (2026) asks for it; the slots it calls (0x38,
|
||||
/// As the title (2026) asks for it; the slots it calls (0x38,
|
||||
/// 0x40, 0x88-0x98) take the public API's arguments in the 2020 order.
|
||||
pub const IID_2026: Guid = Guid::new(
|
||||
0xeaf6_69df,
|
||||
@@ -49,7 +49,7 @@ extern "system" fn profile_card_result(_: This, block: *mut AsyncBlock) -> HRESU
|
||||
xasync::XAsyncGetResult(block, (&raw const PROFILE).cast(), 0, none, none.cast())
|
||||
}
|
||||
|
||||
/// Grand Theft Auto VI treats `E_ABORT` as cancelled and goes on; any
|
||||
/// The title treats `E_ABORT` as cancelled and goes on; any
|
||||
/// other failure as an error.
|
||||
extern "system" fn text_entry_async(
|
||||
_: This,
|
||||
|
||||
@@ -72,8 +72,8 @@ const MEM_WRITE_WATCH: u32 = 0x20_0000;
|
||||
/// 32-bit memory; else from 4 GiB (kept for 32-bit requests, which the
|
||||
/// title's big pools would otherwise crowd out) up to 46 down to 40 bits
|
||||
/// from the field at bit 12, or 40 bits without one: the console keeps
|
||||
/// title memory there, and its ray-tracing structures must be (Grand Theft
|
||||
/// Auto VI's BVH builder refuses one above; the title asks for its GPU heap
|
||||
/// title memory there, and its ray-tracing structures must be (
|
||||
/// the title's BVH builder refuses one above; the title asks for its GPU heap
|
||||
/// with no field). Decision 0001.
|
||||
fn address_range(flags: u64) -> (usize, usize) {
|
||||
let bits = match (flags & ADDRESS_32BIT, flags >> 12 & 7) {
|
||||
@@ -108,7 +108,7 @@ pub extern "system" fn XMemVirtualAlloc(
|
||||
// A reservation of 64 KiB pages takes physical pages later
|
||||
// (`XMemMapPhysicalPages`); on the host only a placeholder can.
|
||||
// shortcut: committing part of such a reservation later would fail
|
||||
// (Grand Theft Auto VI's 23 calls never do); replace that part of the
|
||||
// (the title's 23 calls never do); replace that part of the
|
||||
// placeholder then.
|
||||
let placeholder = kind & PAGES_64K == PAGES_64K && kind & MEM_COMMIT == 0;
|
||||
if placeholder {
|
||||
@@ -176,7 +176,7 @@ pub struct BasicInformation {
|
||||
}
|
||||
|
||||
// shortcut: every committed page reports graphics memory and no tag, since
|
||||
// all of it is GPU-reachable here (Grand Theft Auto VI's BVH builder, the
|
||||
// all of it is GPU-reachable here (the title's BVH builder, the
|
||||
// only caller, wants graphics memory); remember the flags of
|
||||
// `XMemVirtualAlloc` regions if a title tells CPU-only memory apart.
|
||||
pub extern "system" fn XMemVirtualQuery(
|
||||
@@ -221,7 +221,7 @@ type AllocRoutine = extern "system" fn(usize, u64) -> *mut c_void;
|
||||
type FreeRoutine = extern "system" fn(*mut c_void, u64);
|
||||
|
||||
/// The allocation and free routines the title's exe exports as
|
||||
/// `__XMemAllocationHooks__` (Grand Theft Auto VI does): `XMemAlloc` and
|
||||
/// `__XMemAllocationHooks__` (the title does): `XMemAlloc` and
|
||||
/// `XMemFree` call them, for the title's own calls and its middleware's;
|
||||
/// the `…Default` exports do not.
|
||||
fn hooks() -> [usize; 2] {
|
||||
@@ -291,7 +291,7 @@ pub extern "system" fn XMemAllocDefault(size: usize, attributes: u64) -> *mut c_
|
||||
};
|
||||
// shortcut: the host heap's addresses lie above 2^40, unlike the
|
||||
// console's; nothing seen builds ray-tracing structures in this memory
|
||||
// (Grand Theft Auto VI uses its GPU heap). Sub-allocate from a
|
||||
// (the title uses its GPU heap). Sub-allocate from a
|
||||
// reservation below 2^40 if one does.
|
||||
// SAFETY: the layout has a non-zero size.
|
||||
let block = unsafe { alloc(layout) };
|
||||
@@ -399,7 +399,7 @@ pub extern "system" fn XMemAllocatePhysicalPages(
|
||||
return 0;
|
||||
};
|
||||
// A pagefile-backed section of `size` bytes, its pages committed when
|
||||
// first mapped or written (`commit`): Grand Theft Auto VI asks for 6.1
|
||||
// first mapped or written (`commit`): the title asks for 6.1
|
||||
// GiB at once, which a busy host often cannot commit (error 1450).
|
||||
// SAFETY: plain section creation.
|
||||
let handle = unsafe {
|
||||
@@ -449,7 +449,7 @@ pub extern "system" fn XMemAllocatePhysicalPages(
|
||||
}
|
||||
|
||||
/// Page numbers count 4 KiB frames, so a 64 KiB page's is a multiple of
|
||||
/// 16: Grand Theft Auto VI keeps them as 21-bit `number >> 4` and rebuilds
|
||||
/// 16: the title keeps them as 21-bit `number >> 4` and rebuilds
|
||||
/// them with `<< 4` (128 GiB of pages at most).
|
||||
const FRAMES: usize = PAGE >> 12;
|
||||
|
||||
@@ -635,7 +635,7 @@ pub extern "system" fn XMemMapPhysicalPages(
|
||||
}
|
||||
|
||||
/// One page at each address; null `pages`, or a page number 0, unmaps
|
||||
/// (Grand Theft Auto VI passes 0 for addresses to clear).
|
||||
/// (the title passes 0 for addresses to clear).
|
||||
pub extern "system" fn XMemMapPhysicalPagesScatter(
|
||||
addresses: *const *mut c_void,
|
||||
n: usize,
|
||||
@@ -665,8 +665,8 @@ pub extern "system" fn XMemMapPhysicalPagesScatter(
|
||||
|
||||
/// Maps the physical pages shown at `[from, from + len)` at `to` as well,
|
||||
/// in place of what `to` shows; `from` 0 unmaps. The GPU's page-mapping
|
||||
/// copies (`victory_gpu`, queue `CopyPageMappingsBatchX`): Grand Theft Auto
|
||||
/// VI maps pages into a pool view, then has the GPU map them into its tiled
|
||||
/// copies (`victory_gpu`, queue `CopyPageMappingsBatchX`):
|
||||
/// the title maps pages into a pool view, then has the GPU map them into its tiled
|
||||
/// heap. Page by page; false if a source page is not mapped physical memory.
|
||||
pub fn map_alias(to: u64, from: u64, len: u64) -> bool {
|
||||
let (to, from, len) = (to as usize, from as usize, len as usize);
|
||||
|
||||
@@ -18,7 +18,7 @@ pub const PROVIDER: Guid = Guid::new(
|
||||
[0xb7, 0x2f, 0x36, 0xed, 0xb1, 0x85, 0x33, 0x1a],
|
||||
);
|
||||
|
||||
/// As Grand Theft Auto VI (2026) asks for it; the slots it calls (0x18-0x88)
|
||||
/// As the title (2026) asks for it; the slots it calls (0x18-0x88)
|
||||
/// take the same arguments as under the provider's own id (older titles).
|
||||
pub const IID_2026: Guid = Guid::new(
|
||||
0xbf23_46b2,
|
||||
|
||||
@@ -20,7 +20,7 @@ pub const PROVIDER: Guid = Guid::new(
|
||||
[0xa8, 0x8d, 0x2f, 0x3d, 0xcb, 0x9d, 0xac, 0x7e],
|
||||
);
|
||||
|
||||
/// As Grand Theft Auto VI (2026) asks for it. Its slots up to 0xd0 take the
|
||||
/// As the title (2026) asks for it. Its slots up to 0xd0 take the
|
||||
/// arguments the public API lists in the same order; 0x110 uninstalls a
|
||||
/// package, 0x128/0x130 mount one with UI, 0x138 enumerates packages.
|
||||
pub const IID_2026: Guid = Guid::new(
|
||||
@@ -139,7 +139,7 @@ extern "system" fn register_progress(
|
||||
/// 0: ready.
|
||||
// shortcut: every selector counts as installed, including ones the
|
||||
// package's layout does not have (the console answers those with an
|
||||
// invalid-selector error); Grand Theft Auto VI asks only about its own
|
||||
// invalid-selector error); the title asks only about its own
|
||||
// chunks, which a full install has.
|
||||
extern "system" fn find_availability(
|
||||
_: This,
|
||||
@@ -210,7 +210,7 @@ extern "system" fn estimate_download(
|
||||
}
|
||||
|
||||
// shortcut: accepted but nothing is removed (the package folder is the
|
||||
// user's), so the chunks stay ready; Grand Theft Auto VI's one call site
|
||||
// user's), so the chunks stay ready; the title's one call site
|
||||
// (title+0x293b4b0, its chunk manager) would then see them still installed.
|
||||
extern "system" fn uninstall_chunks(
|
||||
_: This,
|
||||
@@ -256,7 +256,7 @@ extern "system" fn mount_result(
|
||||
|
||||
/// Titles enumerate content packages (kind 1); there are none.
|
||||
// shortcut: the game kind (0) also lists nothing, not this installation;
|
||||
// Grand Theft Auto VI enumerates only content (kind 1, title+0x2937bf0).
|
||||
// The title enumerates only content (kind 1, title+0x2937bf0).
|
||||
extern "system" fn enumerate(
|
||||
_: This,
|
||||
kind: u32,
|
||||
|
||||
@@ -20,7 +20,7 @@ pub const PROVIDER: Guid = Guid::new(
|
||||
0x448c,
|
||||
[0xb9, 0x2b, 0x39, 0x60, 0xfb, 0x5b, 0xd3, 0x0c],
|
||||
);
|
||||
/// As Grand Theft Auto VI (2026) asks for it; every slot it calls takes
|
||||
/// As the title (2026) asks for it; every slot it calls takes
|
||||
/// the public API's arguments in the 2020 order.
|
||||
pub const IID_2026: Guid = Guid::new(
|
||||
0xb09d_803c,
|
||||
|
||||
@@ -41,7 +41,7 @@ const DEVICE_ID: &str = "VkljdG9yeSBvZmZsaW5lIGRldmljZSBpZGVudGl0eSE=";
|
||||
pub static OBJECT: Object = Object::new("system", &VTABLE);
|
||||
pub static ANALYTICS_OBJECT: Object = Object::new("analytics", &ANALYTICS_VTABLE);
|
||||
|
||||
/// The interface as Grand Theft Auto VI (2026) asks for it; it calls the
|
||||
/// The interface as the title (2026) asks for it; it calls the
|
||||
/// same three slots (0x18, 0x20, 0x28) with the same arguments.
|
||||
pub const IID_2026: Guid = Guid::new(
|
||||
0x1861_cf2e,
|
||||
|
||||
@@ -81,7 +81,7 @@ pub static DEVICE_OBJECT: Object = Object::new("user devices", &DEVICE_VTABLE);
|
||||
|
||||
pub const INTERFACES: &[Interface] = &[
|
||||
(PROVIDER, IID, &OBJECT),
|
||||
// Grand Theft Auto VI (2026) asks with the provider's id; its thunks call
|
||||
// The title (2026) asks with the provider's id; its thunks call
|
||||
// the same slots with the same arguments (0x108/0x110 change events).
|
||||
(PROVIDER, PROVIDER, &OBJECT),
|
||||
(PROVIDER, GAMERTAG_IID, &GAMERTAG_OBJECT),
|
||||
|
||||
Reference in new issue
Block a user