Third-party code compiled into the game
=======================================

The game is licensed under the GNU GPL v3 (see LICENSE). It also contains the
following third-party source, each under its own terms.


simplewebp (BSD-3-Clause)
=========================

The WebP decoder, src/third_party/simplewebp.h (version 20260718), is compiled
into src/system/WebpImage.cpp. It reads the room backgrounds stored as .webp
and the high-resolution texture replacements (docs/HD_TEXTURES.md).

This software is available under BSD-3-Clause License
Some parts of WebP Lossless code is taken from "whale" project by Matej Fencl

Copyright (c) 2010 Google Inc., 2023 Miku AuahDark
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
   this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
   may be used to endorse or promote products derived from this software
   without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The file also carries Google's additional patent grant for the WebM codecs; see
the end of src/third_party/simplewebp.h for its text.


stb_vorbis (public domain / MIT)
================================

The Ogg Vorbis decoder, src/third_party/stb_vorbis.c (v1.22, Sean Barrett), is
compiled into src/system/AudioFile.cpp. It is dual-licensed; the licence text is
at the end of that file.


stb_truetype (public domain / MIT)
==================================

The TrueType rasteriser, src/third_party/stb_truetype.h (v1.26, Sean Barrett),
is compiled into src/game/HdText.cpp. It draws the game's text in the HD
fonts (HD/<USA|JPN>/Data/TITLEFNT.TTF and FONTUS.TTF / FONT.TTF,
docs/HD_TEXTURES.md "HD fonts"). It is dual-licensed; the licence text is at
the end of that file.
