melonDS is GPL-3.0-or-later. The files ported from it keep its copyright line beside the project's, and name the file and the revision they came from:
src/nds/gpu/gpu3d.c and gpu3d_state.h: GPU3D.cpp and GPU3D.h at 497aa6c (the geometry engine).src/nds/gpu/vk/render3d.c and shaders/poly.vert, poly.frag, post.frag: GPU3D_OpenGL.cpp and its shaders
at 497aa6c (how a frame is drawn: the passes, the stencil's polygon IDs, the blends, edge marking and fog). The
Vulkan code is new.shaders/aa.frag, shaders/layers.glsl and the edge rules of shaders/poly.frag: the anti-aliasing blend, the
edge marking test and what an edge pixel is, as GPU3D_Soft.cpp has them. shaders/clear.frag: the clear bitmap
as GPU3D_OpenGL.cpp reads it.shaders/texture.glsl: the texture formats as GPU3D_Soft.cpp's TextureLookup reads them.shaders/compose.comp: the 2D engines' rules as GPU2D_Soft.cpp and GPU_ColorOp.h have them (the layers' order,
the objects, the windows, the blends). The shader is new: melonDS draws lines on the CPU.src/nds/hle/pxi.c: HLE_Retail/IPC.cpp of the melonHLE branch at b42e2f4.src/nds/hle/sound.c: HLE_Retail/Sound_Nitro.cpp of the same branch.src/nds/audio/spu.c: SPU.cpp at 497aa6c (the channels' formats and the mixer's arithmetic).src/nds/cartridge/key1.c: the KEY1 functions and DecryptSecureArea of NDSCart.cpp at 497aa6c.src/nds/board/memory.c (where each VRAM bank goes), board.c (the state a game starts in), io.c (the divider's
corner cases) and lcd.c (the reference points, the windows' flags) follow GPU.cpp, GPU2D.cpp and NDS.cpp.The registers, the card's commands, the BIOS's calls and the header's layout are GBATEK's. The machine loop and the flat window follow the project's own GBA driver. melonDS is not a build dependency.
Made from docs/platforms/nds/README.md at 69237645142c. GPL-3.0-or-later.