Skip to content

Commit

Permalink
Add AGPL license (#1565)
Browse files Browse the repository at this point in the history
From the [public
announcement](https://discord.com/channels/1079389589950705684/1079395108501331990/1276310695964835910)
on Discord:

> We've been progressing very far with the project and I started
wondering what would be the best course of action to protect the work of
existing and future contributors. I personally consider contributions to
a decompilation project as creative work. Therefore it is my desire to
protect this creative work from being re-claimed by other people. This
is especially true in the light of the ability of modding the existing
decompiled code and create derivative work.
> 
> I talked privately with the current most active contributors. And me,
@sozud , @bismurphy and @joshlory so far agreed on pushing through the
AGPLv3 license for all the decompiled code in `sotn-decomp/src`,
excluding any third party code and decompiled code from the PSX SDK. But
I've been wanting to ask all of you if you are fine your code to be
licensed and protected under the AGPLv3 terms.
>
>
https://raw.githubusercontent.com/Xeeynamo/sotn-decomp/89686514916cabd0dd88ae0387f749a889c19e05/src/LICENSE
> 
> I put and all the contributors, which can be accessed to the page
https://github.com/Xeeynamo/sotn-decomp/graphs/contributors . Again,
this will work for existing and future contributors. In the license I
put my full name as I will be responsible of any legality. And I
understand not every contributor wants to disclose their identity.
Please give an approval to my latest PR if you do not have any
objection. If not, please write here publicly.
>
> PS. I understand past contributors will either not see the message
above or decide to ignore it. If I do not hear from anyone of the
contributors for more than one week between those who did not interact
with me or the server, I will still go ahead and apply the license. It
is not in my intention to ignore past contributors. But I do not want
contributors who have been inactive for months or years to be a blocker.
Please do not mistake this as an act of malevolence.

---------

Co-authored-by: Joey Murphy <[email protected]>
  • Loading branch information
Xeeynamo and bismurphy authored Sep 6, 2024
1 parent 4a471b4 commit 4870071
Show file tree
Hide file tree
Showing 537 changed files with 1,257 additions and 9 deletions.
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ clean:
git clean -fdx function_calls/
git clean -fdx sotn_calltree.txt

format: format-src format-tools format-symbols
format: format-src format-tools format-symbols format-license

format-src: bin/clang-format
@# find explainer:
Expand Down Expand Up @@ -176,6 +176,13 @@ format-symbols:
./tools/symbols.py remove-orphans config/splat.us.tt_000.yaml
./tools/symbols.py remove-orphans config/splat.hd.tt_000.yaml
./tools/symbols.py remove-orphans config/splat.us.stmad.yaml
format-license:
find src/ | grep -E '\.c$$|\.h$$' | grep -vE 'PsyCross|mednafen|psxsdk|3rd|saturn/lib' | python3 ./tools/lint-license.py - AGPL-3.0-or-later
python3 ./tools/lint-license.py include/game.h AGPL-3.0-or-later
python3 ./tools/lint-license.py include/entity.h AGPL-3.0-or-later
python3 ./tools/lint-license.py include/items.h AGPL-3.0-or-later
python3 ./tools/lint-license.py include/lba.h AGPL-3.0-or-later
python3 ./tools/lint-license.py include/memcard.h AGPL-3.0-or-later

# fast-format
ff: MAKEFLAGS += --jobs
Expand Down
1 change: 1 addition & 0 deletions include/entity.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
/**
* Custom Entity Subtypes
*/
Expand Down
1 change: 1 addition & 0 deletions include/game.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#ifndef GAME_H
#define GAME_H
#include "common.h"
Expand Down
1 change: 1 addition & 0 deletions include/items.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
typedef enum ItemSlots {
LEFT_HAND_SLOT,
RIGHT_HAND_SLOT,
Expand Down
1 change: 1 addition & 0 deletions include/lba.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later

#define OFF_WARNING_TIM 24545
#define LEN_WARNING_TIM 327700
Expand Down
1 change: 1 addition & 0 deletions include/memcard.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#ifndef MEMCARD_H
#define MEMCARD_H

Expand Down
30 changes: 30 additions & 0 deletions src/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
sotn-decomp, re-interpretation of the game Castlevania:Symphony of the Night
Copyright (C) 2024 Luciano Ciccariello and all the contributors

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.

You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL,
see <https://www.gnu.org/licenses/>.
1 change: 1 addition & 0 deletions src/config_us.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "game.h"

// clang-format off
Expand Down
1 change: 1 addition & 0 deletions src/destroy_entities_from_index.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#ifndef HARD_LINK
void DestroyEntitiesFromIndex(s16 index) {
Entity* entity = &g_Entities[index];
Expand Down
1 change: 1 addition & 0 deletions src/destroy_entity.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#ifndef HARD_LINK
void DestroyEntity(Entity* entity) {
s32 i;
Expand Down
1 change: 1 addition & 0 deletions src/dra/42398.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "lba.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/47BB8.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "lba.h"

Expand Down
1 change: 1 addition & 0 deletions src/dra/4A538.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"

Expand Down
1 change: 1 addition & 0 deletions src/dra/5087C.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "menu.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/5D5BC.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/627C4.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/63ED4.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/692E8.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "sfx.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/6D59C.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "sfx.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/704D0.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "sfx.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/71830.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/72BB0.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "sfx.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/75F54.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/78D0C.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "objects.h"
#include "sfx.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/7A4D0.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/7E4BC.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/843B0.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "objects.h"
#include "sfx.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/8A0A4.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "sfx.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/8D3E8.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/91EBC.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/92F60.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/93290.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/93BDC.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/94F50.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/953A0.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/bss.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <game.h>
#include <psxsdk/libsnd.h>
#include "disk.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/cd.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "lba.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/collider.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"

typedef enum {
Expand Down
1 change: 1 addition & 0 deletions src/dra/config_jp.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "game.h"

// !!! IMPORTANT !!!
Expand Down
1 change: 1 addition & 0 deletions src/dra/config_us.c
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "../config_us.h"
1 change: 1 addition & 0 deletions src/dra/d_10798.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"

AnimationFrame D_800B0798[] = {
Expand Down
1 change: 1 addition & 0 deletions src/dra/d_24CEC.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <game.h>

u8 D_800C4CEC[] = {
Expand Down
1 change: 1 addition & 0 deletions src/dra/d_2F324.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <game.h>

typedef struct {
Expand Down
1 change: 1 addition & 0 deletions src/dra/d_3B0D4.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"

u16 D_800DB0D4[] = {
Expand Down
1 change: 1 addition & 0 deletions src/dra/d_C910.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"

#if defined(VERSION_US)
Expand Down
1 change: 1 addition & 0 deletions src/dra/d_CD80.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"

Vram g_Vram = {
Expand Down
1 change: 1 addition & 0 deletions src/dra/d_CF74.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "sfx.h"

Expand Down
1 change: 1 addition & 0 deletions src/dra/d_DBD4.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"

AnimationFrame D_800ADBD4[] = {
Expand Down
1 change: 1 addition & 0 deletions src/dra/d_E294.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"

AnimationFrame D_800AE294[] = {
Expand Down
1 change: 1 addition & 0 deletions src/dra/demo.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"

extern u8 D_800A243C[32] = {
Expand Down
1 change: 1 addition & 0 deletions src/dra/dra.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#ifndef DRA_H
#define DRA_H

Expand Down
1 change: 1 addition & 0 deletions src/dra/dra_bss.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"

// BSS shared
Expand Down
1 change: 1 addition & 0 deletions src/dra/dra_header.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <game.h>

typedef void (*Entrypoint)(void);
Expand Down
1 change: 1 addition & 0 deletions src/dra/lang_us.c
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "game.h"
1 change: 1 addition & 0 deletions src/dra/lba_stage.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "game.h"

// clang-format off
Expand Down
1 change: 1 addition & 0 deletions src/dra/loading.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "sfx.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/menu.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "menu.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/menu.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#ifndef MENU_H
#define MENU_H

Expand Down
1 change: 1 addition & 0 deletions src/dra/pads.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"

// BSS
Expand Down
1 change: 1 addition & 0 deletions src/dra/play.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "sfx.h"
Expand Down
1 change: 1 addition & 0 deletions src/dra/save_mgr.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "dra_bss.h"
#include "../save_mgr.h"
1 change: 1 addition & 0 deletions src/dra/save_mgr_pre.c
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "dra.h"
#include "../save_mgr_pre.h"
1 change: 1 addition & 0 deletions src/main/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "common.h"
#include "game.h"

Expand Down
1 change: 0 additions & 1 deletion src/main/psxsdk/libsnd/sstick.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "libsnd_i.h"

void SsSetTickMode(long tick_mode) {
Expand Down
1 change: 1 addition & 0 deletions src/pc/io.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <stdio.h>
#include <stdlib.h>
#include "pc.h"
Expand Down
1 change: 1 addition & 0 deletions src/pc/log.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <log.h>
#include <stdarg.h>
#include <stdio.h>
Expand Down
1 change: 1 addition & 0 deletions src/pc/null.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// something is off with the headers in this target
#include "../../include/common.h"
#include "../../include/psxsdk/libgpu.h"
Expand Down
1 change: 1 addition & 0 deletions src/pc/pc.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <common.h>
#include <stdarg.h>
#include <stdio.h>
Expand Down
1 change: 1 addition & 0 deletions src/pc/pc.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#ifndef PC_H
#define PC_H

Expand Down
1 change: 1 addition & 0 deletions src/pc/pl_arc.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <game.h>
#include <log.h>
#include "pc.h"
Expand Down
1 change: 1 addition & 0 deletions src/pc/pl_ric.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <game.h>

extern PlayerOvl RIC_player;
Expand Down
1 change: 1 addition & 0 deletions src/pc/plat_unix.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <common.h>
#include <log.h>
#include <stdio.h>
Expand Down
Loading

0 comments on commit 4870071

Please sign in to comment.