MIT License

Copyright (c) 2026 Matthew Stanley

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.

---

## What this file covers

This repository's default license is the PolyForm Noncommercial License 1.0.0;
see [`LICENSE`](LICENSE). The MIT terms above apply, as an exception to it, to
the project's own source in these trees:

- `runner/src/`, except `runner/src/melonds_compute/` and
  `runner/src/frontend.cpp`
- `recompiler/armv4t/`
- `recompiler/support/`
- `oracle/`, except `oracle/patches/`

Those trees compile and link against vendored melonDS code, which is
GPL-3.0-or-later, so `nds_runner` and `ndsref` are combined works distributable
only under GPL-3.0-or-later. GPL-3.0 does not permit a noncommercial condition
to be attached to any part of such a work, so this project's own code inside
that boundary keeps a GPL-compatible license.

The excepted paths are themselves derivative works of melonDS rather than a
compatibility choice, and are under GPL-3.0-or-later; see
[`LICENSE-GPL`](LICENSE-GPL). `runner/vendor/melonds/` is likewise GPL and is
not covered by these terms. See
[`THIRD_PARTY_ATTRIBUTION.md`](THIRD_PARTY_ATTRIBUTION.md) for the full
provenance record.
