JSRF-PC — licence and attribution
=================================

JSRF-PC 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 2 of the License, or (at your option) any later
version, with the additional permission below. The licence's text is in
LICENSE.

JSRF-PC 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.

The releases up to and including b1.4 were published under the MIT licence,
and stay under it.

The code listed below keeps its own licence, with its copyright intact: the
code JSRF-PC is built on, under MIT, and third-party code, under MIT and
LGPL-2.1-or-later. It is other people's work and is credited as such.


Additional permission for the generated code
--------------------------------------------

  The engine is the game's own code, translated to C by the recompiler from
  the player's default.xbe, built together with JSRF-PC. That generated code
  is never in this repository, and this licence doesn't cover it.

  As a special exception, the copyright holders of JSRF-PC give you
  permission to combine JSRF-PC with the code its recompiler generates from
  a game's own executable ("the generated code"), and to convey the combined
  program, without this licence applying to the generated code. Everything
  else in the combined program stays under its own licence, and JSRF-PC's
  source must be offered as this licence requires. If you modify JSRF-PC,
  you may extend this permission to your version, but you are not obliged
  to.


MIT — JSRF Unleashed and the xboxrecomp toolkit
-----------------------------------------------

  https://github.com/JuMatt/JetSetRadioFuture-Unleashed
  https://github.com/sp00nznet/xboxrecomp

  JSRF-PC is built on JuMatt's JSRF Unleashed, which is built on the
  xboxrecomp toolkit by Ned Heller (sp00nz) and its contributors. Their code
  is under the MIT licence, as published with both:

    Copyright (c) 2026 sp00nz

  The full text is in LICENSES/MIT-upstream.txt. It applies to their code
  wherever it is in this repository, as JSRF-PC has changed it since
  (docs/upstream.md), and goes with every copy, the packaged builds
  included.


LGPL-2.1-or-later — extracted from xemu
---------------------------------------

  https://github.com/xemu-project/xemu

  Files, with the copyright each one carries:

    src/apu/apu_core.c    MCPX APU core
                          (c) 2012 espes; 2018-2019 Jannik Vogel;
                          2019-2025 Matt Borgerson
    src/apu/apu_dsp.c     MCPX APU DSP (GP/EP)
                          (c) 2012 espes; 2019-2025 Matt Borgerson
    src/apu/apu_vp.c      MCPX APU voice processor
                          (c) 2012 espes; 2018-2019 Jannik Vogel;
                          2019-2025 Matt Borgerson
    src/apu/apu_regs.h    (c) 2012 espes; 2018-2019 Jannik Vogel;
                          2019-2021 Matt Borgerson
    src/apu/apu_state.h   (c) 2012 espes; 2018-2019 Jannik Vogel;
                          2019-2025 Matt Borgerson
    src/apu/apu_debug.h   (c) 2020-2021 Matt Borgerson
    src/apu/fpconv.h      (c) 2020-2025 Matt Borgerson

  src/apu/apu_shim.h is this project's own file but is released under the
  same licence, because it exists only to host the extracted APU code.

  Licensed under the GNU Lesser General Public License, version 2.1 or (at
  your option) any later version. The full text is in LICENSES/LGPL-2.1.txt;
  the canonical copy is
  https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt

  These files keep their own licence, which fits the GPL that covers the
  rest of JSRF-PC. Linking against them from MIT or proprietary code is
  also expressly permitted by the LGPL — that is what distinguishes it from
  the GPL. What the LGPL asks in return is that the notices stay, that the
  source stays available, and that a user can relink against a modified
  version. Distributing this repository, source included, satisfies that.


MIT — Dear ImGui
----------------

  https://github.com/ocornut/imgui

    third_party/imgui/    Dear ImGui v1.93.0 and its SDL2, OpenGL 3 and
                          null backends, unmodified
                          (c) 2014-2026 Omar Cornut

  The in-game menu (src/menu) is drawn with it. Licensed under the MIT
  licence; the full text is in LICENSES/imgui-MIT.txt.


