Egress
Copyright (c) 2026 the Egress contributors.

The project is distributed under the GNU General Public License, version 3 or later (GPL-3.0-or-later); see
LICENSE, which also carries the additional permission for the oracle's Genesis Plus GX core. The paths listed
below as carrying another licence are separate works distributed alongside, under their own terms; they are not
part of the GPL-licensed work and are not relicensed by it.

Egress is an unofficial reimplementation of Shining Force II (Mega Drive, USA). It contains no game data: every
graphic, table, text and sound is read from the player's own ROM at run time. See DISCLAIMER.md.

--------------------------------------------------------------------------------------------------
What the engine uses from SF2DISASM
--------------------------------------------------------------------------------------------------

The game's rules were re-derived by reading SF2DISASM, the community disassembly of the ROM
(https://github.com/ShiningForceCentral/SF2DISASM, CC BY-NC 4.0). The engine (src/SF2.Core, src/SF2.Import, the
Godot host in godot/) therefore does carry facts taken from it: ROM addresses and table layouts of the data
files (for example src/SF2.Import/BattleTables/BattleTableLayout.cs), the ROM's enumerations and constants
(src/SF2.Core/Data/Enums.cs, src/SF2.Core/Data/Services/ServiceConstants.cs) and short label names. Each carries
a `path:LINE` citation. Facts are not SF2DISASM's expression: no commentary or prose from the disassembly is
copied into these files, and the licensed expression it does have (see below) is confined to the listed paths.

--------------------------------------------------------------------------------------------------
Paths under other licences
--------------------------------------------------------------------------------------------------

src/SF2.Oracle/Generated/   RAM addresses, label names and values generated from the SF2DISASM assembler
                            listing. Also not part of the GPL-licensed work.
docs/ram/                   RAM and routine specifications written while reading SF2DISASM. Also not part of
                            the GPL-licensed work.
  Licence: Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0),
  https://creativecommons.org/licenses/by-nc/4.0/
  Attribution: SF2DISASM, by the Shining Force Central community,
  https://github.com/ShiningForceCentral/SF2DISASM
  These paths may not be used for commercial purposes.

patches/                    A patch to Genesis Plus GX (it exports the CPU hook the test oracle uses). It is a
                            derivative of Genesis Plus GX and stays under that licence, not the GPL; it is not
                            part of the GPL-licensed work.
  Licence: the Genesis Plus GX licence (non-commercial, modified redistributions must include the complete
  source; see patches/LICENSE.txt), https://github.com/ekeeke/Genesis-Plus-GX
  Copyright (c) 1998-2003 Charles MacDonald, (c) 2007-2026 Eke-Eke; portions Nicola Salmoria and the MAME team.

native/sf2hook.c            Our own C (GPL-3.0-or-later): the PC-breakpoint hook compiled into the patched core.

--------------------------------------------------------------------------------------------------
Fetched at build time, not included in this repository, never distributed
--------------------------------------------------------------------------------------------------

deps/sf2disasm   SF2DISASM (CC BY-NC 4.0) - read as the reference for the game's behaviour.
deps/gpgx        Genesis Plus GX (Genesis Plus GX licence, non-commercial) - the test oracle. The oracle loads
                 and links it at run time; the GPL section-7 additional permission in LICENSE covers that.

--------------------------------------------------------------------------------------------------
Used by the host and the releases
--------------------------------------------------------------------------------------------------

Godot Engine (MIT): https://godotengine.org/. Every release that carries the engine binary also carries its
licence text (GODOT-LICENSE.txt).

2dog (MIT): https://2dog.dev/, https://github.com/outfox/2dog. It hosts the Godot engine inside the browser
build. Its NuGet packages (2dog.engine, 2dog.browser-wasm) declare the MIT licence
(https://licenses.nuget.org/MIT) and name Moritz Voss as their author; they ship no licence text of their own,
so the licence is quoted here in full and copied into every web release (TWODOG-LICENSE.txt):

  MIT License

  Copyright (c) Moritz Voss

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.

ymfm (BSD-3-Clause): https://github.com/aaronsgiles/ymfm, the YM2612 emulation (third_party/ymfm). Its licence
text ships with every release that carries the library (YMFM-LICENSE).

.NET runtime and libraries (MIT): https://dotnet.microsoft.com/. The Godot desktop/Android exports and the
browser build carry the runtime; its licence and the third-party notices that come with it are copied into
every release as DOTNET-LICENSE.txt and DOTNET-THIRD-PARTY-NOTICES.txt.

--------------------------------------------------------------------------------------------------
Code comments
--------------------------------------------------------------------------------------------------

Comments of the form "SF2DISASM path:LINE" are references to the disassembly. Contributors must not paste
SF2DISASM's comments or prose into this project's source files (see AGENTS.md).
