Skip to content

Commit

Permalink
Add SPDX license on every source file
Browse files Browse the repository at this point in the history
excluding:
    * src/3rd
    * src/main/psxsdk
    * src/pc/psxsdk
  • Loading branch information
Xeeynamo committed Aug 22, 2024
1 parent 9badd67 commit db83cfa
Show file tree
Hide file tree
Showing 553 changed files with 551 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ format-symbols:
./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$$' | python3 ./tools/lint-license.py - AGPL-3.0-only
find src/ | grep -E '\.c$$|\.h$$' | grep -vE 'PsyCross|mednafen|psxsdk|3rd' | python3 ./tools/lint-license.py - AGPL-3.0-only
python3 ./tools/lint-license.py include/game.h AGPL-3.0-only
python3 ./tools/lint-license.py include/entity.h AGPL-3.0-only
python3 ./tools/lint-license.py include/items.h AGPL-3.0-only
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-only
/**
* 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-only
#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-only
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-only

#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-only
#ifndef MEMCARD_H
#define MEMCARD_H

Expand Down
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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
#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-only
// 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-only
#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-only
#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-only
#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-only
#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-only
#include <common.h>
#include <log.h>
#include <stdio.h>
Expand Down
1 change: 1 addition & 0 deletions src/pc/plat_win.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
#include <common.h>
#include <log.h>
#include <string.h>
Expand Down
2 changes: 0 additions & 2 deletions src/pc/psxsdk/cdc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


#ifndef CDC_H
#define CDC_H
#include <inttypes.h>
Expand Down
1 change: 1 addition & 0 deletions src/pc/render_gl.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
#include <common.h>
#include <log.h>
#include <game.h>
Expand Down
1 change: 1 addition & 0 deletions src/pc/render_shared.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
#include <common.h>
#include <log.h>
#include <game.h>
Expand Down
1 change: 1 addition & 0 deletions src/pc/render_soft.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
#include <common.h>
#include <log.h>
#include <game.h>
Expand Down
1 change: 1 addition & 0 deletions src/pc/sdl2.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
#include <common.h>
#include <log.h>
#include <game.h>
Expand Down
1 change: 1 addition & 0 deletions src/pc/sdl2_macros.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
#include <game.h>
#ifdef _MSC_VER
#define SDL_MAIN_HANDLED
Expand Down
1 change: 1 addition & 0 deletions src/pc/sdl2_macros.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
#ifndef MACRO_H
#define MACRO_H
#include "game.h"
Expand Down
1 change: 1 addition & 0 deletions src/pc/sdl_defs.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
#ifndef SDL_DEFS_H
#define SDL_DEFS_H
typedef enum {
Expand Down
Loading

0 comments on commit db83cfa

Please sign in to comment.