MIT — miniz
-----------

  https://github.com/richgel999/miniz

    third_party/miniz/    miniz 3.0.2, the release's amalgamated
                          miniz.c and miniz.h, unmodified
                          (c) 2010-2014 Rich Geldreich and Tenacious
                          Software LLC; 2013-2014 RAD Game Tools and Valve
                          Software

  The launchers' setup (launcher/setup) unpacks the tools' Python, a
  .tar.gz, with it. Licensed under the MIT licence; the full text is in
  third_party/miniz/LICENSE, and the packages carry it as
  licences/miniz-MIT.txt.


The tools the player's PC builds the engine with
------------------------------------------------

  Not in this repository, and not in the packages: the launchers' setup
  downloads them from their own sites at the player's first start, or takes
  them from the tools archive published beside each release, which holds
  them as they are, with their own licences:

    Python 3.13.0, python-build-standalone 20241016
                          https://github.com/astral-sh/python-build-standalone
                          the PSF licence, and those of the libraries it
                          bundles (tools/python/LICENSE.txt)
    capstone 5.0.9        https://www.capstone-engine.org
                          the BSD licence (its dist-info's LICENSE.TXT)
    Zig 0.13.0            https://ziglang.org, the ziglang wheel on PyPI
                          the MIT licence (ziglang/LICENSE), with those of
                          LLVM, the C libraries and the rest it carries,
                          beside each in ziglang/lib


MIT — SMAA, the reference implementation
----------------------------------------

  https://github.com/iryoku/smaa

  Files:

    src/nv2a_gl/smaa/SMAA.hlsl,     SMAA (Enhanced Subpixel Morphological
    AreaTex.h, SearchTex.h          Antialiasing) as published, with its
                                    licence (LICENSE.txt beside them)
    src/nv2a_gl/nv2a_smaa_src.h     SMAA.hlsl as GLSL source, made by
                                    src/nv2a_gl/smaa/embed.py

  Copyright (C) 2013 Jorge Jimenez (jorge@iryoku.com)
  Copyright (C) 2013 Jose I. Echevarria (joseignacioechevarria@gmail.com)
  Copyright (C) 2013 Belen Masia (bmasia@unizar.es)
  Copyright (C) 2013 Fernando Navarro (fernandn@microsoft.com)
  Copyright (C) 2013 Diego Gutierrez (diegog@unizar.es)

  Permission is hereby granted, free of charge, to any person obtaining a copy
  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. As clarification, there
  is no requirement that the copyright notice and permission be included in
  binary distributions 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.


MIT — Super-xBR
---------------

  https://github.com/libretro/glsl-shaders (xbr/shaders/super-xbr/)

  Files:

    src/nv2a_gl/nv2a_upscale_glsl.c 2D upscaling's passes: Super-xBR's
                                    three passes (super-xbr-pass0.glsl,
                                    -pass1.glsl and -pass2.glsl), written
                                    in our own GLSL from them

  Copyright (c) 2015 Hyllian - sergiogdb@gmail.com

  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.


Derived algorithms — credited, independently implemented
--------------------------------------------------------

  src/d3d/d3d8_swizzle.h
    Implements Xbox Z-order (Morton) texture unswizzling. The
    masked-increment technique is Fabian Giesen's, published on his blog;
    xemu's hw/xbox/nv2a/pgraph/swizzle.c is cited in the file as the
    reference that pointed us at it.

  Algorithms and hardware behaviour are not themselves copyrightable, and
  these are our own implementations. They are listed here because the debt is
  real and should be visible even where no licence obligation attaches. If
  anyone believes either file crosses from "implements the same algorithm"
  into "copies the expression", raise an issue and we will rewrite or
  relicense it — getting the credit right matters more to us than the licence
  label.


Reference material (no code taken)
-----------------------------------

  xemu, Cxbx-Reloaded and xboxdevwiki were used as references for hardware
  behaviour: register offsets, kernel export ordinals, structure layouts.
  Those are functional facts rather than expression, and no code was copied
  for them.


Contributors to xboxrecomp itself are credited in CONTRIBUTORS.md.
