From aa20b07d972d99fce958b9a9732e934025ee0b73 Mon Sep 17 00:00:00 2001 From: T-Crypt Date: Mon, 23 Nov 2026 17:04:58 -0700 Subject: [PATCH] Legal: LEGAL.md, no project or title names in the fork notes and the content gate - LEGAL.md: what the repository holds, what it never accepts (game files, keys, DRM workarounds, NDA material, links to copies, online code), and how to report material. - AGENTS.md: the carried-over notes no longer name the other engine. - check_content.py: title names stored ROT13-encoded; the gate still matches them. --- AGENTS.md | 10 +++++----- LEGAL.md | 41 ++++++++++++++++++++++++++++++++++++++++ README.md | 3 ++- scripts/check_content.py | 4 +++- 4 files changed, 51 insertions(+), 7 deletions(-) create mode 100644 LEGAL.md diff --git a/AGENTS.md b/AGENTS.md index 44e0929..a348eed 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -46,21 +46,21 @@ git merge xcl/main # on a branch; keep our R The program is `bathyal.exe`. The crate, module paths, `XCL_*` settings and the `%LOCALAPPDATA%\XCL` data folder keep XCL's names so these merges stay clean; rename them only together with upstream. -## Notes carried over from Leonida +## Notes carried over from another port engine -Leonida (a C++ port engine for the same console, D3D12.X on Vulkan) met these issues on a newer retail title. +Another port engine for the same console (C++, D3D12.X on Vulkan) met these issues on a newer retail title. XCL already covers most of them: AMD-only CPU instructions such as CLZERO, B5G5R5A1 UAVs, A8 targets, AcpHal's negative-HRESULT asserts, XErrorReport, the TLS index 0 handover and wave64 lane-mask SGPR pairs. Still worth checking here: -- **R9G9B9E5_SHAREDEXP UAV textures.** PC drivers give that format no typed storage. Leonida stores such a +- **R9G9B9E5_SHAREDEXP UAV textures.** PC drivers give that format no typed storage. That engine stores such a texture as a mutable R32_UINT image and lets shaders write the packed bits; SRVs and RTVs keep the shared exponent format. B5G5R5A1 is handled the same way, as R16_UINT. - **sRGB UAV textures.** The title asks for UAVs on sRGB textures (2048x2048 seen), which PC D3D12 refuses. - Leonida drops the UAV flag from the console description when the format has no UAV support, and gives + That engine drops the UAV flag from the console description when the format has no UAV support, and gives UAV views the matching UNORM format. - **GetResourceAllocationInfo with unsupported formats.** The title asks for layouts of formats the PC rejects; - an error there ended in an int3 in Leonida. Answer with the layout of a same-size stand-in format. + an error there ended in an int3 in that engine. Answer with the layout of a same-size stand-in format. - **NVIDIA (32-lane subgroups).** Measured on an RTX 4090: wave64 cross-half operations (readlane, permlane, DPP or shuffles across lanes 31/32, wave-wide reductions) are the known fidelity gap in vertex and pixel shaders. See `docs/wave64-on-wave32.md`. diff --git a/LEGAL.md b/LEGAL.md new file mode 100644 index 0000000..2196425 --- /dev/null +++ b/LEGAL.md @@ -0,0 +1,41 @@ +# Legal + +Bathyal is a compatibility layer. It lets game files that a user already has run on a Windows PC, the way +Wine and Proton let Windows programs run on Linux. It is written for interoperability, from public +documentation and from observing how programs behave. + +This file says what the repository holds, what it never accepts, and how to report a problem. It is not +legal advice. + +## What the repository holds + +- Source code under GPL-2.0-only (`LICENSE`), forked from [XCL](https://github.com/ivall/xcl). + `NOTICE.md` lists the upstream credit, and `THIRD_PARTY.md` lists every outside source with its license. +- Tests that build their inputs by hand (synthetic fixtures), or that read a user's own local files + through a path the user sets. No test input comes from a game. +- Documentation about file formats and console behaviour, written in our own words. + +## What it never holds or accepts + +- Game files of any kind: executables, archives, assets, shaders, audio, video, saves, or logs and dumps + that quote them. +- Keys, decryption code, or code that removes or bypasses copy protection, licence checks or DRM. + Bathyal reads files that are already unpacked. It has no means to unpack or decrypt a protected package. +- Material from a console SDK or any other source under a non-disclosure agreement, and code or tables + copied from a project whose license is not compatible with GPL-2.0. +- Links to copies of games, instructions for getting them, or help with running copies the user does + not own. Issues and pull requests that ask for or offer them are closed and the content is deleted. +- Code that contacts an online service. Bathyal runs offline. + +Every pull request goes through the content gate (`scripts/check_content.py`). It fails a change that +adds a game binary, a shader or media container, an archive, a network library, or a commercial game's +name. A maintainer also reviews the change by hand. + +## Reporting material that should not be here + +If you think this repository holds something that infringes your rights, or anything from the list +above, open an issue titled "Content report" that names the file and the commit. Do not attach the +material. You can also use GitHub's own process (https://docs.github.com/en/site-policy/content-removal-policies). + +A maintainer removes the reported material first and reviews it after. Removal from the history follows +when the report is valid. diff --git a/README.md b/README.md index 1aa2995..b5cb1a6 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,8 @@ the `XCL_*` settings and the `%LOCALAPPDATA%\XCL` data folder keep XCL's names s cleanly and existing caches stay valid. This repository holds code only: no game files, shaders, assets, keys or logs from any game, and no -decryption or DRM workarounds. Bring your own legally obtained, unpacked game files. +decryption or DRM workarounds. Bring your own legally obtained, unpacked game files. See +[`LEGAL.md`](LEGAL.md) for what the project accepts and how to report material that should not be here. Bathyal runs Xbox Series X|S (GDK) game files on a Windows PC **without CPU emulation**: the game's diff --git a/scripts/check_content.py b/scripts/check_content.py index 171fd91..88d6e7c 100644 --- a/scripts/check_content.py +++ b/scripts/check_content.py @@ -11,6 +11,7 @@ - new HTTP/TLS/telemetry crates in Cargo.lock (the code must not go online). """ import argparse +import codecs import os import re import subprocess @@ -35,8 +36,9 @@ (b"7z\xbc\xaf\x27\x1c", "7-Zip archive"), (b"Rar!", "RAR archive"), ] +# The title names are stored ROT13-encoded so that this repository names no commercial title itself. TITLE_NAMES = re.compile( - r"grand\s+theft\s+auto|\bgta\s*(?:v|vi|5|6|online)\b|rockstar\s+games|\bcyberleek\b|game_scarlett_master", + codecs.decode(r"tenaq\f+gursg\f+nhgb|\otgn\f*(?:i|iv|5|6|bayvar)\o|ebpxfgne\f+tnzrf|\oploreyrrx\o|tnzr_fpneyrgg_znfgre", "rot13"), re.IGNORECASE) NETWORK_CRATES = { "reqwest", "ureq", "hyper", "curl", "curl-sys", "isahc", "attohttpc", "surf", "native-tls", "rustls",