Skip to content

Config: the Series S title memory for every Series S spelling - #48

Merged
ivall merged 1 commit into
xcl-dev:mainfrom
gefydev:config-series-s-memory
Nov 22, 2026
Merged

ivall merged 1 commit into
xcl-dev:mainfrom
gefydev:config-series-s-memory

Conversation

@gefydev

@gefydev gefydev commented Nov 22, 2026

Copy link
Copy Markdown
Member

is_series_s() accepts device_type = "lockhart" and "series s", and it decides XSystemGetDeviceType, the OEM ConsoleMode and the texture layout. Config::resolve and title_memory_budget_mb compared device_type with "lockhart" only. So "series s" gave the title a Series S with the Series X budget (13 824 MB), and it took XboxAnacondaTitleMemory from the manifest instead of XboxLockhartTitleMemory. Both now call is_series_s().

Validation

  • New test every_series_s_spelling_gets_the_series_s_memory: on main, "Series S" resolves to ("standard", 13824); with the fix it resolves to ("advanced", 8192), the same as "lockhart".
  • cargo test -p xcl --lib: 330 passed, 0 failed, on Windows GNU under Wine.

is_series_s() takes "lockhart" and "series s", and decides the device
type, the OEM ConsoleMode and the texture layout. resolve() and
title_memory_budget_mb() compared device_type with "lockhart" only, so
device_type = "series s" gave a Series S with the Series X budget
(13 824 MB) and the manifest's XboxAnacondaTitleMemory. Both use
is_series_s() now.
@ivall
ivall merged commit 055b0ad into xcl-dev:main Nov 22, 2026
@ivall

ivall commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Thanks, merged! It's the right fix, using is_series_s() everywhere the device type decides something. All tests pass with the MSVC toolchain on Windows, including the e2e test title.

raylitebull pushed a commit that referenced this pull request Nov 25, 2026
…irst or second

A retail title calls the device's struct-returning methods the C way
(return buffer, then the object). The null device took the second
argument for the buffer in all seven of its such methods, so the title's
first call of device #26 (GetCustomHeapProperties) wrote the 20 bytes of
its result over the device object, vtable pointer first, and the second
call jumped through it: `unhandled exception 0xc0000005 in 0x0 (execute
at address 0x0)` in the same millisecond as "creating a FALLBACK DEVICE".
That is what a run ends in when no D3D12 device can be created, or with
`graphics = "null"`.

The seven methods now find the object as the argument whose first word
is one of the null device's own vtables, as `real::this_first` does for
the real backend.

`struct_returning_methods_take_the_buffer_first_or_second` failed before
(the device came back in place of the buffer). The title with
`graphics = "null"`: before, the fault above at 1.2 s; after, both calls
return and it goes on to device #48 and #73, which the null device does
not implement, and stops there.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants