LICENSE GRANT FOR THE PATCH FILES
=================================

This grant covers the three patch files distributed with this package:

  build-contract/.github/legacy-wasm/patches/f80af5d-pooyan-input-resync.patch
    sha256 4a289cbd50b6fd3993ddb2bb3c235c042ea1148092151719425e0be9dad4f11b
  build-contract/.github/legacy-wasm/patches/f80af5d-vram-export.patch
    sha256 bdc2bbe90d49f0d91d7c013df83a9fb376de0be64e334b8e1e3cb6cb4cd2524f
  build-contract/.github/legacy-wasm/patches/6dd4353-makefile-vram-exports.patch
    sha256 5de99d4941892a9179f91b61cce0715fc108f18e1abc815fd8a0733d7f5c2117

and the surrounding build contract in build-contract/ (the scripts, validators and
pinned-input manifests used to control compilation).

GRANT
-----

  Copyright (C) 2026 RetroStream Arcade SL

  These patch files and the accompanying build contract are free software: you can
  redistribute them and/or modify them under the terms of the GNU General Public
  License as published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.

  They are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY;
  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  PURPOSE. See the GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along with this
  distribution. If not, see <https://www.gnu.org/licenses/>.

  SPDX-License-Identifier: GPL-3.0-or-later

WHY THIS FILE EXISTS SEPARATELY
-------------------------------

  The patch files are byte-pinned: their SHA-256 values are recorded in
  pinned-inputs.json, in provenance.json, and inside the binaries' build provenance.
  Adding a licence header inside them would change those bytes and break the chain of
  custody between the shipped binaries and their sources. The grant is therefore stated
  here rather than inside the files.

  The patches are modifications to GPL-3.0-or-later works (Gearcoleco and RetroArch), so
  they are derivative works of those programs and this grant is the licence they were
  already required to carry. Stating it explicitly removes any ambiguity for
  redistributors.

RELATIONSHIP TO THE REST OF THE PACKAGE
---------------------------------------

  The distributed binaries (package/*.data) are GPL-3.0-or-later as a whole. See
  MODIFICATIONS.txt for the required modification notice and dates, and
  THIRD_PARTY_NOTICES.txt for every third-party component combined into them.
