Egress
Copyright (C) 2026 the Egress contributors

This program is free software: you can redistribute it and/or modify it 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.

This program is distributed in the hope that it 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 program. If not, see
<https://www.gnu.org/licenses/>.


Additional permission under GNU GPL version 3 section 7: the Genesis Plus GX core
================================================================================

The oracle (src/SF2.Oracle), its command-line tool (tools/SF2.OracleCli), the conformance harness and the
recorded scenarios run the original game in Genesis Plus GX, a Mega Drive emulator under its own
non-commercial licence. Genesis Plus GX is never distributed with this program: scripts/bootstrap.sh fetches
it into deps/, and the repository's patches/ directory carries only a patch to it (its licence in
patches/LICENSE.txt). The built oracle loads the emulator as a libretro core and links the small hook in
native/sf2hook.c into it.

As an additional permission under section 7 of the GNU General Public License version 3, you may convey a
covered work that loads Genesis Plus GX at run time, or that links with a build of it, together with the
accompanying native hook, and convey the resulting object code under terms of your choice, provided that the
terms permit modification of the covered work and reverse engineering for debugging such modifications.

This permission covers only the combination with Genesis Plus GX. The emulator itself remains under its own
licence, which you must follow when you fetch, build or convey it, and this permission does not let you
distribute the covered work and Genesis Plus GX as a single combined work.


What this licence covers
========================

This licence covers the repository except the paths that NOTICE lists as carrying their own licences:

  src/SF2.Oracle/Generated/   generated from SF2DISASM - CC BY-NC 4.0
  docs/ram/                   written from SF2DISASM - CC BY-NC 4.0
  patches/                    a Genesis Plus GX derivative - the Genesis Plus GX licence

Those paths are separate works distributed alongside the GPL-licensed work, under their own terms; this
licence does not relicense them, and they are not part of the covered work.

Contributions are accepted under the MIT licence (see CONTRIBUTING.md), so that the maintainer can relicense
them or ship builds under other terms.


The GNU General Public License
==============================

The text of the GNU General Public License, version 3, is in COPYING, exactly as the Free Software
Foundation publishes it (https://www.gnu.org/licenses/gpl-3.0.txt).
