Repository navigation
Conversation
|
Tested
AI-assisted. |
3197a80 to
933c323
Compare
libHttpClient.GDK.dll asks QueryApiImpl for XPackageImpl with IXPackageImpl3's id through 30 thunks (slots 3-19, 22, 24-27, 30, 32-34, 37-40), each in the argument shape of the method at that position of xgameruntime-docs' IXPackageImpl (3-34), IXPackageImpl2 (35-38) and IXPackageImpl3 (39-40) lists, e.g. 10 (monitor, token, bool), 14 (id, count, selectors), 24-26 the mount path trio, 39 (kind, scope, context, callback). Slots with an offline answer forward to the XPackage functions already on main, so the vtable and the named exports agree: 3 the package identifier, 4 packaged process, 25 the mount path; plus 11 the host user's locale, 24 the mount path size (exactly what 25 needs) and 26 closing a mount (nothing to release). Every other slot logs its number once and returns E_NOTIMPL, so the first boot lists what the title needs. xgameruntime_test +6 (80): the IXPackageImpl3 id, 3 and 4 equal the exports, the locale and its short-buffer error, 24/25 sizes, 5/40 stubs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, IIDs, --game-dir) Review (@Flyander): - slot 7 is void XPackageGetInstallationProgress(monitor, XPackageInstallationProgress*): it now writes an installed, launchable, completed package instead of an HRESULT stub ignoring its output. - slots 8, 10, 22, 34 are bool methods (UpdateInstallationMonitor, the two Unregister* calls, UninstallPackage); E_NOTIMPL read as true. They return false / true / true / false, as documented for nothing to do offline. - XPackageGetUserLocale returns the package-declared locale closest to the user's (MicrosoftGame.Config <Resource Language>, from LEONIDA_GAME_DIR or --game-dir), never the host locale; with none declared it succeeds without writing, as Microsoft documents. - QueryInterface answers IXPackageImpl and IXPackageImpl2 too (the IDL chain IXPackageImpl3 : IXPackageImpl2 : IXPackageImpl). And @Ingenioeren's finding: XPackageGetMountPath uses gta6rt's --game-dir (rt::fs::game_dir()) after LEONIDA_GAME_DIR, before the launcher folder. xgameruntime_test links file_system.cpp; +6 checks (88). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GetEnvironmentVariableA narrowed a game folder named outside the ANSI code page (e.g. a runic or CJK character on cp1252), so the package locale lookup missed its MicrosoftGame.Config. Read the variable and open the file wide. The test uses U+16A0, which no ANSI code page has (it fails with the narrow read). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
IXGameImpl3 : IXGameImpl2 : IXGameImpl (xgameruntime include/xgame.idl), slots 3-5: XGameGetXboxTitleId gives MicrosoftGame.Config's <TitleId> (E_FAIL without one, E_INVALIDARG for a null pointer), void XLaunchNewGame is logged and returns, XLaunchRestartOnCrash succeeds with nothing registered. A retail Gen9 title asks QueryApiImpl for this class (Freminet/ScarlettX's observation). The config reader is shared with XPackageGetUserLocale. The two tests that used XGameImpl's id as their example of an unserved class now use XGameSaveImpl's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
933c323 to
216f860
Compare
|
Tested 216f860 merged onto main aa2988c on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, RelWithDebInfo:
AI-assisted (Claude Code). |
|
Verified on Linux: merges cleanly into current main. The C++ pieces (XGameImpl/XPackageImpl vtables, tiny_gdk_load extension) are Windows-only and were not executed here. Two small things: the diff adds shims/file_system.cpp again to the xgameruntime_test sources where it is already listed (harmless to CMake, but drop it), and package_config() carries a leftover doubled comment. Config fixtures are hand-written XML, no game data. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Landed on |
Depends on: #2218 (XPackageImpl; this branch adds one commit on top of it, plus a docs row). Claim: #2516 (comment)
What
QueryApiImplnow serves XGameImpl offline, asked for asIXGameImpl3. The interfaces chainIXGameImpl3 : IXGameImpl2 : IXGameImpl, from the xgameruntime IDL (include/xgame.idl, LGPL); the class id isIXGameImpl's, and the object answers for all three ids. Slots after IUnknown:HRESULT XGameGetXboxTitleId(uint32_t*)<TitleId>the package'sMicrosoftGame.Configdeclares (hex, up to 8 digits, whitespace allowed);E_FAILwithout one,E_INVALIDARGfor a null pointervoid XLaunchNewGame(const char* exe, const char* args, XUserHandle)HRESULT XLaunchRestartOnCrash(const char* args, uint32_t reserved)S_OKwith nothing registeredThe config is read through one helper (
package_config()), shared withXPackageGetUserLocale, fromLEONIDA_GAME_DIRor else--game-dir.Why
The package's DLLs don't call this class;
libHttpClient.GDK.dllonly lists its id in its linked table. But Freminet/ScarlettX's README reports that a retail Gen9 title asksQueryApiImplfor the XGame, XUser, XGameSave, XSystem and XNetworking tables. An executable built against this GDK most likely does the same, and the executable here is expected soon (RT-5). ScarlettX has no license; no code of it is used, only that observation.Tests
xgameruntime_testgets 9 checks:E_FAILwith nothing written; from a config, with mixed case and whitespace; a null pointer; a non-hex value; more than 8 digits;The two tests that used XGameImpl's id as their example of an unserved class (
xgameruntime_test,tiny_gdk_load) now use XGameSaveImpl's, which is still unserved.Windows 11, MSVC Release, on
mainf847748 + #2218:xgameruntime_testOK (115 checks);ctest -R "xgameruntime|tiny_gdk"2/2. Negative control: the new tests against #2218's shim (without XGameImpl):FAIL QueryApiImpl hands out XGameImpl for its class id,2 of 91 checks failed. My own package'sMicrosoftGame.Confighas one<TitleId>, in the hex form the parser accepts; the value isn't printed or included.Not covered: what the executable actually asks of this class is unmeasured until it boots;
QueryApiImpllogs each request then.AI-assisted (Claude Code).
🤖 Generated with Claude Code