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
@@ -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 (),
|
||||
|
||||
Reference in new issue
Block a user