From 487007194c5602f94c8ec2d68b14506d85284cad Mon Sep 17 00:00:00 2001 From: Luciano Ciccariello Date: Fri, 6 Sep 2024 21:14:55 +0100 Subject: [PATCH] Add AGPL license (#1565) 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 --- LICENSE | 661 ++++++++++++++++++++ Makefile | 9 +- include/entity.h | 1 + include/game.h | 1 + include/items.h | 1 + include/lba.h | 1 + include/memcard.h | 1 + src/LICENSE | 30 + src/config_us.h | 1 + src/destroy_entities_from_index.h | 1 + src/destroy_entity.h | 1 + src/dra/42398.c | 1 + src/dra/47BB8.c | 1 + src/dra/4A538.c | 1 + src/dra/5087C.c | 1 + src/dra/5D5BC.c | 1 + src/dra/627C4.c | 1 + src/dra/63ED4.c | 1 + src/dra/692E8.c | 1 + src/dra/6D59C.c | 1 + src/dra/704D0.c | 1 + src/dra/71830.c | 1 + src/dra/72BB0.c | 1 + src/dra/75F54.c | 1 + src/dra/78D0C.c | 1 + src/dra/7A4D0.c | 1 + src/dra/7E4BC.c | 1 + src/dra/843B0.c | 1 + src/dra/8A0A4.c | 1 + src/dra/8D3E8.c | 1 + src/dra/91EBC.c | 1 + src/dra/92F60.c | 1 + src/dra/93290.c | 1 + src/dra/93BDC.c | 1 + src/dra/94F50.c | 1 + src/dra/953A0.c | 1 + src/dra/bss.c | 1 + src/dra/cd.c | 1 + src/dra/collider.c | 1 + src/dra/config_jp.c | 1 + src/dra/config_us.c | 1 + src/dra/d_10798.c | 1 + src/dra/d_24CEC.c | 1 + src/dra/d_2F324.c | 1 + src/dra/d_3B0D4.c | 1 + src/dra/d_C910.c | 1 + src/dra/d_CD80.c | 1 + src/dra/d_CF74.c | 1 + src/dra/d_DBD4.c | 1 + src/dra/d_E294.c | 1 + src/dra/demo.c | 1 + src/dra/dra.h | 1 + src/dra/dra_bss.h | 1 + src/dra/dra_header.c | 1 + src/dra/lang_us.c | 1 + src/dra/lba_stage.c | 1 + src/dra/loading.c | 1 + src/dra/menu.c | 1 + src/dra/menu.h | 1 + src/dra/pads.c | 1 + src/dra/play.c | 1 + src/dra/save_mgr.c | 1 + src/dra/save_mgr_pre.c | 1 + src/main/main.c | 1 + src/main/psxsdk/libsnd/sstick.c | 1 - src/pc/io.c | 1 + src/pc/log.c | 1 + src/pc/null.c | 1 + src/pc/pc.c | 1 + src/pc/pc.h | 1 + src/pc/pl_arc.c | 1 + src/pc/pl_ric.c | 1 + src/pc/plat_unix.c | 1 + src/pc/plat_win.c | 1 + src/pc/psxsdk/cdc.h | 2 - src/pc/render_gl.c | 1 + src/pc/render_shared.c | 1 + src/pc/render_soft.c | 1 + src/pc/sdl2.c | 1 + src/pc/sdl2_macros.c | 1 + src/pc/sdl2_macros.h | 1 + src/pc/sdl_defs.h | 1 + src/pc/sim_pc.c | 1 + src/pc/sotn.c | 1 + src/pc/stages/stage_dummy.c | 1 + src/pc/stages/stage_loader.c | 1 + src/pc/stages/stage_loader.h | 1 + src/pc/stages/stage_sel.c | 1 + src/pc/stages/stage_wrp.c | 1 + src/pc/str.c | 1 + src/pc/stubs.c | 1 + src/pc/weapon_pc.c | 1 + src/pc/weapon_pc.h | 1 + src/ric/1AC60.c | 1 + src/ric/1CB04.c | 1 + src/ric/1FCD0.c | 1 + src/ric/202A8.c | 1 + src/ric/20920.c | 1 + src/ric/21250.c | 1 + src/ric/24788.c | 1 + src/ric/26C84.c | 1 + src/ric/2A060.c | 1 + src/ric/2C4C4.c | 1 + src/ric/319C4.c | 1 + src/ric/bss.c | 1 + src/ric/d_18568.c | 1 + src/ric/e_giant_spinning_cross.c | 1 + src/ric/pl_anims.c | 1 + src/ric/pl_header.c | 1 + src/ric/ric.h | 1 + src/ric/spriteparts.c | 1 + src/saturn/alucard.c | 1 + src/saturn/game.c | 1 + src/saturn/game.h | 1 + src/saturn/inc_asm.h | 1 + src/saturn/lib/mth.h | 2 - src/saturn/lib/sys.h | 2 - src/saturn/sattypes.h | 1 + src/saturn/stage_02.c | 1 + src/saturn/stage_02.h | 1 + src/saturn/t_bat.c | 1 + src/saturn/warp.c | 1 + src/saturn/zero.c | 1 + src/saturn/zero.h | 1 + src/save_mgr.h | 1 + src/save_mgr_pre.h | 1 + src/servant/tt_000/10E8.c | 1 + src/servant/tt_000/448.c | 1 + src/servant/tt_000/45E4.c | 1 + src/servant/tt_000/4A8.c | 1 + src/servant/tt_000/608.c | 1 + src/servant/tt_000/spriteparts.c | 1 + src/set_prim_rect.h | 1 + src/st/adjust_value_within_threshold.h | 1 + src/st/alloc_entity.h | 1 + src/st/animate_entity.h | 1 + src/st/blink_item.h | 1 + src/st/blit_char.h | 1 + src/st/cen/14264.c | 1 + src/st/cen/18084.c | 1 + src/st/cen/1B274.c | 1 + src/st/cen/D4F0.c | 1 + src/st/cen/D600.c | 1 + src/st/cen/F890.c | 1 + src/st/cen/blit_char.c | 1 + src/st/cen/cen.h | 1 + src/st/cen/collision.c | 1 + src/st/cen/create_entity.c | 1 + src/st/cen/e_collect.c | 1 + src/st/cen/e_red_door.c | 1 + src/st/cen/entity.c | 1 + src/st/cen/entity_heart_drop.c | 1 + src/st/cen/entity_message_box.c | 1 + src/st/cen/entity_relic_orb.c | 1 + src/st/cen/header.c | 1 + src/st/cen/holyglassescutscene.c | 1 + src/st/cen/prim_helpers.c | 1 + src/st/cen/random.c | 1 + src/st/cen/tile_data.c | 1 + src/st/cen/update.c | 1 + src/st/cen/update_stage_entities.c | 1 + src/st/check_coll_offsets.h | 1 + src/st/check_field_collision.h | 1 + src/st/clut_lerp.h | 1 + src/st/collect_gold.h | 1 + src/st/collect_heart.h | 1 + src/st/collect_heart_vessel.h | 1 + src/st/collision.h | 1 + src/st/create_entities_horizontal.h | 1 + src/st/create_entities_right.h | 1 + src/st/create_entities_vertical.h | 1 + src/st/create_entity.h | 1 + src/st/create_entity_from_entity.h | 1 + src/st/create_entity_from_layout.h | 1 + src/st/create_entity_in_range.h | 1 + src/st/dre/11A64.c | 1 + src/st/dre/13E18.c | 1 + src/st/dre/161DC.c | 1 + src/st/dre/1697C.c | 1 + src/st/dre/1A3A8.c | 1 + src/st/dre/1E1C8.c | 1 + src/st/dre/22848.c | 1 + src/st/dre/blit_char.c | 1 + src/st/dre/bss.c | 1 + src/st/dre/collision.c | 1 + src/st/dre/create_entity.c | 1 + src/st/dre/dre.h | 1 + src/st/dre/e_collect.c | 1 + src/st/dre/e_red_door.c | 1 + src/st/dre/entity_heart_drop.c | 1 + src/st/dre/entity_message_box.c | 1 + src/st/dre/entity_relic_orb.c | 1 + src/st/dre/header.c | 1 + src/st/dre/prim_helpers.c | 1 + src/st/dre/random.c | 1 + src/st/dre/succubus.c | 1 + src/st/dre/succubuscutscene.c | 1 + src/st/dre/tile_data.c | 1 + src/st/dre/update.c | 1 + src/st/dre/update_stage_entities.c | 1 + src/st/e_bone_scimitar.h | 1 + src/st/e_breakable.h | 1 + src/st/e_collect.h | 1 + src/st/e_merman.h | 1 + src/st/e_merman2.h | 1 + src/st/e_misc.h | 1 + src/st/e_particles.h | 1 + src/st/e_red_door.h | 1 + src/st/e_room_fg.h | 1 + src/st/e_stage_name.h | 1 + src/st/entity_big_red_fireball.h | 1 + src/st/entity_damage_display.h | 1 + src/st/entity_dummy.h | 1 + src/st/entity_enemy_blood.h | 1 + src/st/entity_explosion.h | 1 + src/st/entity_explosion_spawn.h | 1 + src/st/entity_intense_explosion.h | 1 + src/st/entity_message_box.h | 1 + src/st/entity_olrox_drool.h | 1 + src/st/entity_relic_orb.h | 1 + src/st/entity_soul_steal_orb.h | 1 + src/st/entity_unkId13.h | 1 + src/st/entity_unkId14.h | 1 + src/st/entity_unkId14_spawner.h | 1 + src/st/entity_unkId15.h | 1 + src/st/entity_unkId15_spawner.h | 1 + src/st/entity_unk_id12.h | 1 + src/st/fall_entity.h | 1 + src/st/find_entity_horizontal.h | 1 + src/st/find_entity_vertical.h | 1 + src/st/get_angle_between_entities.h | 1 + src/st/get_angle_between_entities_shifted.h | 1 + src/st/get_angle_point_to_entity.h | 1 + src/st/get_angle_point_to_entity_shifted.h | 1 + src/st/get_distance_to_player_x.h | 1 + src/st/get_distance_to_player_y.h | 1 + src/st/get_normalized_angle.h | 1 + src/st/get_player_collision_with.h | 1 + src/st/get_side_to_player.h | 1 + src/st/get_sine.h | 1 + src/st/get_sine_scaled.h | 1 + src/st/init_entity.h | 1 + src/st/init_room_entities.h | 1 + src/st/initialize_unk_entity.h | 1 + src/st/mad/11D3C.c | 1 + src/st/mad/15520.c | 1 + src/st/mad/D8C8.c | 1 + src/st/mad/bss.c | 1 + src/st/mad/collision.c | 1 + src/st/mad/create_entity.c | 1 + src/st/mad/e_collect.c | 1 + src/st/mad/e_red_door.c | 1 + src/st/mad/entity_relic_orb.c | 1 + src/st/mad/header.c | 1 + src/st/mad/mad.h | 1 + src/st/mad/prim_helpers.c | 1 + src/st/mad/st_update.c | 1 + src/st/make_entity_from_id.h | 1 + src/st/make_explosions.h | 1 + src/st/move_entity.h | 1 + src/st/no3/377D4.c | 1 + src/st/no3/3C4EC.c | 1 + src/st/no3/3E134.c | 1 + src/st/no3/3FF00.c | 1 + src/st/no3/44C64.c | 1 + src/st/no3/48A84.c | 1 + src/st/no3/516B4.c | 1 + src/st/no3/53F38.c | 1 + src/st/no3/56264.c | 1 + src/st/no3/564B0.c | 1 + src/st/no3/blit_char.c | 1 + src/st/no3/bss.c | 1 + src/st/no3/collision.c | 1 + src/st/no3/create_entity.c | 1 + src/st/no3/deathcutscene.c | 1 + src/st/no3/e_bone_scimitar.c | 1 + src/st/no3/e_collect.c | 1 + src/st/no3/e_red_door.c | 1 + src/st/no3/entity_heart_drop.c | 1 + src/st/no3/entity_message_box.c | 1 + src/st/no3/entity_relic_orb.c | 1 + src/st/no3/header.c | 1 + src/st/no3/no3.h | 1 + src/st/no3/player_water_effect.c | 1 + src/st/no3/prim_helpers.c | 1 + src/st/no3/st_update.c | 1 + src/st/no3/tile_data.c | 1 + src/st/np3/32830.c | 1 + src/st/np3/363FC.c | 1 + src/st/np3/44DCC.c | 1 + src/st/np3/48238.c | 1 + src/st/np3/4997C.c | 1 + src/st/np3/49BC8.c | 1 + src/st/np3/49F98.c | 1 + src/st/np3/4B018.c | 1 + src/st/np3/4D540.c | 1 + src/st/np3/4E69C.c | 1 + src/st/np3/4F5B8.c | 1 + src/st/np3/blade.c | 1 + src/st/np3/blit_char.c | 1 + src/st/np3/bss.c | 1 + src/st/np3/collision.c | 1 + src/st/np3/create_entity.c | 1 + src/st/np3/e_bone_scimitar.c | 1 + src/st/np3/e_breakable.c | 1 + src/st/np3/e_collect.c | 1 + src/st/np3/e_init.c | 1 + src/st/np3/e_misc.c | 1 + src/st/np3/e_particles.c | 1 + src/st/np3/e_red_door.c | 1 + src/st/np3/e_room_fg.c | 1 + src/st/np3/e_stage_name.c | 1 + src/st/np3/gaibon.c | 1 + src/st/np3/header.c | 1 + src/st/np3/np3.h | 1 + src/st/np3/player_water_effect.c | 1 + src/st/np3/popup.c | 1 + src/st/np3/prim_helpers.c | 1 + src/st/np3/slogra.c | 1 + src/st/np3/st_common.c | 1 + src/st/np3/st_debug.c | 1 + src/st/np3/st_update.c | 1 + src/st/np3/tile_data.c | 1 + src/st/nz0/30958.c | 1 + src/st/nz0/311C0.c | 1 + src/st/nz0/36DE4.c | 1 + src/st/nz0/4070C.c | 1 + src/st/nz0/blit_char.c | 1 + src/st/nz0/bossfight.c | 1 + src/st/nz0/bss.c | 1 + src/st/nz0/collision.c | 1 + src/st/nz0/create_entity.c | 1 + src/st/nz0/e_axe_knight.c | 1 + src/st/nz0/e_bloody_skeleton.c | 1 + src/st/nz0/e_bloody_zombie.c | 1 + src/st/nz0/e_bone_scimitar.c | 1 + src/st/nz0/e_breakable.c | 1 + src/st/nz0/e_collect.c | 1 + src/st/nz0/e_elevator.c | 1 + src/st/nz0/e_init.c | 1 + src/st/nz0/e_magically_sealed_door.c | 1 + src/st/nz0/e_particles.c | 1 + src/st/nz0/e_red_door.c | 2 +- src/st/nz0/e_room_fg.c | 1 + src/st/nz0/e_skeleton.c | 1 + src/st/nz0/e_spittle_bone.c | 1 + src/st/nz0/e_stage_name.c | 1 + src/st/nz0/e_subweapon_container.c | 1 + src/st/nz0/entity_heart_drop.c | 1 + src/st/nz0/entity_message_box.c | 1 + src/st/nz0/entity_relic_orb.c | 1 + src/st/nz0/gaibon.c | 1 + src/st/nz0/header.c | 1 + src/st/nz0/lifeupspawn.c | 1 + src/st/nz0/maria.c | 1 + src/st/nz0/mariacutscene.c | 1 + src/st/nz0/nz0.h | 1 + src/st/nz0/popup.c | 1 + src/st/nz0/prim_helpers.c | 1 + src/st/nz0/slogra.c | 1 + src/st/nz0/st_common.c | 1 + src/st/nz0/st_update.c | 1 + src/st/nz0/tile_data.c | 1 + src/st/play_sfx_positional.h | 1 + src/st/popup.h | 1 + src/st/prevent_entity_from_respawning.h | 1 + src/st/prim_helpers.h | 1 + src/st/random.h | 1 + src/st/ratan2.h | 1 + src/st/ratan2_shifted.h | 1 + src/st/replace_breakable_with_item_drop.h | 1 + src/st/rwrp/bss.c | 1 + src/st/rwrp/d_1b8.c | 1 + src/st/rwrp/e_init.c | 1 + src/st/rwrp/e_misc.c | 1 + src/st/rwrp/header.c | 1 + src/st/rwrp/rwrp.h | 1 + src/st/rwrp/tile_data.c | 1 + src/st/rwrp/warp.c | 1 + src/st/sel/2C048.c | 1 + src/st/sel/33164.c | 1 + src/st/sel/3410C.c | 1 + src/st/sel/3585C.c | 1 + src/st/sel/3642C.c | 1 + src/st/sel/CD54.c | 1 + src/st/sel/banks.c | 1 + src/st/sel/bss.c | 1 + src/st/sel/config_us.c | 1 + src/st/sel/lba_stage.c | 1 + src/st/sel/save_mgr.c | 1 + src/st/sel/save_mgr_pre.c | 1 + src/st/sel/sel.h | 1 + src/st/sel/stream.c | 1 + src/st/sel/stream_info.c | 1 + src/st/set_entity_velocity_from_angle.h | 1 + src/st/set_step.h | 1 + src/st/set_sub_step.h | 1 + src/st/st0/27D64.c | 1 + src/st/st0/2A218.c | 1 + src/st/st0/2A8DC.c | 1 + src/st/st0/2B0C8.c | 1 + src/st/st0/2C564.c | 1 + src/st/st0/2DAC8.c | 1 + src/st/st0/30030.c | 1 + src/st/st0/34908.c | 1 + src/st/st0/37308.c | 1 + src/st/st0/3D8F0.c | 1 + src/st/st0/bss.c | 1 + src/st/st0/collision.c | 1 + src/st/st0/create_entity.c | 1 + src/st/st0/draculacutscene.c | 1 + src/st/st0/e_collect.c | 1 + src/st/st0/e_red_door.c | 1 + src/st/st0/header.c | 1 + src/st/st0/prim_helpers.c | 1 + src/st/st0/random.c | 1 + src/st/st0/st0.h | 1 + src/st/st0/tile_data.c | 1 + src/st/st0/update.c | 1 + src/st/st0/update_stage_entities.c | 1 + src/st/st_private.h | 1 + src/st/unk_anim_func.h | 1 + src/st/unk_collision_func.h | 1 + src/st/unk_collision_func2.h | 1 + src/st/unk_collision_func3.h | 1 + src/st/unk_collision_func4.h | 1 + src/st/unk_collision_func5.h | 1 + src/st/unk_entity_func0.h | 1 + src/st/unk_recursive_primfunc_1.h | 1 + src/st/unk_recursive_primfunc_2.h | 1 + src/st/update.h | 1 + src/st/update_room_position.h | 1 + src/st/update_stage_entities.h | 1 + src/st/wrp/blit_char.c | 1 + src/st/wrp/bss.c | 1 + src/st/wrp/collision.c | 1 + src/st/wrp/create_entity.c | 1 + src/st/wrp/d_1b8.c | 1 + src/st/wrp/d_608.c | 1 + src/st/wrp/e_breakable.c | 1 + src/st/wrp/e_collect.c | 1 + src/st/wrp/e_init.c | 1 + src/st/wrp/e_misc.c | 1 + src/st/wrp/e_particles.c | 1 + src/st/wrp/e_red_door.c | 1 + src/st/wrp/e_room_fg.c | 1 + src/st/wrp/e_stage_name.c | 1 + src/st/wrp/header.c | 1 + src/st/wrp/popup.c | 1 + src/st/wrp/prim_helpers.c | 1 + src/st/wrp/st_common.c | 1 + src/st/wrp/st_debug.c | 1 + src/st/wrp/st_update.c | 1 + src/st/wrp/tile_data.c | 1 + src/st/wrp/warp.c | 1 + src/st/wrp/wrp.h | 1 + src/st/wrp_psp/blit_char.c | 1 + src/st/wrp_psp/bss.c | 1 + src/st/wrp_psp/collision.c | 1 + src/st/wrp_psp/create_entity.c | 1 + src/st/wrp_psp/e_collect.c | 1 + src/st/wrp_psp/e_misc.c | 1 + src/st/wrp_psp/e_particles_data.c | 1 + src/st/wrp_psp/e_particles_maria1.c | 1 + src/st/wrp_psp/e_particles_maria2.c | 1 + src/st/wrp_psp/e_stage_name.c | 1 + src/st/wrp_psp/prim_helpers.c | 1 + src/st/wrp_psp/st_init_wrp.c | 1 + src/st/wrp_psp/stage_name_new.c | 1 + src/st/wrp_psp/wrp_data_142E0.c | 1 + src/st/wrp_psp/wrp_data_F010.c | 1 + src/st/wrp_psp/wrp_data_F740.c | 1 + src/st/wrp_psp/wrp_data_F7B0.c | 1 + src/st/wrp_psp/wrp_data_F810.c | 1 + src/weapon/shared.h | 1 + src/weapon/w_000.c | 1 + src/weapon/w_001.c | 1 + src/weapon/w_002.c | 1 + src/weapon/w_003.c | 1 + src/weapon/w_004.c | 1 + src/weapon/w_005.c | 1 + src/weapon/w_006.c | 1 + src/weapon/w_007.c | 1 + src/weapon/w_008.c | 1 + src/weapon/w_009.c | 1 + src/weapon/w_010.c | 1 + src/weapon/w_011.c | 1 + src/weapon/w_012.c | 1 + src/weapon/w_013.c | 1 + src/weapon/w_014.c | 1 + src/weapon/w_015.c | 1 + src/weapon/w_016.c | 1 + src/weapon/w_017.c | 1 + src/weapon/w_018.c | 1 + src/weapon/w_019.c | 1 + src/weapon/w_020.c | 1 + src/weapon/w_021.c | 1 + src/weapon/w_022.c | 1 + src/weapon/w_023.c | 1 + src/weapon/w_024.c | 1 + src/weapon/w_025.c | 1 + src/weapon/w_026.c | 1 + src/weapon/w_027.c | 1 + src/weapon/w_028.c | 1 + src/weapon/w_029.c | 1 + src/weapon/w_030.c | 1 + src/weapon/w_031.c | 1 + src/weapon/w_032.c | 1 + src/weapon/w_033.c | 1 + src/weapon/w_034.c | 1 + src/weapon/w_035.c | 1 + src/weapon/w_036.c | 1 + src/weapon/w_037.c | 1 + src/weapon/w_038.c | 1 + src/weapon/w_039.c | 1 + src/weapon/w_040.c | 1 + src/weapon/w_041.c | 1 + src/weapon/w_042.c | 1 + src/weapon/w_043.c | 1 + src/weapon/w_044.c | 1 + src/weapon/w_045.c | 1 + src/weapon/w_046.c | 1 + src/weapon/w_047.c | 1 + src/weapon/w_048.c | 1 + src/weapon/w_049.c | 1 + src/weapon/w_050.c | 1 + src/weapon/w_051.c | 1 + src/weapon/w_052.c | 1 + src/weapon/w_053.c | 1 + src/weapon/w_053_056.h | 1 + src/weapon/w_054.c | 1 + src/weapon/w_055.c | 1 + src/weapon/w_056.c | 1 + src/weapon/w_057.c | 1 + src/weapon/w_058.c | 1 + src/weapon/weapon_private.h | 1 + tools/lint-license.py | 29 + 537 files changed, 1257 insertions(+), 9 deletions(-) create mode 100644 LICENSE create mode 100644 src/LICENSE create mode 100644 tools/lint-license.py diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..be3f7b28e --- /dev/null +++ b/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + 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 . + +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 +. diff --git a/Makefile b/Makefile index 091c78056..b3458c8eb 100644 --- a/Makefile +++ b/Makefile @@ -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: @@ -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 diff --git a/include/entity.h b/include/entity.h index c9b01ef09..8414c49e6 100644 --- a/include/entity.h +++ b/include/entity.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /** * Custom Entity Subtypes */ diff --git a/include/game.h b/include/game.h index af02a5939..f99be77bd 100644 --- a/include/game.h +++ b/include/game.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef GAME_H #define GAME_H #include "common.h" diff --git a/include/items.h b/include/items.h index 5b99327c0..b33860da9 100644 --- a/include/items.h +++ b/include/items.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later typedef enum ItemSlots { LEFT_HAND_SLOT, RIGHT_HAND_SLOT, diff --git a/include/lba.h b/include/lba.h index 141a7ad67..b99c04416 100644 --- a/include/lba.h +++ b/include/lba.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #define OFF_WARNING_TIM 24545 #define LEN_WARNING_TIM 327700 diff --git a/include/memcard.h b/include/memcard.h index c75ee62a4..022baaf7a 100644 --- a/include/memcard.h +++ b/include/memcard.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef MEMCARD_H #define MEMCARD_H diff --git a/src/LICENSE b/src/LICENSE new file mode 100644 index 000000000..5370518e7 --- /dev/null +++ b/src/LICENSE @@ -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 . + +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 . diff --git a/src/config_us.h b/src/config_us.h index 0a59308a6..75c3f4539 100644 --- a/src/config_us.h +++ b/src/config_us.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "game.h" // clang-format off diff --git a/src/destroy_entities_from_index.h b/src/destroy_entities_from_index.h index 9b73fc8e9..3d0e4ce69 100644 --- a/src/destroy_entities_from_index.h +++ b/src/destroy_entities_from_index.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef HARD_LINK void DestroyEntitiesFromIndex(s16 index) { Entity* entity = &g_Entities[index]; diff --git a/src/destroy_entity.h b/src/destroy_entity.h index 3f4aa0817..1b9eeb53c 100644 --- a/src/destroy_entity.h +++ b/src/destroy_entity.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef HARD_LINK void DestroyEntity(Entity* entity) { s32 i; diff --git a/src/dra/42398.c b/src/dra/42398.c index 4e58ec134..acf216c2c 100644 --- a/src/dra/42398.c +++ b/src/dra/42398.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "lba.h" diff --git a/src/dra/47BB8.c b/src/dra/47BB8.c index 80d41d749..9fffbbcc4 100644 --- a/src/dra/47BB8.c +++ b/src/dra/47BB8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "lba.h" diff --git a/src/dra/4A538.c b/src/dra/4A538.c index e9633684d..9e891aff6 100644 --- a/src/dra/4A538.c +++ b/src/dra/4A538.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" diff --git a/src/dra/5087C.c b/src/dra/5087C.c index f50e36610..59f76be76 100644 --- a/src/dra/5087C.c +++ b/src/dra/5087C.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "menu.h" diff --git a/src/dra/5D5BC.c b/src/dra/5D5BC.c index 211114d4a..ce95d7b64 100644 --- a/src/dra/5D5BC.c +++ b/src/dra/5D5BC.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/627C4.c b/src/dra/627C4.c index 7e8462671..57a5d0d5b 100644 --- a/src/dra/627C4.c +++ b/src/dra/627C4.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/63ED4.c b/src/dra/63ED4.c index 967e64e55..f7f0f5501 100644 --- a/src/dra/63ED4.c +++ b/src/dra/63ED4.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/692E8.c b/src/dra/692E8.c index 84e7b6a1b..3ea582c34 100644 --- a/src/dra/692E8.c +++ b/src/dra/692E8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "sfx.h" diff --git a/src/dra/6D59C.c b/src/dra/6D59C.c index a2722f874..2fd6915f9 100644 --- a/src/dra/6D59C.c +++ b/src/dra/6D59C.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "sfx.h" diff --git a/src/dra/704D0.c b/src/dra/704D0.c index 98e5987e7..4c9acecd6 100644 --- a/src/dra/704D0.c +++ b/src/dra/704D0.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "sfx.h" diff --git a/src/dra/71830.c b/src/dra/71830.c index 1f9b04259..d8811e30b 100644 --- a/src/dra/71830.c +++ b/src/dra/71830.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/72BB0.c b/src/dra/72BB0.c index bb2398581..2bc32448f 100644 --- a/src/dra/72BB0.c +++ b/src/dra/72BB0.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "sfx.h" diff --git a/src/dra/75F54.c b/src/dra/75F54.c index 73e24658a..dc6ae9cb5 100644 --- a/src/dra/75F54.c +++ b/src/dra/75F54.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/78D0C.c b/src/dra/78D0C.c index 84d346d29..4f6bf8158 100644 --- a/src/dra/78D0C.c +++ b/src/dra/78D0C.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "objects.h" #include "sfx.h" diff --git a/src/dra/7A4D0.c b/src/dra/7A4D0.c index 56971db8b..61c22e38d 100644 --- a/src/dra/7A4D0.c +++ b/src/dra/7A4D0.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/7E4BC.c b/src/dra/7E4BC.c index 3c8d6fb27..d6764d3b7 100644 --- a/src/dra/7E4BC.c +++ b/src/dra/7E4BC.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/843B0.c b/src/dra/843B0.c index b9a4b7f42..47536fe88 100644 --- a/src/dra/843B0.c +++ b/src/dra/843B0.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "objects.h" #include "sfx.h" diff --git a/src/dra/8A0A4.c b/src/dra/8A0A4.c index 015b8476c..57cd16daf 100644 --- a/src/dra/8A0A4.c +++ b/src/dra/8A0A4.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "sfx.h" diff --git a/src/dra/8D3E8.c b/src/dra/8D3E8.c index 7646e3830..603533b48 100644 --- a/src/dra/8D3E8.c +++ b/src/dra/8D3E8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/91EBC.c b/src/dra/91EBC.c index e48d2eb41..95ea12291 100644 --- a/src/dra/91EBC.c +++ b/src/dra/91EBC.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/92F60.c b/src/dra/92F60.c index b89419316..1b449a737 100644 --- a/src/dra/92F60.c +++ b/src/dra/92F60.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/93290.c b/src/dra/93290.c index ed6557a93..ab1b077fd 100644 --- a/src/dra/93290.c +++ b/src/dra/93290.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/93BDC.c b/src/dra/93BDC.c index 7aefc94db..330d191b8 100644 --- a/src/dra/93BDC.c +++ b/src/dra/93BDC.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/94F50.c b/src/dra/94F50.c index ea0b4d007..9a5955a2d 100644 --- a/src/dra/94F50.c +++ b/src/dra/94F50.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/953A0.c b/src/dra/953A0.c index 4bb10c40d..2a3627b7c 100644 --- a/src/dra/953A0.c +++ b/src/dra/953A0.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "objects.h" diff --git a/src/dra/bss.c b/src/dra/bss.c index e7d613c16..54a881c56 100644 --- a/src/dra/bss.c +++ b/src/dra/bss.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include "disk.h" diff --git a/src/dra/cd.c b/src/dra/cd.c index ea7527415..5ea070df8 100644 --- a/src/dra/cd.c +++ b/src/dra/cd.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "lba.h" diff --git a/src/dra/collider.c b/src/dra/collider.c index 0c89f1289..4309455c2 100644 --- a/src/dra/collider.c +++ b/src/dra/collider.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" typedef enum { diff --git a/src/dra/config_jp.c b/src/dra/config_jp.c index 99afe771c..a6c68bc57 100644 --- a/src/dra/config_jp.c +++ b/src/dra/config_jp.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "game.h" // !!! IMPORTANT !!! diff --git a/src/dra/config_us.c b/src/dra/config_us.c index cb8f44ca2..8a95dea63 100644 --- a/src/dra/config_us.c +++ b/src/dra/config_us.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../config_us.h" diff --git a/src/dra/d_10798.c b/src/dra/d_10798.c index 315d17ad5..fa0441926 100644 --- a/src/dra/d_10798.c +++ b/src/dra/d_10798.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" AnimationFrame D_800B0798[] = { diff --git a/src/dra/d_24CEC.c b/src/dra/d_24CEC.c index a21d257b4..c305f2f31 100644 --- a/src/dra/d_24CEC.c +++ b/src/dra/d_24CEC.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include u8 D_800C4CEC[] = { diff --git a/src/dra/d_2F324.c b/src/dra/d_2F324.c index a67b1588b..920cb629d 100644 --- a/src/dra/d_2F324.c +++ b/src/dra/d_2F324.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include typedef struct { diff --git a/src/dra/d_3B0D4.c b/src/dra/d_3B0D4.c index 4db28c4ce..6c0b9b6fc 100644 --- a/src/dra/d_3B0D4.c +++ b/src/dra/d_3B0D4.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" u16 D_800DB0D4[] = { diff --git a/src/dra/d_C910.c b/src/dra/d_C910.c index b59409cb8..8dfed7b9d 100644 --- a/src/dra/d_C910.c +++ b/src/dra/d_C910.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #if defined(VERSION_US) diff --git a/src/dra/d_CD80.c b/src/dra/d_CD80.c index 66e79029b..099523372 100644 --- a/src/dra/d_CD80.c +++ b/src/dra/d_CD80.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" Vram g_Vram = { diff --git a/src/dra/d_CF74.c b/src/dra/d_CF74.c index 330a0e925..d6c07196c 100644 --- a/src/dra/d_CF74.c +++ b/src/dra/d_CF74.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "sfx.h" diff --git a/src/dra/d_DBD4.c b/src/dra/d_DBD4.c index 8de131963..0dfea6390 100644 --- a/src/dra/d_DBD4.c +++ b/src/dra/d_DBD4.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" AnimationFrame D_800ADBD4[] = { diff --git a/src/dra/d_E294.c b/src/dra/d_E294.c index b2bbebdb4..2ecbb5e0f 100644 --- a/src/dra/d_E294.c +++ b/src/dra/d_E294.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" AnimationFrame D_800AE294[] = { diff --git a/src/dra/demo.c b/src/dra/demo.c index d0ada8885..8658a3e16 100644 --- a/src/dra/demo.c +++ b/src/dra/demo.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" extern u8 D_800A243C[32] = { diff --git a/src/dra/dra.h b/src/dra/dra.h index c398f17dd..ea4efd614 100644 --- a/src/dra/dra.h +++ b/src/dra/dra.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef DRA_H #define DRA_H diff --git a/src/dra/dra_bss.h b/src/dra/dra_bss.h index 7f8fa920f..2cffa9f56 100644 --- a/src/dra/dra_bss.h +++ b/src/dra/dra_bss.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" // BSS shared diff --git a/src/dra/dra_header.c b/src/dra/dra_header.c index 3712c9f15..8f99f1e18 100644 --- a/src/dra/dra_header.c +++ b/src/dra/dra_header.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include typedef void (*Entrypoint)(void); diff --git a/src/dra/lang_us.c b/src/dra/lang_us.c index 7bb61ba5e..f6a27a565 100644 --- a/src/dra/lang_us.c +++ b/src/dra/lang_us.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "game.h" diff --git a/src/dra/lba_stage.c b/src/dra/lba_stage.c index c41b49bee..698838b2b 100644 --- a/src/dra/lba_stage.c +++ b/src/dra/lba_stage.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "game.h" // clang-format off diff --git a/src/dra/loading.c b/src/dra/loading.c index 72803c916..9edacd4bd 100644 --- a/src/dra/loading.c +++ b/src/dra/loading.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "sfx.h" diff --git a/src/dra/menu.c b/src/dra/menu.c index 916d28978..3210cdc05 100644 --- a/src/dra/menu.c +++ b/src/dra/menu.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "menu.h" diff --git a/src/dra/menu.h b/src/dra/menu.h index e5aedf686..76aa77d7b 100644 --- a/src/dra/menu.h +++ b/src/dra/menu.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef MENU_H #define MENU_H diff --git a/src/dra/pads.c b/src/dra/pads.c index 4f84c81e9..e1f2773c4 100644 --- a/src/dra/pads.c +++ b/src/dra/pads.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" // BSS diff --git a/src/dra/play.c b/src/dra/play.c index af324ce48..f4faf4d2a 100644 --- a/src/dra/play.c +++ b/src/dra/play.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "sfx.h" diff --git a/src/dra/save_mgr.c b/src/dra/save_mgr.c index 518a2affc..45a0110cf 100644 --- a/src/dra/save_mgr.c +++ b/src/dra/save_mgr.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "dra_bss.h" #include "../save_mgr.h" diff --git a/src/dra/save_mgr_pre.c b/src/dra/save_mgr_pre.c index 7eed17de8..7d4cfc105 100644 --- a/src/dra/save_mgr_pre.c +++ b/src/dra/save_mgr_pre.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dra.h" #include "../save_mgr_pre.h" diff --git a/src/main/main.c b/src/main/main.c index 4681d0e1c..d1b63b4fd 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "common.h" #include "game.h" diff --git a/src/main/psxsdk/libsnd/sstick.c b/src/main/psxsdk/libsnd/sstick.c index 2d36bbe68..21aff8a5b 100644 --- a/src/main/psxsdk/libsnd/sstick.c +++ b/src/main/psxsdk/libsnd/sstick.c @@ -1,4 +1,3 @@ - #include "libsnd_i.h" void SsSetTickMode(long tick_mode) { diff --git a/src/pc/io.c b/src/pc/io.c index b56a4562b..343d3798d 100644 --- a/src/pc/io.c +++ b/src/pc/io.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include "pc.h" diff --git a/src/pc/log.c b/src/pc/log.c index 00bc3cff5..c47ef6868 100644 --- a/src/pc/log.c +++ b/src/pc/log.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/pc/null.c b/src/pc/null.c index 63cbe2b55..276264238 100644 --- a/src/pc/null.c +++ b/src/pc/null.c @@ -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" diff --git a/src/pc/pc.c b/src/pc/pc.c index 46831333d..2179c2985 100644 --- a/src/pc/pc.c +++ b/src/pc/pc.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/pc/pc.h b/src/pc/pc.h index e3d38e52f..fb6259cd7 100644 --- a/src/pc/pc.h +++ b/src/pc/pc.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef PC_H #define PC_H diff --git a/src/pc/pl_arc.c b/src/pc/pl_arc.c index 23e1e0892..12284a769 100644 --- a/src/pc/pl_arc.c +++ b/src/pc/pl_arc.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include "pc.h" diff --git a/src/pc/pl_ric.c b/src/pc/pl_ric.c index 9b3b62584..913e0308d 100644 --- a/src/pc/pl_ric.c +++ b/src/pc/pl_ric.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include extern PlayerOvl RIC_player; diff --git a/src/pc/plat_unix.c b/src/pc/plat_unix.c index ef8c763cf..fe19bae7e 100644 --- a/src/pc/plat_unix.c +++ b/src/pc/plat_unix.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/pc/plat_win.c b/src/pc/plat_win.c index f95e22114..0a8dd8df7 100644 --- a/src/pc/plat_win.c +++ b/src/pc/plat_win.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/pc/psxsdk/cdc.h b/src/pc/psxsdk/cdc.h index 74fc68a1c..e9207b33e 100644 --- a/src/pc/psxsdk/cdc.h +++ b/src/pc/psxsdk/cdc.h @@ -1,5 +1,3 @@ - - #ifndef CDC_H #define CDC_H #include diff --git a/src/pc/render_gl.c b/src/pc/render_gl.c index 5c2ee8bc3..21b0d8d18 100644 --- a/src/pc/render_gl.c +++ b/src/pc/render_gl.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/pc/render_shared.c b/src/pc/render_shared.c index 0738f3a23..5b0b978a4 100644 --- a/src/pc/render_shared.c +++ b/src/pc/render_shared.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/pc/render_soft.c b/src/pc/render_soft.c index 0c7c41edb..000ada403 100644 --- a/src/pc/render_soft.c +++ b/src/pc/render_soft.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/pc/sdl2.c b/src/pc/sdl2.c index c7438e876..5518fbd6c 100644 --- a/src/pc/sdl2.c +++ b/src/pc/sdl2.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/pc/sdl2_macros.c b/src/pc/sdl2_macros.c index 05e204225..5d1a6eb48 100644 --- a/src/pc/sdl2_macros.c +++ b/src/pc/sdl2_macros.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #ifdef _MSC_VER #define SDL_MAIN_HANDLED diff --git a/src/pc/sdl2_macros.h b/src/pc/sdl2_macros.h index 9b335ce51..edc7f48c0 100644 --- a/src/pc/sdl2_macros.h +++ b/src/pc/sdl2_macros.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef MACRO_H #define MACRO_H #include "game.h" diff --git a/src/pc/sdl_defs.h b/src/pc/sdl_defs.h index 5dd288ceb..1f2150f9c 100644 --- a/src/pc/sdl_defs.h +++ b/src/pc/sdl_defs.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef SDL_DEFS_H #define SDL_DEFS_H typedef enum { diff --git a/src/pc/sim_pc.c b/src/pc/sim_pc.c index 9c1785aa6..3f6ccb132 100644 --- a/src/pc/sim_pc.c +++ b/src/pc/sim_pc.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "dra_bss.h" #include diff --git a/src/pc/sotn.c b/src/pc/sotn.c index 797aa63ff..5b2213c8b 100644 --- a/src/pc/sotn.c +++ b/src/pc/sotn.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "pc.h" #include "dra.h" #include "dra_bss.h" diff --git a/src/pc/stages/stage_dummy.c b/src/pc/stages/stage_dummy.c index a196533e4..0b3848732 100644 --- a/src/pc/stages/stage_dummy.c +++ b/src/pc/stages/stage_dummy.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/pc/stages/stage_loader.c b/src/pc/stages/stage_loader.c index b168915b3..a94309bf2 100644 --- a/src/pc/stages/stage_loader.c +++ b/src/pc/stages/stage_loader.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/pc/stages/stage_loader.h b/src/pc/stages/stage_loader.h index 309edb05a..a0bce66cf 100644 --- a/src/pc/stages/stage_loader.h +++ b/src/pc/stages/stage_loader.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef STAGE_LOADER_H #define STAGE_LOADER_H diff --git a/src/pc/stages/stage_sel.c b/src/pc/stages/stage_sel.c index 45fae1b95..8f64f76ee 100644 --- a/src/pc/stages/stage_sel.c +++ b/src/pc/stages/stage_sel.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../../st/sel/sel.h" #include "../pc.h" diff --git a/src/pc/stages/stage_wrp.c b/src/pc/stages/stage_wrp.c index 7740fe2f5..d12c0ae72 100644 --- a/src/pc/stages/stage_wrp.c +++ b/src/pc/stages/stage_wrp.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/pc/str.c b/src/pc/str.c index 515bc18cf..117fa5d0b 100644 --- a/src/pc/str.c +++ b/src/pc/str.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "pc.h" #include #include diff --git a/src/pc/stubs.c b/src/pc/stubs.c index 3e1e0dcb5..3bc8e8eaf 100644 --- a/src/pc/stubs.c +++ b/src/pc/stubs.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "pc.h" #include "dra.h" #include "memcard.h" diff --git a/src/pc/weapon_pc.c b/src/pc/weapon_pc.c index d05ce5aa6..af3ca6694 100644 --- a/src/pc/weapon_pc.c +++ b/src/pc/weapon_pc.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "weapon.h" #include "pc.h" #include diff --git a/src/pc/weapon_pc.h b/src/pc/weapon_pc.h index a53cc11f4..bd7add933 100644 --- a/src/pc/weapon_pc.h +++ b/src/pc/weapon_pc.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef WEAPON_PC_H #define WEAPON_PC_H diff --git a/src/ric/1AC60.c b/src/ric/1AC60.c index 67e65501d..67f87e861 100644 --- a/src/ric/1AC60.c +++ b/src/ric/1AC60.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * File: 1AC60.c * Overlay: RIC diff --git a/src/ric/1CB04.c b/src/ric/1CB04.c index 7d95d2af6..47d417a90 100644 --- a/src/ric/1CB04.c +++ b/src/ric/1CB04.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" #include "player.h" #include "sfx.h" diff --git a/src/ric/1FCD0.c b/src/ric/1FCD0.c index 2a9d4b993..4c0a58a2f 100644 --- a/src/ric/1FCD0.c +++ b/src/ric/1FCD0.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" #include "sfx.h" diff --git a/src/ric/202A8.c b/src/ric/202A8.c index 5acd96e96..cc758d2b0 100644 --- a/src/ric/202A8.c +++ b/src/ric/202A8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" diff --git a/src/ric/20920.c b/src/ric/20920.c index dce001356..40942c1e5 100644 --- a/src/ric/20920.c +++ b/src/ric/20920.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" void RicSetAnimation(AnimationFrame* anim) { diff --git a/src/ric/21250.c b/src/ric/21250.c index 8d0d479d2..71c4bed17 100644 --- a/src/ric/21250.c +++ b/src/ric/21250.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" #include "sfx.h" diff --git a/src/ric/24788.c b/src/ric/24788.c index 628fdf9b1..fb6175be8 100644 --- a/src/ric/24788.c +++ b/src/ric/24788.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" Entity* RicGetFreeEntity(s16 start, s16 end); diff --git a/src/ric/26C84.c b/src/ric/26C84.c index 0fcb1a92d..660d71584 100644 --- a/src/ric/26C84.c +++ b/src/ric/26C84.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" // same as DRA/func_8011BD48 diff --git a/src/ric/2A060.c b/src/ric/2A060.c index 91aaeb795..5a723b80f 100644 --- a/src/ric/2A060.c +++ b/src/ric/2A060.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" #include "sfx.h" diff --git a/src/ric/2C4C4.c b/src/ric/2C4C4.c index 5136348ea..60a9a157a 100644 --- a/src/ric/2C4C4.c +++ b/src/ric/2C4C4.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" #include "sfx.h" diff --git a/src/ric/319C4.c b/src/ric/319C4.c index 742ff3011..b9673b540 100644 --- a/src/ric/319C4.c +++ b/src/ric/319C4.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" #include "sfx.h" diff --git a/src/ric/bss.c b/src/ric/bss.c index 79cf71122..1bab4b88c 100644 --- a/src/ric/bss.c +++ b/src/ric/bss.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include ButtonComboState g_bladeDashButtons; diff --git a/src/ric/d_18568.c b/src/ric/d_18568.c index f33127c12..af5c17d68 100644 --- a/src/ric/d_18568.c +++ b/src/ric/d_18568.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" s16 D_80154568[4] = {0, -8, -16, 0}; diff --git a/src/ric/e_giant_spinning_cross.c b/src/ric/e_giant_spinning_cross.c index ad7290d5e..6ff9d6a23 100644 --- a/src/ric/e_giant_spinning_cross.c +++ b/src/ric/e_giant_spinning_cross.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" static SVECTOR D_80155EFC = {-8, -72, -4, 0}; diff --git a/src/ric/pl_anims.c b/src/ric/pl_anims.c index 3d00754b9..41bcaebf0 100644 --- a/src/ric/pl_anims.c +++ b/src/ric/pl_anims.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" AnimationFrame* D_8015538C[] = {ric_anim_stand, ric_anim_stand}; diff --git a/src/ric/pl_header.c b/src/ric/pl_header.c index 8a3f226b7..7b40b1d5e 100644 --- a/src/ric/pl_header.c +++ b/src/ric/pl_header.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" void RicMain(void); diff --git a/src/ric/ric.h b/src/ric/ric.h index c613950af..ed125f444 100644 --- a/src/ric/ric.h +++ b/src/ric/ric.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include diff --git a/src/ric/spriteparts.c b/src/ric/spriteparts.c index cf68122b1..17bfdf87c 100644 --- a/src/ric/spriteparts.c +++ b/src/ric/spriteparts.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "ric.h" s16 D_80153400[]; diff --git a/src/saturn/alucard.c b/src/saturn/alucard.c index 9be0ab259..bdf87c0fd 100644 --- a/src/saturn/alucard.c +++ b/src/saturn/alucard.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "inc_asm.h" #include "sattypes.h" diff --git a/src/saturn/game.c b/src/saturn/game.c index 58796a9e9..a1b09a9b7 100644 --- a/src/saturn/game.c +++ b/src/saturn/game.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "inc_asm.h" #include "sattypes.h" #include "game.h" diff --git a/src/saturn/game.h b/src/saturn/game.h index bc594141b..cf0d17461 100644 --- a/src/saturn/game.h +++ b/src/saturn/game.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef GAME_H #define GAME_H diff --git a/src/saturn/inc_asm.h b/src/saturn/inc_asm.h index fb121a71b..fef022621 100644 --- a/src/saturn/inc_asm.h +++ b/src/saturn/inc_asm.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef INCLUDE_ASM_H #define INCLUDE_ASM_H diff --git a/src/saturn/lib/mth.h b/src/saturn/lib/mth.h index 4c847e115..59a8caa1e 100644 --- a/src/saturn/lib/mth.h +++ b/src/saturn/lib/mth.h @@ -1,5 +1,3 @@ - - #ifndef MTH_H #define MTH_H diff --git a/src/saturn/lib/sys.h b/src/saturn/lib/sys.h index b325b6909..d11de6589 100644 --- a/src/saturn/lib/sys.h +++ b/src/saturn/lib/sys.h @@ -1,5 +1,3 @@ - - #ifndef SYS_H #define SYS_H diff --git a/src/saturn/sattypes.h b/src/saturn/sattypes.h index baf7d5dab..b91e20d16 100644 --- a/src/saturn/sattypes.h +++ b/src/saturn/sattypes.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef SATURN_TYPES_H #define SATURN_TYPES_H diff --git a/src/saturn/stage_02.c b/src/saturn/stage_02.c index 3c508b805..dfa958427 100644 --- a/src/saturn/stage_02.c +++ b/src/saturn/stage_02.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "stage_02.h" #include "inc_asm.h" #include "sattypes.h" diff --git a/src/saturn/stage_02.h b/src/saturn/stage_02.h index 3dd88ade2..43ae4a655 100644 --- a/src/saturn/stage_02.h +++ b/src/saturn/stage_02.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef STAGE_02_H #define STAGE_02_H diff --git a/src/saturn/t_bat.c b/src/saturn/t_bat.c index c2f018b28..a1e620937 100644 --- a/src/saturn/t_bat.c +++ b/src/saturn/t_bat.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "inc_asm.h" #include "sattypes.h" diff --git a/src/saturn/warp.c b/src/saturn/warp.c index aec70c0d3..7e90b19d4 100644 --- a/src/saturn/warp.c +++ b/src/saturn/warp.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "inc_asm.h" #include "sattypes.h" diff --git a/src/saturn/zero.c b/src/saturn/zero.c index e12e30515..7f98b05ee 100644 --- a/src/saturn/zero.c +++ b/src/saturn/zero.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "zero.h" #include "inc_asm.h" #include "sattypes.h" diff --git a/src/saturn/zero.h b/src/saturn/zero.h index 5ca3ebe62..44ced4fab 100644 --- a/src/saturn/zero.h +++ b/src/saturn/zero.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef ZERO_BIN_H #define ZERO_BIN_H #include "sattypes.h" diff --git a/src/save_mgr.h b/src/save_mgr.h index 7d3838730..0c26275c0 100644 --- a/src/save_mgr.h +++ b/src/save_mgr.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "memcard.h" void SetupEvents(void) { diff --git a/src/save_mgr_pre.h b/src/save_mgr_pre.h index 5ef4bfa5a..df611b33e 100644 --- a/src/save_mgr_pre.h +++ b/src/save_mgr_pre.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "memcard.h" s32 g_MemcardPortMask[] = {-2, -3}; diff --git a/src/servant/tt_000/10E8.c b/src/servant/tt_000/10E8.c index 7c53b4c55..6dfd349b4 100644 --- a/src/servant/tt_000/10E8.c +++ b/src/servant/tt_000/10E8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/servant/tt_000/448.c b/src/servant/tt_000/448.c index 04e140c3d..cd0b309ef 100644 --- a/src/servant/tt_000/448.c +++ b/src/servant/tt_000/448.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "common.h" u16 D_80170448[] = { diff --git a/src/servant/tt_000/45E4.c b/src/servant/tt_000/45E4.c index b48c39b88..d6086a510 100644 --- a/src/servant/tt_000/45E4.c +++ b/src/servant/tt_000/45E4.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include #include diff --git a/src/servant/tt_000/4A8.c b/src/servant/tt_000/4A8.c index 6b3c27b1e..652d9754a 100644 --- a/src/servant/tt_000/4A8.c +++ b/src/servant/tt_000/4A8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include AnimationFrame D_801704A8[] = { diff --git a/src/servant/tt_000/608.c b/src/servant/tt_000/608.c index 1234cbf5d..db492bbdd 100644 --- a/src/servant/tt_000/608.c +++ b/src/servant/tt_000/608.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "servant.h" Sprite D_80170608[] = { diff --git a/src/servant/tt_000/spriteparts.c b/src/servant/tt_000/spriteparts.c index b98a9ec41..f02572fd5 100644 --- a/src/servant/tt_000/spriteparts.c +++ b/src/servant/tt_000/spriteparts.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "servant.h" int D_801700C8[]; diff --git a/src/set_prim_rect.h b/src/set_prim_rect.h index 58c69e0c1..b0955011e 100644 --- a/src/set_prim_rect.h +++ b/src/set_prim_rect.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void SetPrimRect(Primitive* poly, s32 x, s32 y, s32 width, s32 height) { poly->x0 = x; poly->y0 = y; diff --git a/src/st/adjust_value_within_threshold.h b/src/st/adjust_value_within_threshold.h index c5ec2e2c5..1d43b1920 100644 --- a/src/st/adjust_value_within_threshold.h +++ b/src/st/adjust_value_within_threshold.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later u8 AdjustValueWithinThreshold(u8 threshold, u8 currentValue, u8 targetValue) { u8 absoluteDifference; s8 relativeDifference = targetValue - currentValue; diff --git a/src/st/alloc_entity.h b/src/st/alloc_entity.h index 2b5a1817d..1c2415a40 100644 --- a/src/st/alloc_entity.h +++ b/src/st/alloc_entity.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later Entity* AllocEntity(Entity* start, Entity* end) { Entity* current = start; diff --git a/src/st/animate_entity.h b/src/st/animate_entity.h index 63654c9ac..836031029 100644 --- a/src/st/animate_entity.h +++ b/src/st/animate_entity.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later u8 AnimateEntity(u8 frames[], Entity* entity) { u16 flag; u16 currentFrameIndex; diff --git a/src/st/blink_item.h b/src/st/blink_item.h index 82ea7a123..5c018f64f 100644 --- a/src/st/blink_item.h +++ b/src/st/blink_item.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "game.h" void BlinkItem(Entity* self, u16 renderFlags) { diff --git a/src/st/blit_char.h b/src/st/blit_char.h index 5387bc7a6..f370e19ef 100644 --- a/src/st/blit_char.h +++ b/src/st/blit_char.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // // Section Sizes: // diff --git a/src/st/cen/14264.c b/src/st/cen/14264.c index 9e47d5ecc..ce7b657ac 100644 --- a/src/st/cen/14264.c +++ b/src/st/cen/14264.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "cen.h" #include "sfx.h" diff --git a/src/st/cen/18084.c b/src/st/cen/18084.c index 1cc476212..9b06d4f3a 100644 --- a/src/st/cen/18084.c +++ b/src/st/cen/18084.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "cen.h" #include "../check_coll_offsets.h" diff --git a/src/st/cen/1B274.c b/src/st/cen/1B274.c index 547edc2ec..66177a3b0 100644 --- a/src/st/cen/1B274.c +++ b/src/st/cen/1B274.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "cen.h" #include "../entity_soul_steal_orb.h" diff --git a/src/st/cen/D4F0.c b/src/st/cen/D4F0.c index 0daffe673..e63affce9 100644 --- a/src/st/cen/D4F0.c +++ b/src/st/cen/D4F0.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "types.h" const u8 D_8018D4F0[8] = { diff --git a/src/st/cen/D600.c b/src/st/cen/D600.c index c776d2108..94f84323a 100644 --- a/src/st/cen/D600.c +++ b/src/st/cen/D600.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * File: D600.c * Overlay: CEN diff --git a/src/st/cen/F890.c b/src/st/cen/F890.c index b7324173e..60eb9ed3b 100644 --- a/src/st/cen/F890.c +++ b/src/st/cen/F890.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "cen.h" #include "game.h" #include "sfx.h" diff --git a/src/st/cen/blit_char.c b/src/st/cen/blit_char.c index dcd77c4c0..c30a4b304 100644 --- a/src/st/cen/blit_char.c +++ b/src/st/cen/blit_char.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../blit_char.h" diff --git a/src/st/cen/cen.h b/src/st/cen/cen.h index 7537bbce4..a4db6a829 100644 --- a/src/st/cen/cen.h +++ b/src/st/cen/cen.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef CEN_H #define CEN_H diff --git a/src/st/cen/collision.c b/src/st/cen/collision.c index 075265617..ac4b65086 100644 --- a/src/st/cen/collision.c +++ b/src/st/cen/collision.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../collision.h" diff --git a/src/st/cen/create_entity.c b/src/st/cen/create_entity.c index 02907d3a0..d38bce00f 100644 --- a/src/st/cen/create_entity.c +++ b/src/st/cen/create_entity.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../create_entity.h" diff --git a/src/st/cen/e_collect.c b/src/st/cen/e_collect.c index f819390db..950b85640 100644 --- a/src/st/cen/e_collect.c +++ b/src/st/cen/e_collect.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_collect.h" diff --git a/src/st/cen/e_red_door.c b/src/st/cen/e_red_door.c index cd9dc7a56..10dc8ebb8 100644 --- a/src/st/cen/e_red_door.c +++ b/src/st/cen/e_red_door.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_red_door.h" diff --git a/src/st/cen/entity.c b/src/st/cen/entity.c index 69b97ab8d..5b4c1b93a 100644 --- a/src/st/cen/entity.c +++ b/src/st/cen/entity.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "game.h" #include "stage.h" diff --git a/src/st/cen/entity_heart_drop.c b/src/st/cen/entity_heart_drop.c index a7cd9b112..0fb2b505d 100644 --- a/src/st/cen/entity_heart_drop.c +++ b/src/st/cen/entity_heart_drop.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "cen.h" // Bizarre variable - u16 here, but u8 in EntityHolyGlassesCutscene extern u16 D_801805D8[]; diff --git a/src/st/cen/entity_message_box.c b/src/st/cen/entity_message_box.c index 0cbd6e392..6adf0c0e5 100644 --- a/src/st/cen/entity_message_box.c +++ b/src/st/cen/entity_message_box.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "cen.h" #include "../entity_message_box.h" diff --git a/src/st/cen/entity_relic_orb.c b/src/st/cen/entity_relic_orb.c index 16064a364..42934e48b 100644 --- a/src/st/cen/entity_relic_orb.c +++ b/src/st/cen/entity_relic_orb.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "cen.h" #include "../entity_relic_orb.h" diff --git a/src/st/cen/header.c b/src/st/cen/header.c index 9d1393799..c99cbcfc8 100644 --- a/src/st/cen/header.c +++ b/src/st/cen/header.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "cen.h" extern RoomHeader OVL_EXPORT(rooms)[]; diff --git a/src/st/cen/holyglassescutscene.c b/src/st/cen/holyglassescutscene.c index d40e115b6..a0911089f 100644 --- a/src/st/cen/holyglassescutscene.c +++ b/src/st/cen/holyglassescutscene.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "cen.h" #include "game.h" diff --git a/src/st/cen/prim_helpers.c b/src/st/cen/prim_helpers.c index 96d47f7df..54fc9a0c6 100644 --- a/src/st/cen/prim_helpers.c +++ b/src/st/cen/prim_helpers.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../prim_helpers.h" diff --git a/src/st/cen/random.c b/src/st/cen/random.c index 04cd68787..179dd6ac4 100644 --- a/src/st/cen/random.c +++ b/src/st/cen/random.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../random.h" diff --git a/src/st/cen/tile_data.c b/src/st/cen/tile_data.c index 18f6aaa4b..a1fbade93 100644 --- a/src/st/cen/tile_data.c +++ b/src/st/cen/tile_data.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "tilemap_069EC.h" diff --git a/src/st/cen/update.c b/src/st/cen/update.c index 9dbfc8351..96611e15a 100644 --- a/src/st/cen/update.c +++ b/src/st/cen/update.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include // palette diff --git a/src/st/cen/update_stage_entities.c b/src/st/cen/update_stage_entities.c index 8886987cb..2f06eb5ef 100644 --- a/src/st/cen/update_stage_entities.c +++ b/src/st/cen/update_stage_entities.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../update_stage_entities.h" diff --git a/src/st/check_coll_offsets.h b/src/st/check_coll_offsets.h index a518ba5f2..a0d684615 100644 --- a/src/st/check_coll_offsets.h +++ b/src/st/check_coll_offsets.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // arg0 is a pointer to X and Y offsets from the current entity. // iterates through those locations, running CheckCollision on // each location, returning a set of bit flags indicating which diff --git a/src/st/check_field_collision.h b/src/st/check_field_collision.h index 059f99dc7..15dd41993 100644 --- a/src/st/check_field_collision.h +++ b/src/st/check_field_collision.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void CheckFieldCollision(s16* hitSensors, s16 sensorCount) { Collider collider; s32 velocityX; diff --git a/src/st/clut_lerp.h b/src/st/clut_lerp.h index 3972564e7..bd5399486 100644 --- a/src/st/clut_lerp.h +++ b/src/st/clut_lerp.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void ClutLerp(RECT* rect, u16 palIdxA, u16 palIdxB, s32 steps, u16 offset) { u16 buf[COLORS_PER_PAL]; RECT bufRect; diff --git a/src/st/collect_gold.h b/src/st/collect_gold.h index 82f92e319..fabe255f4 100644 --- a/src/st/collect_gold.h +++ b/src/st/collect_gold.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later extern u32 c_GoldPrizes[]; extern const char* g_goldCollectTexts[]; diff --git a/src/st/collect_heart.h b/src/st/collect_heart.h index aca336c81..5b28771c2 100644 --- a/src/st/collect_heart.h +++ b/src/st/collect_heart.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "sfx.h" // This function is messy, maybe there's a better way. diff --git a/src/st/collect_heart_vessel.h b/src/st/collect_heart_vessel.h index 3adf3c43d..435564f5a 100644 --- a/src/st/collect_heart_vessel.h +++ b/src/st/collect_heart_vessel.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "sfx.h" void CollectHeartVessel(void) { diff --git a/src/st/collision.h b/src/st/collision.h index 9fd4d660e..bd4756382 100644 --- a/src/st/collision.h +++ b/src/st/collision.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "sfx.h" diff --git a/src/st/create_entities_horizontal.h b/src/st/create_entities_horizontal.h index b912b0f8e..4c33ffe3b 100644 --- a/src/st/create_entities_horizontal.h +++ b/src/st/create_entities_horizontal.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "create_entities_right.h" /* diff --git a/src/st/create_entities_right.h b/src/st/create_entities_right.h index c7d3317da..5dadead71 100644 --- a/src/st/create_entities_right.h +++ b/src/st/create_entities_right.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Creates entities between the previous horizontal position and * the passed in x position toward the right. diff --git a/src/st/create_entities_vertical.h b/src/st/create_entities_vertical.h index 9746d9765..f429b3b96 100644 --- a/src/st/create_entities_vertical.h +++ b/src/st/create_entities_vertical.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Creates entities between the previous vertical position and * the passed in y position going up. diff --git a/src/st/create_entity.h b/src/st/create_entity.h index 1045d04ee..4c933f3af 100644 --- a/src/st/create_entity.h +++ b/src/st/create_entity.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // // Section Sizes: // diff --git a/src/st/create_entity_from_entity.h b/src/st/create_entity_from_entity.h index 4a63d1e8c..7d7c2eec0 100644 --- a/src/st/create_entity_from_entity.h +++ b/src/st/create_entity_from_entity.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void CreateEntityFromCurrentEntity(u16 entityId, Entity* entity) { DestroyEntity(entity); entity->entityId = entityId; diff --git a/src/st/create_entity_from_layout.h b/src/st/create_entity_from_layout.h index 92d381d81..3f87eef47 100644 --- a/src/st/create_entity_from_layout.h +++ b/src/st/create_entity_from_layout.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void CreateEntityFromLayout(Entity* entity, LayoutEntity* initDesc) { Tilemap* tilemap; diff --git a/src/st/create_entity_in_range.h b/src/st/create_entity_in_range.h index 95701967d..941c14092 100644 --- a/src/st/create_entity_in_range.h +++ b/src/st/create_entity_in_range.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void CreateEntityWhenInVerticalRange(LayoutEntity* obj) { s16 yClose; s16 yFar; diff --git a/src/st/dre/11A64.c b/src/st/dre/11A64.c index 2408bad28..d1275efb7 100644 --- a/src/st/dre/11A64.c +++ b/src/st/dre/11A64.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * File: 11A64.c * Overlay: DRE diff --git a/src/st/dre/13E18.c b/src/st/dre/13E18.c index a47e7d7d3..d9e4a5177 100644 --- a/src/st/dre/13E18.c +++ b/src/st/dre/13E18.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dre.h" #include "sfx.h" diff --git a/src/st/dre/161DC.c b/src/st/dre/161DC.c index 7c9d65a7c..90c1216dc 100644 --- a/src/st/dre/161DC.c +++ b/src/st/dre/161DC.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dre.h" void func_801961DC(s16 arg0) { diff --git a/src/st/dre/1697C.c b/src/st/dre/1697C.c index 17c1c1257..adce481fa 100644 --- a/src/st/dre/1697C.c +++ b/src/st/dre/1697C.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dre.h" #include "sfx.h" diff --git a/src/st/dre/1A3A8.c b/src/st/dre/1A3A8.c index a75c0a7e6..5c6b22fc9 100644 --- a/src/st/dre/1A3A8.c +++ b/src/st/dre/1A3A8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dre.h" #include "sfx.h" diff --git a/src/st/dre/1E1C8.c b/src/st/dre/1E1C8.c index 3dc84ab97..c1f6a6423 100644 --- a/src/st/dre/1E1C8.c +++ b/src/st/dre/1E1C8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dre.h" #include "../check_coll_offsets.h" diff --git a/src/st/dre/22848.c b/src/st/dre/22848.c index feba9f7bf..2a0b1c855 100644 --- a/src/st/dre/22848.c +++ b/src/st/dre/22848.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dre.h" extern SVECTOR* D_80181544[][3]; diff --git a/src/st/dre/blit_char.c b/src/st/dre/blit_char.c index dcd77c4c0..c30a4b304 100644 --- a/src/st/dre/blit_char.c +++ b/src/st/dre/blit_char.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../blit_char.h" diff --git a/src/st/dre/bss.c b/src/st/dre/bss.c index 9abaf8dfd..a046132ae 100644 --- a/src/st/dre/bss.c +++ b/src/st/dre/bss.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include STATIC_PAD_BSS(3072); diff --git a/src/st/dre/collision.c b/src/st/dre/collision.c index 075265617..ac4b65086 100644 --- a/src/st/dre/collision.c +++ b/src/st/dre/collision.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../collision.h" diff --git a/src/st/dre/create_entity.c b/src/st/dre/create_entity.c index 2426cf5db..38f00025f 100644 --- a/src/st/dre/create_entity.c +++ b/src/st/dre/create_entity.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include u32 D_801A3264[24]; diff --git a/src/st/dre/dre.h b/src/st/dre/dre.h index ebea501d5..a8fa5de43 100644 --- a/src/st/dre/dre.h +++ b/src/st/dre/dre.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "stage.h" #define STAGE_DRE_H diff --git a/src/st/dre/e_collect.c b/src/st/dre/e_collect.c index f819390db..950b85640 100644 --- a/src/st/dre/e_collect.c +++ b/src/st/dre/e_collect.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_collect.h" diff --git a/src/st/dre/e_red_door.c b/src/st/dre/e_red_door.c index cd9dc7a56..10dc8ebb8 100644 --- a/src/st/dre/e_red_door.c +++ b/src/st/dre/e_red_door.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_red_door.h" diff --git a/src/st/dre/entity_heart_drop.c b/src/st/dre/entity_heart_drop.c index 2bb7e6908..07984f42a 100644 --- a/src/st/dre/entity_heart_drop.c +++ b/src/st/dre/entity_heart_drop.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dre.h" extern u16 D_80180660[]; diff --git a/src/st/dre/entity_message_box.c b/src/st/dre/entity_message_box.c index 71eb4118a..53f6814c6 100644 --- a/src/st/dre/entity_message_box.c +++ b/src/st/dre/entity_message_box.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dre.h" #include "../entity_message_box.h" diff --git a/src/st/dre/entity_relic_orb.c b/src/st/dre/entity_relic_orb.c index 28d0f0b1b..69eb887ce 100644 --- a/src/st/dre/entity_relic_orb.c +++ b/src/st/dre/entity_relic_orb.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dre.h" #include "../entity_relic_orb.h" diff --git a/src/st/dre/header.c b/src/st/dre/header.c index 54725274f..01269eae0 100644 --- a/src/st/dre/header.c +++ b/src/st/dre/header.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dre.h" extern RoomHeader OVL_EXPORT(rooms)[]; diff --git a/src/st/dre/prim_helpers.c b/src/st/dre/prim_helpers.c index 96d47f7df..54fc9a0c6 100644 --- a/src/st/dre/prim_helpers.c +++ b/src/st/dre/prim_helpers.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../prim_helpers.h" diff --git a/src/st/dre/random.c b/src/st/dre/random.c index 04cd68787..179dd6ac4 100644 --- a/src/st/dre/random.c +++ b/src/st/dre/random.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../random.h" diff --git a/src/st/dre/succubus.c b/src/st/dre/succubus.c index 490a4da3e..880c8db6e 100644 --- a/src/st/dre/succubus.c +++ b/src/st/dre/succubus.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: DRE * Enemy: Succubus Boss diff --git a/src/st/dre/succubuscutscene.c b/src/st/dre/succubuscutscene.c index cc0afbccf..6012b35a9 100644 --- a/src/st/dre/succubuscutscene.c +++ b/src/st/dre/succubuscutscene.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "dre.h" void func_80194774(void) { diff --git a/src/st/dre/tile_data.c b/src/st/dre/tile_data.c index 1408b6c0c..70aa3af22 100644 --- a/src/st/dre/tile_data.c +++ b/src/st/dre/tile_data.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "tilemap_0B548.h" diff --git a/src/st/dre/update.c b/src/st/dre/update.c index e447681b8..83ea91c17 100644 --- a/src/st/dre/update.c +++ b/src/st/dre/update.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../update.h" diff --git a/src/st/dre/update_stage_entities.c b/src/st/dre/update_stage_entities.c index 8886987cb..2f06eb5ef 100644 --- a/src/st/dre/update_stage_entities.c +++ b/src/st/dre/update_stage_entities.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../update_stage_entities.h" diff --git a/src/st/e_bone_scimitar.h b/src/st/e_bone_scimitar.h index 163f931f6..512caf1dd 100644 --- a/src/st/e_bone_scimitar.h +++ b/src/st/e_bone_scimitar.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "sfx.h" typedef enum { diff --git a/src/st/e_breakable.h b/src/st/e_breakable.h index f687ce03b..b7c0883d6 100644 --- a/src/st/e_breakable.h +++ b/src/st/e_breakable.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include diff --git a/src/st/e_collect.h b/src/st/e_collect.h index 3e4c9e8fb..1024c87f3 100644 --- a/src/st/e_collect.h +++ b/src/st/e_collect.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // // Section Sizes: // diff --git a/src/st/e_merman.h b/src/st/e_merman.h index ab850cea7..e371b8db8 100644 --- a/src/st/e_merman.h +++ b/src/st/e_merman.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Entity: Merman * Stages: NO3, NP3 diff --git a/src/st/e_merman2.h b/src/st/e_merman2.h index aa8da434f..905abc79a 100644 --- a/src/st/e_merman2.h +++ b/src/st/e_merman2.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Entity: Merman2 * Stages: NO3, NP3 diff --git a/src/st/e_misc.h b/src/st/e_misc.h index b03025c4b..d6e36b004 100644 --- a/src/st/e_misc.h +++ b/src/st/e_misc.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #ifndef CASTLE_FLAG_BANK diff --git a/src/st/e_particles.h b/src/st/e_particles.h index ebd51b636..ba05b0458 100644 --- a/src/st/e_particles.h +++ b/src/st/e_particles.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #if defined(VERSION_HD) diff --git a/src/st/e_red_door.h b/src/st/e_red_door.h index 18d6e7c44..936aa498d 100644 --- a/src/st/e_red_door.h +++ b/src/st/e_red_door.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "sfx.h" diff --git a/src/st/e_room_fg.h b/src/st/e_room_fg.h index 1de0517de..c3a19e902 100644 --- a/src/st/e_room_fg.h +++ b/src/st/e_room_fg.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #if !defined(VERSION_PSP) diff --git a/src/st/e_stage_name.h b/src/st/e_stage_name.h index b0f8e62c2..f8dba3ba5 100644 --- a/src/st/e_stage_name.h +++ b/src/st/e_stage_name.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "stage.h" #ifndef CASTLE_FLAG_BANK diff --git a/src/st/entity_big_red_fireball.h b/src/st/entity_big_red_fireball.h index ce4900d54..83591bb2c 100644 --- a/src/st/entity_big_red_fireball.h +++ b/src/st/entity_big_red_fireball.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Not used in any current overlays. Seems to resemble Gaibon's big fireball, // but is not actually called in NZ0. Will need to check future overlays for // any actual uses. diff --git a/src/st/entity_damage_display.h b/src/st/entity_damage_display.h index db0fc4798..82607c8a4 100644 --- a/src/st/entity_damage_display.h +++ b/src/st/entity_damage_display.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later extern u16 g_eDamageDisplayInit[]; extern u16 g_eDamageDisplayClut[]; diff --git a/src/st/entity_dummy.h b/src/st/entity_dummy.h index 906a84321..488b6a69f 100644 --- a/src/st/entity_dummy.h +++ b/src/st/entity_dummy.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void EntityDummy(Entity* arg0) { if (!arg0->step) { arg0->step++; diff --git a/src/st/entity_enemy_blood.h b/src/st/entity_enemy_blood.h index 7b88b3f1e..bebbedea6 100644 --- a/src/st/entity_enemy_blood.h +++ b/src/st/entity_enemy_blood.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void EntityEnemyBlood(Entity* self) { const int NParticles = 12; FakePrim* prim; diff --git a/src/st/entity_explosion.h b/src/st/entity_explosion.h index 7c41e6ca9..9fc0d3e8b 100644 --- a/src/st/entity_explosion.h +++ b/src/st/entity_explosion.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later extern u16 g_InitializeEntityData0[]; extern s32 g_ExplosionYVelocities[]; extern u8* g_ExplosionAnimations[]; diff --git a/src/st/entity_explosion_spawn.h b/src/st/entity_explosion_spawn.h index 08772fe64..796af4333 100644 --- a/src/st/entity_explosion_spawn.h +++ b/src/st/entity_explosion_spawn.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void EntityExplosionSpawn(u16 arg0, u16 arg1) { Entity* entity; diff --git a/src/st/entity_intense_explosion.h b/src/st/entity_intense_explosion.h index 9d6d26820..8c88c46fd 100644 --- a/src/st/entity_intense_explosion.h +++ b/src/st/entity_intense_explosion.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void EntityIntenseExplosion(Entity* self) { if (!self->step) { InitializeEntity(g_InitializeEntityData0); diff --git a/src/st/entity_message_box.h b/src/st/entity_message_box.h index d4b780590..c3f838d09 100644 --- a/src/st/entity_message_box.h +++ b/src/st/entity_message_box.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // params: message box duration // ext.messageBox.label: box size and text to render diff --git a/src/st/entity_olrox_drool.h b/src/st/entity_olrox_drool.h index 7c2f27c60..1249a090a 100644 --- a/src/st/entity_olrox_drool.h +++ b/src/st/entity_olrox_drool.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Purpose is not 100% clear. Creates a falling blue droplet that sizzles after // hitting the ground. In existing overlays, this entity is not used. But looks // like Olrox's drool, so using that until we find any other uses. diff --git a/src/st/entity_relic_orb.h b/src/st/entity_relic_orb.h index 97b111ba4..15c6dbc4e 100644 --- a/src/st/entity_relic_orb.h +++ b/src/st/entity_relic_orb.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "stage.h" const char* g_RelicOrbTexts[] = { diff --git a/src/st/entity_soul_steal_orb.h b/src/st/entity_soul_steal_orb.h index c096ef574..82c06d342 100644 --- a/src/st/entity_soul_steal_orb.h +++ b/src/st/entity_soul_steal_orb.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // The white flying orbs of energy that Alucard summons as part of the Soul // Steal spell void EntitySoulStealOrb(Entity* self) { diff --git a/src/st/entity_unkId13.h b/src/st/entity_unkId13.h index 3011058d5..5b3d78e6c 100644 --- a/src/st/entity_unkId13.h +++ b/src/st/entity_unkId13.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later extern u16 g_InitDataEnt13[]; void EntityUnkId13(Entity* self) { diff --git a/src/st/entity_unkId14.h b/src/st/entity_unkId14.h index 24c498925..d3e4be4a6 100644 --- a/src/st/entity_unkId14.h +++ b/src/st/entity_unkId14.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later extern s32 unk14_yVel[]; extern u8 unk14_startFrame[]; extern u16 unk14_lifetime[]; diff --git a/src/st/entity_unkId14_spawner.h b/src/st/entity_unkId14_spawner.h index 0efb16393..a9b7a736b 100644 --- a/src/st/entity_unkId14_spawner.h +++ b/src/st/entity_unkId14_spawner.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later extern u16 g_eUnk14SpawnRots[]; void EntityUnkId14Spawner( diff --git a/src/st/entity_unkId15.h b/src/st/entity_unkId15.h index fae50a703..12a75974d 100644 --- a/src/st/entity_unkId15.h +++ b/src/st/entity_unkId15.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later extern s16 unk15_rot[]; extern s32 unk15_yVel[]; diff --git a/src/st/entity_unkId15_spawner.h b/src/st/entity_unkId15_spawner.h index 7825e8fc8..edb400ee4 100644 --- a/src/st/entity_unkId15_spawner.h +++ b/src/st/entity_unkId15_spawner.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void EntityUnkId15Spawner( Entity* self, u8 count, u8 params, s32 x, s32 y, u8 arg5, s16 xGap) { diff --git a/src/st/entity_unk_id12.h b/src/st/entity_unk_id12.h index 5254104a9..8d254cb66 100644 --- a/src/st/entity_unk_id12.h +++ b/src/st/entity_unk_id12.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void EntityUnkId12(Entity* entity) { u16 var_s0; u16 params; diff --git a/src/st/fall_entity.h b/src/st/fall_entity.h index 8645c15b1..47b5f0bab 100644 --- a/src/st/fall_entity.h +++ b/src/st/fall_entity.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void FallEntity(void) { if (g_CurrentEntity->velocityY < FALL_TERMINAL_VELOCITY) { g_CurrentEntity->velocityY += FALL_GRAVITY; diff --git a/src/st/find_entity_horizontal.h b/src/st/find_entity_horizontal.h index beaaa013c..dce7a598b 100644 --- a/src/st/find_entity_horizontal.h +++ b/src/st/find_entity_horizontal.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Scans `g_LayoutObjVertical` looking for the next element with * an x position to the right of the provided argument or the end diff --git a/src/st/find_entity_vertical.h b/src/st/find_entity_vertical.h index 71efff27b..c32e3df41 100644 --- a/src/st/find_entity_vertical.h +++ b/src/st/find_entity_vertical.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Scans `g_LayoutObjVertical` looking for the next element with * a y position above the provided argument or the end of the list. diff --git a/src/st/get_angle_between_entities.h b/src/st/get_angle_between_entities.h index a272d35e1..92b0738d8 100644 --- a/src/st/get_angle_between_entities.h +++ b/src/st/get_angle_between_entities.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later u16 GetAngleBetweenEntities(Entity* a, Entity* b) { s32 diffX = b->posX.i.hi - a->posX.i.hi; s32 diffY = b->posY.i.hi - a->posY.i.hi; diff --git a/src/st/get_angle_between_entities_shifted.h b/src/st/get_angle_between_entities_shifted.h index 633d14c4e..a1bf4f363 100644 --- a/src/st/get_angle_between_entities_shifted.h +++ b/src/st/get_angle_between_entities_shifted.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later u8 GetAngleBetweenEntitiesShifted(Entity* a, Entity* b) { s32 diffX = (u16)b->posX.i.hi - (u16)a->posX.i.hi; s32 diffY = (u16)b->posY.i.hi - (u16)a->posY.i.hi; diff --git a/src/st/get_angle_point_to_entity.h b/src/st/get_angle_point_to_entity.h index 36452bcce..f2d14a5cf 100644 --- a/src/st/get_angle_point_to_entity.h +++ b/src/st/get_angle_point_to_entity.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later u16 GetAnglePointToEntity(s32 x, s32 y) { s16 diffX = x - (u16)g_CurrentEntity->posX.i.hi; s16 diffY = y - (u16)g_CurrentEntity->posY.i.hi; diff --git a/src/st/get_angle_point_to_entity_shifted.h b/src/st/get_angle_point_to_entity_shifted.h index 33096436c..933aaccf8 100644 --- a/src/st/get_angle_point_to_entity_shifted.h +++ b/src/st/get_angle_point_to_entity_shifted.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later u8 GetAnglePointToEntityShifted(s32 x, s32 y) { s32 diffX = x - (u16)g_CurrentEntity->posX.i.hi; s32 diffY = y - (u16)g_CurrentEntity->posY.i.hi; diff --git a/src/st/get_distance_to_player_x.h b/src/st/get_distance_to_player_x.h index 28ef176ae..45993e18c 100644 --- a/src/st/get_distance_to_player_x.h +++ b/src/st/get_distance_to_player_x.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Absolute distance from g_CurrentEntity to the player in the X Axis s32 GetDistanceToPlayerX(void) { s16 xDistance = g_CurrentEntity->posX.i.hi - PLAYER.posX.i.hi; diff --git a/src/st/get_distance_to_player_y.h b/src/st/get_distance_to_player_y.h index c139576e5..eceb3e974 100644 --- a/src/st/get_distance_to_player_y.h +++ b/src/st/get_distance_to_player_y.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Absolute distance from g_CurrentEntity to the player in the Y Axis s32 GetDistanceToPlayerY(void) { s32 yDistance = g_CurrentEntity->posY.i.hi - PLAYER.posY.i.hi; diff --git a/src/st/get_normalized_angle.h b/src/st/get_normalized_angle.h index f0433b284..26b835e26 100644 --- a/src/st/get_normalized_angle.h +++ b/src/st/get_normalized_angle.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later u16 GetNormalizedAngle(u16 arg0, u16 arg1, u16 arg2) { u16 temp_a2; u16 var_v0; diff --git a/src/st/get_player_collision_with.h b/src/st/get_player_collision_with.h index 2add3d1b2..25f50c65d 100644 --- a/src/st/get_player_collision_with.h +++ b/src/st/get_player_collision_with.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // This function checks if the player collides with the specified entity // and from which direction. // w and h holds the collider size of the entity diff --git a/src/st/get_side_to_player.h b/src/st/get_side_to_player.h index bb830862b..ea1e8fe4d 100644 --- a/src/st/get_side_to_player.h +++ b/src/st/get_side_to_player.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /** * Returns the player's side position relative to g_CurrentEntity * 0 = Player is on the right side diff --git a/src/st/get_sine.h b/src/st/get_sine.h index 5feac8add..04cebed11 100644 --- a/src/st/get_sine.h +++ b/src/st/get_sine.h @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later s16 GetSine(u8 arg0) { return g_SineTable[arg0]; } diff --git a/src/st/get_sine_scaled.h b/src/st/get_sine_scaled.h index 8f21a4e8e..0e401a1c3 100644 --- a/src/st/get_sine_scaled.h +++ b/src/st/get_sine_scaled.h @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later s32 GetSineScaled(u8 arg0, s16 arg1) { return g_SineTable[arg0] * arg1; } diff --git a/src/st/init_entity.h b/src/st/init_entity.h index 6632fabd8..98a1cc86a 100644 --- a/src/st/init_entity.h +++ b/src/st/init_entity.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void InitializeEntity(u16 arg0[]) { u16 enemyId; EnemyDef* enemyDef; diff --git a/src/st/init_room_entities.h b/src/st/init_room_entities.h index b1c7b89cf..a37b13b48 100644 --- a/src/st/init_room_entities.h +++ b/src/st/init_room_entities.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Sets up layout arrays and initializes stage state to * initial values. diff --git a/src/st/initialize_unk_entity.h b/src/st/initialize_unk_entity.h index 8f6a368f3..9479a5b0b 100644 --- a/src/st/initialize_unk_entity.h +++ b/src/st/initialize_unk_entity.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later extern u8 g_UnkEntityAnimData[]; void InitializeUnkEntity(Entity* self) { if (!self->step) { diff --git a/src/st/mad/11D3C.c b/src/st/mad/11D3C.c index 79fd15a60..dc0a6ca17 100644 --- a/src/st/mad/11D3C.c +++ b/src/st/mad/11D3C.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "mad.h" #include "sfx.h" diff --git a/src/st/mad/15520.c b/src/st/mad/15520.c index b090bb5fe..c7c034914 100644 --- a/src/st/mad/15520.c +++ b/src/st/mad/15520.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "mad.h" void EntityHeartDrop(Entity* self) { diff --git a/src/st/mad/D8C8.c b/src/st/mad/D8C8.c index e02f26efc..005fef1e7 100644 --- a/src/st/mad/D8C8.c +++ b/src/st/mad/D8C8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "mad.h" #include "sfx.h" diff --git a/src/st/mad/bss.c b/src/st/mad/bss.c index a5548bdab..ccd74c361 100644 --- a/src/st/mad/bss.c +++ b/src/st/mad/bss.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include u16 D_801997E8[768]; diff --git a/src/st/mad/collision.c b/src/st/mad/collision.c index e00cc88b3..68b30a9b5 100644 --- a/src/st/mad/collision.c +++ b/src/st/mad/collision.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "mad.h" #include "sfx.h" diff --git a/src/st/mad/create_entity.c b/src/st/mad/create_entity.c index 15ac3d18d..45560a1f9 100644 --- a/src/st/mad/create_entity.c +++ b/src/st/mad/create_entity.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "mad.h" // BSS START size = 0x16 diff --git a/src/st/mad/e_collect.c b/src/st/mad/e_collect.c index 4e15736e5..2fffe116e 100644 --- a/src/st/mad/e_collect.c +++ b/src/st/mad/e_collect.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "mad.h" #include "../e_collect.h" diff --git a/src/st/mad/e_red_door.c b/src/st/mad/e_red_door.c index c0a85254b..32e23ab5e 100644 --- a/src/st/mad/e_red_door.c +++ b/src/st/mad/e_red_door.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "mad.h" #include "../e_red_door.h" diff --git a/src/st/mad/entity_relic_orb.c b/src/st/mad/entity_relic_orb.c index 6b1629514..7bb57eefc 100644 --- a/src/st/mad/entity_relic_orb.c +++ b/src/st/mad/entity_relic_orb.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "mad.h" extern u16 D_801997E8[0x600]; // this should fall into the SBSS section diff --git a/src/st/mad/header.c b/src/st/mad/header.c index fa5b592fb..fa9582872 100644 --- a/src/st/mad/header.c +++ b/src/st/mad/header.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "mad.h" extern RoomHeader g_Rooms[]; diff --git a/src/st/mad/mad.h b/src/st/mad/mad.h index f39b11583..b6daff99c 100644 --- a/src/st/mad/mad.h +++ b/src/st/mad/mad.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef MAD_H #define MAD_H diff --git a/src/st/mad/prim_helpers.c b/src/st/mad/prim_helpers.c index 557c12c1f..ca2e4b695 100644 --- a/src/st/mad/prim_helpers.c +++ b/src/st/mad/prim_helpers.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "mad.h" #include "../prim_helpers.h" diff --git a/src/st/mad/st_update.c b/src/st/mad/st_update.c index d6525c798..bfe2bb036 100644 --- a/src/st/mad/st_update.c +++ b/src/st/mad/st_update.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "mad.h" #include "../random.h" diff --git a/src/st/make_entity_from_id.h b/src/st/make_entity_from_id.h index d2688fd32..45664369b 100644 --- a/src/st/make_entity_from_id.h +++ b/src/st/make_entity_from_id.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later extern PfnEntityUpdate PfnEntityUpdates[]; void MakeEntityFromId(u16 entityId, Entity* src, Entity* dst) { DestroyEntity(dst); diff --git a/src/st/make_explosions.h b/src/st/make_explosions.h index 22f958904..1931e857f 100644 --- a/src/st/make_explosions.h +++ b/src/st/make_explosions.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void MakeExplosions(void) { s32 temp_s3; s8 temp_s4; diff --git a/src/st/move_entity.h b/src/st/move_entity.h index 711c9ba7b..f374deee7 100644 --- a/src/st/move_entity.h +++ b/src/st/move_entity.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void MoveEntity(void) { g_CurrentEntity->posX.val += g_CurrentEntity->velocityX; g_CurrentEntity->posY.val += g_CurrentEntity->velocityY; diff --git a/src/st/no3/377D4.c b/src/st/no3/377D4.c index 590101992..50f9104de 100644 --- a/src/st/no3/377D4.c +++ b/src/st/no3/377D4.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * File: 377D4.c * Overlay: NO3 diff --git a/src/st/no3/3C4EC.c b/src/st/no3/3C4EC.c index 2f39c06bb..4f87fb4e0 100644 --- a/src/st/no3/3C4EC.c +++ b/src/st/no3/3C4EC.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" // pushes alucard to the right diff --git a/src/st/no3/3E134.c b/src/st/no3/3E134.c index cb2b7d4e4..4272a7f53 100644 --- a/src/st/no3/3E134.c +++ b/src/st/no3/3E134.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" // intro owl and leaves diff --git a/src/st/no3/3FF00.c b/src/st/no3/3FF00.c index d1e1b755c..f4f5ebc36 100644 --- a/src/st/no3/3FF00.c +++ b/src/st/no3/3FF00.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" #include "sfx.h" diff --git a/src/st/no3/44C64.c b/src/st/no3/44C64.c index e00f58bf6..73c9a5122 100644 --- a/src/st/no3/44C64.c +++ b/src/st/no3/44C64.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" #include "sfx.h" diff --git a/src/st/no3/48A84.c b/src/st/no3/48A84.c index 36bbe51c3..74520b85b 100644 --- a/src/st/no3/48A84.c +++ b/src/st/no3/48A84.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" #include "../check_coll_offsets.h" diff --git a/src/st/no3/516B4.c b/src/st/no3/516B4.c index cac8d031b..a64031243 100644 --- a/src/st/no3/516B4.c +++ b/src/st/no3/516B4.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" #include "../e_merman2.h" diff --git a/src/st/no3/53F38.c b/src/st/no3/53F38.c index d1880eb6a..5af3b1ba3 100644 --- a/src/st/no3/53F38.c +++ b/src/st/no3/53F38.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" #include "../e_merman.h" diff --git a/src/st/no3/56264.c b/src/st/no3/56264.c index 5f36b06e4..3e9a2a758 100644 --- a/src/st/no3/56264.c +++ b/src/st/no3/56264.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" void EntityBat(Entity* entity) { diff --git a/src/st/no3/564B0.c b/src/st/no3/564B0.c index 788bfe2a0..3e0f651b7 100644 --- a/src/st/no3/564B0.c +++ b/src/st/no3/564B0.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" #include "sfx.h" diff --git a/src/st/no3/blit_char.c b/src/st/no3/blit_char.c index dcd77c4c0..c30a4b304 100644 --- a/src/st/no3/blit_char.c +++ b/src/st/no3/blit_char.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../blit_char.h" diff --git a/src/st/no3/bss.c b/src/st/no3/bss.c index 9300a5fa2..6feacac2c 100644 --- a/src/st/no3/bss.c +++ b/src/st/no3/bss.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include STATIC_PAD_BSS(3072); diff --git a/src/st/no3/collision.c b/src/st/no3/collision.c index 075265617..ac4b65086 100644 --- a/src/st/no3/collision.c +++ b/src/st/no3/collision.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../collision.h" diff --git a/src/st/no3/create_entity.c b/src/st/no3/create_entity.c index e5249fb87..3a6be69b0 100644 --- a/src/st/no3/create_entity.c +++ b/src/st/no3/create_entity.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include STATIC_PAD_BSS(96); diff --git a/src/st/no3/deathcutscene.c b/src/st/no3/deathcutscene.c index 52d301475..21a3e9d75 100644 --- a/src/st/no3/deathcutscene.c +++ b/src/st/no3/deathcutscene.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" void func_801BE544(void) { diff --git a/src/st/no3/e_bone_scimitar.c b/src/st/no3/e_bone_scimitar.c index 0bb9cf991..bf31b4b21 100644 --- a/src/st/no3/e_bone_scimitar.c +++ b/src/st/no3/e_bone_scimitar.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" #include "../e_bone_scimitar.h" diff --git a/src/st/no3/e_collect.c b/src/st/no3/e_collect.c index f819390db..950b85640 100644 --- a/src/st/no3/e_collect.c +++ b/src/st/no3/e_collect.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_collect.h" diff --git a/src/st/no3/e_red_door.c b/src/st/no3/e_red_door.c index cd9dc7a56..10dc8ebb8 100644 --- a/src/st/no3/e_red_door.c +++ b/src/st/no3/e_red_door.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_red_door.h" diff --git a/src/st/no3/entity_heart_drop.c b/src/st/no3/entity_heart_drop.c index cc35181a6..d29351163 100644 --- a/src/st/no3/entity_heart_drop.c +++ b/src/st/no3/entity_heart_drop.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" void EntityHeartDrop(Entity* self) { diff --git a/src/st/no3/entity_message_box.c b/src/st/no3/entity_message_box.c index 3532329fd..20bf3159a 100644 --- a/src/st/no3/entity_message_box.c +++ b/src/st/no3/entity_message_box.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" #include "../entity_message_box.h" diff --git a/src/st/no3/entity_relic_orb.c b/src/st/no3/entity_relic_orb.c index 4b30d98a6..42a2effd3 100644 --- a/src/st/no3/entity_relic_orb.c +++ b/src/st/no3/entity_relic_orb.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" #include "../entity_relic_orb.h" diff --git a/src/st/no3/header.c b/src/st/no3/header.c index 5381a6394..d6634f837 100644 --- a/src/st/no3/header.c +++ b/src/st/no3/header.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" extern RoomHeader OVL_EXPORT(rooms)[]; diff --git a/src/st/no3/no3.h b/src/st/no3/no3.h index 78f2e5fe6..ad7dca92f 100644 --- a/src/st/no3/no3.h +++ b/src/st/no3/no3.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "stage.h" #define OVL_EXPORT(x) NO3_##x diff --git a/src/st/no3/player_water_effect.c b/src/st/no3/player_water_effect.c index 315a51e6e..c34fff09a 100644 --- a/src/st/no3/player_water_effect.c +++ b/src/st/no3/player_water_effect.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "no3.h" static u16 func_801D0A2C(s16 arg0, s16 arg1, s16 arg2, s16* arg3) { diff --git a/src/st/no3/prim_helpers.c b/src/st/no3/prim_helpers.c index 96d47f7df..54fc9a0c6 100644 --- a/src/st/no3/prim_helpers.c +++ b/src/st/no3/prim_helpers.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../prim_helpers.h" diff --git a/src/st/no3/st_update.c b/src/st/no3/st_update.c index 8477b2478..b8e3f3fea 100644 --- a/src/st/no3/st_update.c +++ b/src/st/no3/st_update.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include static u16 UNK_Invincibility0[] = { diff --git a/src/st/no3/tile_data.c b/src/st/no3/tile_data.c index e8459c3b5..f9a32a97e 100644 --- a/src/st/no3/tile_data.c +++ b/src/st/no3/tile_data.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "tilemap_18838.h" diff --git a/src/st/np3/32830.c b/src/st/np3/32830.c index 04f749c77..306bc2091 100644 --- a/src/st/np3/32830.c +++ b/src/st/np3/32830.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "sfx.h" diff --git a/src/st/np3/363FC.c b/src/st/np3/363FC.c index 6e2043e64..de57292cd 100644 --- a/src/st/np3/363FC.c +++ b/src/st/np3/363FC.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" // Make a EntityWargExplosionPuffOpaque diff --git a/src/st/np3/44DCC.c b/src/st/np3/44DCC.c index a4338645f..758c791f4 100644 --- a/src/st/np3/44DCC.c +++ b/src/st/np3/44DCC.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: NP3 * Description: Merman Room diff --git a/src/st/np3/48238.c b/src/st/np3/48238.c index ddb8b17dc..482a75205 100644 --- a/src/st/np3/48238.c +++ b/src/st/np3/48238.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: NP3 * Description: Merman Room (2) diff --git a/src/st/np3/4997C.c b/src/st/np3/4997C.c index d9adec87c..db3043a10 100644 --- a/src/st/np3/4997C.c +++ b/src/st/np3/4997C.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" void EntityBat(Entity* entity) { diff --git a/src/st/np3/49BC8.c b/src/st/np3/49BC8.c index 8f2d9c29d..ec081fd10 100644 --- a/src/st/np3/49BC8.c +++ b/src/st/np3/49BC8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "sfx.h" diff --git a/src/st/np3/49F98.c b/src/st/np3/49F98.c index eab8fc25a..8ef632eee 100644 --- a/src/st/np3/49F98.c +++ b/src/st/np3/49F98.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: NP3 * Enemy: Bloody Zombie diff --git a/src/st/np3/4B018.c b/src/st/np3/4B018.c index c2e371a11..1c87563d6 100644 --- a/src/st/np3/4B018.c +++ b/src/st/np3/4B018.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "sfx.h" diff --git a/src/st/np3/4D540.c b/src/st/np3/4D540.c index 6c5afbcf3..955a3f70c 100644 --- a/src/st/np3/4D540.c +++ b/src/st/np3/4D540.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" void func_801CD540(Entity* self) { diff --git a/src/st/np3/4E69C.c b/src/st/np3/4E69C.c index 6a8200708..ecc16b1c6 100644 --- a/src/st/np3/4E69C.c +++ b/src/st/np3/4E69C.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "sfx.h" diff --git a/src/st/np3/4F5B8.c b/src/st/np3/4F5B8.c index c6841f42b..ac7d2d1ab 100644 --- a/src/st/np3/4F5B8.c +++ b/src/st/np3/4F5B8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "sfx.h" diff --git a/src/st/np3/blade.c b/src/st/np3/blade.c index 7e23fe06f..8c0fe4720 100644 --- a/src/st/np3/blade.c +++ b/src/st/np3/blade.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "sfx.h" diff --git a/src/st/np3/blit_char.c b/src/st/np3/blit_char.c index dcd77c4c0..c30a4b304 100644 --- a/src/st/np3/blit_char.c +++ b/src/st/np3/blit_char.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../blit_char.h" diff --git a/src/st/np3/bss.c b/src/st/np3/bss.c index 2772f20aa..1232d5659 100644 --- a/src/st/np3/bss.c +++ b/src/st/np3/bss.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include STATIC_PAD_BSS(3072); diff --git a/src/st/np3/collision.c b/src/st/np3/collision.c index 075265617..ac4b65086 100644 --- a/src/st/np3/collision.c +++ b/src/st/np3/collision.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../collision.h" diff --git a/src/st/np3/create_entity.c b/src/st/np3/create_entity.c index 10c09cbab..6159c30f1 100644 --- a/src/st/np3/create_entity.c +++ b/src/st/np3/create_entity.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../create_entity.h" diff --git a/src/st/np3/e_bone_scimitar.c b/src/st/np3/e_bone_scimitar.c index d8720390e..be26ac661 100644 --- a/src/st/np3/e_bone_scimitar.c +++ b/src/st/np3/e_bone_scimitar.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "../e_bone_scimitar.h" diff --git a/src/st/np3/e_breakable.c b/src/st/np3/e_breakable.c index 712f6292c..76b65adaf 100644 --- a/src/st/np3/e_breakable.c +++ b/src/st/np3/e_breakable.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "../e_breakable.h" diff --git a/src/st/np3/e_collect.c b/src/st/np3/e_collect.c index f819390db..950b85640 100644 --- a/src/st/np3/e_collect.c +++ b/src/st/np3/e_collect.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_collect.h" diff --git a/src/st/np3/e_init.c b/src/st/np3/e_init.c index be7943ec7..67672612f 100644 --- a/src/st/np3/e_init.c +++ b/src/st/np3/e_init.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include void EntityBreakable(Entity* self); diff --git a/src/st/np3/e_misc.c b/src/st/np3/e_misc.c index f76f360d7..41483b709 100644 --- a/src/st/np3/e_misc.c +++ b/src/st/np3/e_misc.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "../entity_relic_orb.h" diff --git a/src/st/np3/e_particles.c b/src/st/np3/e_particles.c index f07a9a67b..fdda643ec 100644 --- a/src/st/np3/e_particles.c +++ b/src/st/np3/e_particles.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "../entity_soul_steal_orb.h" diff --git a/src/st/np3/e_red_door.c b/src/st/np3/e_red_door.c index cd9dc7a56..10dc8ebb8 100644 --- a/src/st/np3/e_red_door.c +++ b/src/st/np3/e_red_door.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_red_door.h" diff --git a/src/st/np3/e_room_fg.c b/src/st/np3/e_room_fg.c index d13f2e7fb..936d5e5fb 100644 --- a/src/st/np3/e_room_fg.c +++ b/src/st/np3/e_room_fg.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" extern ObjInit D_801820F0[]; diff --git a/src/st/np3/e_stage_name.c b/src/st/np3/e_stage_name.c index ed088d2f1..9cf5b3e9b 100644 --- a/src/st/np3/e_stage_name.c +++ b/src/st/np3/e_stage_name.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "../e_stage_name.h" diff --git a/src/st/np3/gaibon.c b/src/st/np3/gaibon.c index aa9a4115d..2255ca36c 100644 --- a/src/st/np3/gaibon.c +++ b/src/st/np3/gaibon.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "sfx.h" diff --git a/src/st/np3/header.c b/src/st/np3/header.c index a8c0365fc..419a04bfe 100644 --- a/src/st/np3/header.c +++ b/src/st/np3/header.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" extern RoomHeader OVL_EXPORT(rooms)[]; diff --git a/src/st/np3/np3.h b/src/st/np3/np3.h index e0a36bbd6..320f5a428 100644 --- a/src/st/np3/np3.h +++ b/src/st/np3/np3.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "stage.h" #define OVL_EXPORT(x) NP3_##x diff --git a/src/st/np3/player_water_effect.c b/src/st/np3/player_water_effect.c index d8702513c..ace948077 100644 --- a/src/st/np3/player_water_effect.c +++ b/src/st/np3/player_water_effect.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" static u16 func_801C4144(s16 arg0, s16 arg1, s16 arg2, s16* arg3) { diff --git a/src/st/np3/popup.c b/src/st/np3/popup.c index 96fe1e10c..7a2f50b31 100644 --- a/src/st/np3/popup.c +++ b/src/st/np3/popup.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "../popup.h" diff --git a/src/st/np3/prim_helpers.c b/src/st/np3/prim_helpers.c index 96d47f7df..54fc9a0c6 100644 --- a/src/st/np3/prim_helpers.c +++ b/src/st/np3/prim_helpers.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../prim_helpers.h" diff --git a/src/st/np3/slogra.c b/src/st/np3/slogra.c index 6efd3f3e4..b572c21c2 100644 --- a/src/st/np3/slogra.c +++ b/src/st/np3/slogra.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: NP3 * Enemy: Slogra & Gaibon Boss diff --git a/src/st/np3/st_common.c b/src/st/np3/st_common.c index b9827d9d0..0a09f229f 100644 --- a/src/st/np3/st_common.c +++ b/src/st/np3/st_common.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" #include "../../destroy_entity.h" diff --git a/src/st/np3/st_debug.c b/src/st/np3/st_debug.c index e6ac092af..110a041a2 100644 --- a/src/st/np3/st_debug.c +++ b/src/st/np3/st_debug.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "np3.h" void func_801B246C(Entity* self) { diff --git a/src/st/np3/st_update.c b/src/st/np3/st_update.c index 8477b2478..b8e3f3fea 100644 --- a/src/st/np3/st_update.c +++ b/src/st/np3/st_update.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include static u16 UNK_Invincibility0[] = { diff --git a/src/st/np3/tile_data.c b/src/st/np3/tile_data.c index fa580751f..bc28167d9 100644 --- a/src/st/np3/tile_data.c +++ b/src/st/np3/tile_data.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "tilemap_168F4.h" diff --git a/src/st/nz0/30958.c b/src/st/nz0/30958.c index 35ada6a53..6fb83e577 100644 --- a/src/st/nz0/30958.c +++ b/src/st/nz0/30958.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * File: 394D4.c * Overlay: NZ0 diff --git a/src/st/nz0/311C0.c b/src/st/nz0/311C0.c index 547ca51fa..66cf3ce4f 100644 --- a/src/st/nz0/311C0.c +++ b/src/st/nz0/311C0.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" // bust with red eyes that can have a candle on it diff --git a/src/st/nz0/36DE4.c b/src/st/nz0/36DE4.c index c597ff8dc..cdde92018 100644 --- a/src/st/nz0/36DE4.c +++ b/src/st/nz0/36DE4.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" #include "sfx.h" diff --git a/src/st/nz0/4070C.c b/src/st/nz0/4070C.c index 16ef70822..fd37e4d53 100644 --- a/src/st/nz0/4070C.c +++ b/src/st/nz0/4070C.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" #include "../check_coll_offsets.h" diff --git a/src/st/nz0/blit_char.c b/src/st/nz0/blit_char.c index dcd77c4c0..c30a4b304 100644 --- a/src/st/nz0/blit_char.c +++ b/src/st/nz0/blit_char.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../blit_char.h" diff --git a/src/st/nz0/bossfight.c b/src/st/nz0/bossfight.c index 08db8e24b..881ad4c36 100644 --- a/src/st/nz0/bossfight.c +++ b/src/st/nz0/bossfight.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" #include "sfx.h" diff --git a/src/st/nz0/bss.c b/src/st/nz0/bss.c index 5dd9dc55c..31eb6b0be 100644 --- a/src/st/nz0/bss.c +++ b/src/st/nz0/bss.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include STATIC_PAD_BSS(3072); diff --git a/src/st/nz0/collision.c b/src/st/nz0/collision.c index 075265617..ac4b65086 100644 --- a/src/st/nz0/collision.c +++ b/src/st/nz0/collision.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../collision.h" diff --git a/src/st/nz0/create_entity.c b/src/st/nz0/create_entity.c index 29364d565..a30481659 100644 --- a/src/st/nz0/create_entity.c +++ b/src/st/nz0/create_entity.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include u32 D_801CAA14[24]; diff --git a/src/st/nz0/e_axe_knight.c b/src/st/nz0/e_axe_knight.c index a45a50d02..bf0b9cfbf 100644 --- a/src/st/nz0/e_axe_knight.c +++ b/src/st/nz0/e_axe_knight.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: NZ0 * Enemy: Axe Knight diff --git a/src/st/nz0/e_bloody_skeleton.c b/src/st/nz0/e_bloody_skeleton.c index ca07bbf4f..0835cba4e 100644 --- a/src/st/nz0/e_bloody_skeleton.c +++ b/src/st/nz0/e_bloody_skeleton.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: NZ0 * Enemy: Blood Skeleton diff --git a/src/st/nz0/e_bloody_zombie.c b/src/st/nz0/e_bloody_zombie.c index 7f834b1ac..475e417ff 100644 --- a/src/st/nz0/e_bloody_zombie.c +++ b/src/st/nz0/e_bloody_zombie.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: NZ0 * Enemy: Bloody Zombie diff --git a/src/st/nz0/e_bone_scimitar.c b/src/st/nz0/e_bone_scimitar.c index ccfcda1bc..6d0e74282 100644 --- a/src/st/nz0/e_bone_scimitar.c +++ b/src/st/nz0/e_bone_scimitar.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" #include "../e_bone_scimitar.h" diff --git a/src/st/nz0/e_breakable.c b/src/st/nz0/e_breakable.c index bbc53af5c..f302e421e 100644 --- a/src/st/nz0/e_breakable.c +++ b/src/st/nz0/e_breakable.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" static u8 D_80180DE4[] = {4, 1, 4, 2, 0, 0, 0, 0}; diff --git a/src/st/nz0/e_collect.c b/src/st/nz0/e_collect.c index f819390db..950b85640 100644 --- a/src/st/nz0/e_collect.c +++ b/src/st/nz0/e_collect.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_collect.h" diff --git a/src/st/nz0/e_elevator.c b/src/st/nz0/e_elevator.c index 5fecccc7a..ae5189457 100644 --- a/src/st/nz0/e_elevator.c +++ b/src/st/nz0/e_elevator.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" typedef enum ElevatorSubSteps { diff --git a/src/st/nz0/e_init.c b/src/st/nz0/e_init.c index 922d2b768..f0ebd2570 100644 --- a/src/st/nz0/e_init.c +++ b/src/st/nz0/e_init.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include void EntityBreakableNZ0(Entity*); diff --git a/src/st/nz0/e_magically_sealed_door.c b/src/st/nz0/e_magically_sealed_door.c index c6fa557e3..d1ef2175e 100644 --- a/src/st/nz0/e_magically_sealed_door.c +++ b/src/st/nz0/e_magically_sealed_door.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: NZ0 * Entity: Magically Sealed Door diff --git a/src/st/nz0/e_particles.c b/src/st/nz0/e_particles.c index 86161180c..d66f017f1 100644 --- a/src/st/nz0/e_particles.c +++ b/src/st/nz0/e_particles.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_particles.h" diff --git a/src/st/nz0/e_red_door.c b/src/st/nz0/e_red_door.c index eefaa52b1..d953306e4 100644 --- a/src/st/nz0/e_red_door.c +++ b/src/st/nz0/e_red_door.c @@ -1,3 +1,3 @@ - +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_red_door.h" diff --git a/src/st/nz0/e_room_fg.c b/src/st/nz0/e_room_fg.c index b20c1b866..031379020 100644 --- a/src/st/nz0/e_room_fg.c +++ b/src/st/nz0/e_room_fg.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_room_fg.h" diff --git a/src/st/nz0/e_skeleton.c b/src/st/nz0/e_skeleton.c index 8b78f77ae..95fd81057 100644 --- a/src/st/nz0/e_skeleton.c +++ b/src/st/nz0/e_skeleton.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: NZ0 * Enemy: Skeleton diff --git a/src/st/nz0/e_spittle_bone.c b/src/st/nz0/e_spittle_bone.c index 70f2f572f..1ba497280 100644 --- a/src/st/nz0/e_spittle_bone.c +++ b/src/st/nz0/e_spittle_bone.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: NZ0 * Enemy: Spittle Bone diff --git a/src/st/nz0/e_stage_name.c b/src/st/nz0/e_stage_name.c index d62fdb950..191441212 100644 --- a/src/st/nz0/e_stage_name.c +++ b/src/st/nz0/e_stage_name.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" #include "../e_stage_name.h" diff --git a/src/st/nz0/e_subweapon_container.c b/src/st/nz0/e_subweapon_container.c index 6c0c01ded..3a8c87bdb 100644 --- a/src/st/nz0/e_subweapon_container.c +++ b/src/st/nz0/e_subweapon_container.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: NZ0 * Entity: SubWeapon container diff --git a/src/st/nz0/entity_heart_drop.c b/src/st/nz0/entity_heart_drop.c index 405caa475..2c539c2ac 100644 --- a/src/st/nz0/entity_heart_drop.c +++ b/src/st/nz0/entity_heart_drop.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" void EntityHeartDrop(Entity* self) { diff --git a/src/st/nz0/entity_message_box.c b/src/st/nz0/entity_message_box.c index 0ae48b771..97bc1a36b 100644 --- a/src/st/nz0/entity_message_box.c +++ b/src/st/nz0/entity_message_box.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" #include "../entity_message_box.h" diff --git a/src/st/nz0/entity_relic_orb.c b/src/st/nz0/entity_relic_orb.c index d8c195255..d9083744d 100644 --- a/src/st/nz0/entity_relic_orb.c +++ b/src/st/nz0/entity_relic_orb.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" #include "../entity_relic_orb.h" diff --git a/src/st/nz0/gaibon.c b/src/st/nz0/gaibon.c index 3902b0fc0..56624c235 100644 --- a/src/st/nz0/gaibon.c +++ b/src/st/nz0/gaibon.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" #include "sfx.h" diff --git a/src/st/nz0/header.c b/src/st/nz0/header.c index cacfd2057..812b06315 100644 --- a/src/st/nz0/header.c +++ b/src/st/nz0/header.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" extern signed short* spriteBanks[]; diff --git a/src/st/nz0/lifeupspawn.c b/src/st/nz0/lifeupspawn.c index 8e74eda8b..49fa9da20 100644 --- a/src/st/nz0/lifeupspawn.c +++ b/src/st/nz0/lifeupspawn.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" // particle effect that spawns life up item diff --git a/src/st/nz0/maria.c b/src/st/nz0/maria.c index c60d16c7a..f155bec17 100644 --- a/src/st/nz0/maria.c +++ b/src/st/nz0/maria.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" #include "sfx.h" diff --git a/src/st/nz0/mariacutscene.c b/src/st/nz0/mariacutscene.c index 9ebc7ff99..11f108b0e 100644 --- a/src/st/nz0/mariacutscene.c +++ b/src/st/nz0/mariacutscene.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" // This file consists of EntityMariaCutscene, and all the functions it calls. diff --git a/src/st/nz0/nz0.h b/src/st/nz0/nz0.h index bd97b29c8..5738c945f 100644 --- a/src/st/nz0/nz0.h +++ b/src/st/nz0/nz0.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "stage.h" #define OVL_EXPORT(x) NZ0_##x diff --git a/src/st/nz0/popup.c b/src/st/nz0/popup.c index 8c6e9b6aa..182d6fdae 100644 --- a/src/st/nz0/popup.c +++ b/src/st/nz0/popup.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../popup.h" diff --git a/src/st/nz0/prim_helpers.c b/src/st/nz0/prim_helpers.c index 96d47f7df..54fc9a0c6 100644 --- a/src/st/nz0/prim_helpers.c +++ b/src/st/nz0/prim_helpers.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../prim_helpers.h" diff --git a/src/st/nz0/slogra.c b/src/st/nz0/slogra.c index 3c237895c..dae4c7226 100644 --- a/src/st/nz0/slogra.c +++ b/src/st/nz0/slogra.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" #include "sfx.h" diff --git a/src/st/nz0/st_common.c b/src/st/nz0/st_common.c index 796e4edc4..f9749e0aa 100644 --- a/src/st/nz0/st_common.c +++ b/src/st/nz0/st_common.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "nz0.h" static s16 D_80181978[] = { diff --git a/src/st/nz0/st_update.c b/src/st/nz0/st_update.c index 8477b2478..b8e3f3fea 100644 --- a/src/st/nz0/st_update.c +++ b/src/st/nz0/st_update.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include static u16 UNK_Invincibility0[] = { diff --git a/src/st/nz0/tile_data.c b/src/st/nz0/tile_data.c index a64eb535b..8a6dd00ab 100644 --- a/src/st/nz0/tile_data.c +++ b/src/st/nz0/tile_data.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "tilemap_16A5C.h" diff --git a/src/st/play_sfx_positional.h b/src/st/play_sfx_positional.h index 206b8f341..72cc34fa9 100644 --- a/src/st/play_sfx_positional.h +++ b/src/st/play_sfx_positional.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void PlaySfxPositional(s16 sfxId) { s32 posX; s32 posY; diff --git a/src/st/popup.h b/src/st/popup.h index b7807ebc2..49c17358d 100644 --- a/src/st/popup.h +++ b/src/st/popup.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #if defined(VERSION_US) diff --git a/src/st/prevent_entity_from_respawning.h b/src/st/prevent_entity_from_respawning.h index 9dc0f494d..16799dcad 100644 --- a/src/st/prevent_entity_from_respawning.h +++ b/src/st/prevent_entity_from_respawning.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void PreventEntityFromRespawning(Entity* entity) { if (entity->entityRoomIndex) { u16 index = entity->entityRoomIndex - 1 >> 5; diff --git a/src/st/prim_helpers.h b/src/st/prim_helpers.h index 51a6b9d5f..649cc105b 100644 --- a/src/st/prim_helpers.h +++ b/src/st/prim_helpers.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "game.h" #if !defined(VERSION_PSP) diff --git a/src/st/random.h b/src/st/random.h index 3d1795d7f..4996d0b5e 100644 --- a/src/st/random.h +++ b/src/st/random.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include s32 Random(void) { diff --git a/src/st/ratan2.h b/src/st/ratan2.h index cd2e5057b..283b7aa39 100644 --- a/src/st/ratan2.h +++ b/src/st/ratan2.h @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later u16 Ratan2(s16 x, s16 y) { return ratan2(y, x); } diff --git a/src/st/ratan2_shifted.h b/src/st/ratan2_shifted.h index a29f41a3f..cb4abd8b6 100644 --- a/src/st/ratan2_shifted.h +++ b/src/st/ratan2_shifted.h @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later u8 Ratan2Shifted(s16 x, s16 y) { return (ratan2(y, x) >> 4) + 0x40; } diff --git a/src/st/replace_breakable_with_item_drop.h b/src/st/replace_breakable_with_item_drop.h index ab0a8d417..fa767a177 100644 --- a/src/st/replace_breakable_with_item_drop.h +++ b/src/st/replace_breakable_with_item_drop.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void ReplaceBreakableWithItemDrop(Entity* self) { u16 params; diff --git a/src/st/rwrp/bss.c b/src/st/rwrp/bss.c index 1bb650f9b..9ced6bd9d 100644 --- a/src/st/rwrp/bss.c +++ b/src/st/rwrp/bss.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include STATIC_PAD_BSS(0xC68); diff --git a/src/st/rwrp/d_1b8.c b/src/st/rwrp/d_1b8.c index 3644c28da..7dd3d2cba 100644 --- a/src/st/rwrp/d_1b8.c +++ b/src/st/rwrp/d_1b8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "rwrp.h" #include "../st_private.h" diff --git a/src/st/rwrp/e_init.c b/src/st/rwrp/e_init.c index 87ca8dd35..39397dabf 100644 --- a/src/st/rwrp/e_init.c +++ b/src/st/rwrp/e_init.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "rwrp.h" #include "../st_private.h" diff --git a/src/st/rwrp/e_misc.c b/src/st/rwrp/e_misc.c index c098319c6..1b773f23f 100644 --- a/src/st/rwrp/e_misc.c +++ b/src/st/rwrp/e_misc.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "rwrp.h" #include "../e_misc.h" diff --git a/src/st/rwrp/header.c b/src/st/rwrp/header.c index 9991dc837..2a66f6f03 100644 --- a/src/st/rwrp/header.c +++ b/src/st/rwrp/header.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "rwrp.h" extern RoomHeader OVL_EXPORT(rooms)[]; diff --git a/src/st/rwrp/rwrp.h b/src/st/rwrp/rwrp.h index a688ab70e..7dd1827d5 100644 --- a/src/st/rwrp/rwrp.h +++ b/src/st/rwrp/rwrp.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef RWRP_H #define RWRP_H diff --git a/src/st/rwrp/tile_data.c b/src/st/rwrp/tile_data.c index a98915f79..e2b392085 100644 --- a/src/st/rwrp/tile_data.c +++ b/src/st/rwrp/tile_data.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "tilemap_01FC8.h" diff --git a/src/st/rwrp/warp.c b/src/st/rwrp/warp.c index f3b658b65..5b3a3ac7f 100644 --- a/src/st/rwrp/warp.c +++ b/src/st/rwrp/warp.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "game.h" #include "rwrp.h" #include "common.h" diff --git a/src/st/sel/2C048.c b/src/st/sel/2C048.c index 19f26c543..1c80bb7b9 100644 --- a/src/st/sel/2C048.c +++ b/src/st/sel/2C048.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * File: 2C048.c * Overlay: SEL diff --git a/src/st/sel/33164.c b/src/st/sel/33164.c index accb2030a..2bb3a9cbb 100644 --- a/src/st/sel/33164.c +++ b/src/st/sel/33164.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "sel.h" s32 func_801B3164(void) { diff --git a/src/st/sel/3410C.c b/src/st/sel/3410C.c index 3be068527..7a38b5b31 100644 --- a/src/st/sel/3410C.c +++ b/src/st/sel/3410C.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "sel.h" #include "sfx.h" diff --git a/src/st/sel/3585C.c b/src/st/sel/3585C.c index 0ade8aa84..b6742a334 100644 --- a/src/st/sel/3585C.c +++ b/src/st/sel/3585C.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "sel.h" void func_801B4B9C(Entity* entity, s16 step); diff --git a/src/st/sel/3642C.c b/src/st/sel/3642C.c index 1eb4816bf..d39817586 100644 --- a/src/st/sel/3642C.c +++ b/src/st/sel/3642C.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "sel.h" void func_801B642C(void) { diff --git a/src/st/sel/CD54.c b/src/st/sel/CD54.c index ebd075ca8..b4ee4a71e 100644 --- a/src/st/sel/CD54.c +++ b/src/st/sel/CD54.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later unsigned short D_8018CD54[48] = { 0x0000, 0x0421, 0x0C63, 0x2D6B, 0x56B5, 0x7FFF, 0x2840, 0x38C4, 0x59CC, 0x00EE, 0x01F4, 0x0F5F, 0x3FFF, 0x000A, 0x0010, 0x0016, diff --git a/src/st/sel/banks.c b/src/st/sel/banks.c index a49fee43b..ba23a7a6d 100644 --- a/src/st/sel/banks.c +++ b/src/st/sel/banks.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "game.h" static u8 D_801804E0[] = { diff --git a/src/st/sel/bss.c b/src/st/sel/bss.c index 061db6c1a..6a4f58050 100644 --- a/src/st/sel/bss.c +++ b/src/st/sel/bss.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "common.h" u32 D_801BAEE4[9]; diff --git a/src/st/sel/config_us.c b/src/st/sel/config_us.c index 052811ed1..40e5fb1ce 100644 --- a/src/st/sel/config_us.c +++ b/src/st/sel/config_us.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../../config_us.h" diff --git a/src/st/sel/lba_stage.c b/src/st/sel/lba_stage.c index 03dcba60d..75edff9b3 100644 --- a/src/st/sel/lba_stage.c +++ b/src/st/sel/lba_stage.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "game.h" // clang-format off diff --git a/src/st/sel/save_mgr.c b/src/st/sel/save_mgr.c index ac7c748fd..0b75fc326 100644 --- a/src/st/sel/save_mgr.c +++ b/src/st/sel/save_mgr.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "sel.h" #include "../../save_mgr.h" diff --git a/src/st/sel/save_mgr_pre.c b/src/st/sel/save_mgr_pre.c index b599f080d..86d7604e2 100644 --- a/src/st/sel/save_mgr_pre.c +++ b/src/st/sel/save_mgr_pre.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "sel.h" #include "../../save_mgr_pre.h" diff --git a/src/st/sel/sel.h b/src/st/sel/sel.h index b3a8343ea..9fd83db27 100644 --- a/src/st/sel/sel.h +++ b/src/st/sel/sel.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "stage.h" #include #include "memcard.h" diff --git a/src/st/sel/stream.c b/src/st/sel/stream.c index 74bd5ca76..11eb75cc5 100644 --- a/src/st/sel/stream.c +++ b/src/st/sel/stream.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "sel.h" // Check if CD data is ready as long as its not related to reading the position diff --git a/src/st/sel/stream_info.c b/src/st/sel/stream_info.c index ab54c3624..e961cfe0b 100644 --- a/src/st/sel/stream_info.c +++ b/src/st/sel/stream_info.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "sel.h" StreamInfo g_StreamInfo0 = { diff --git a/src/st/set_entity_velocity_from_angle.h b/src/st/set_entity_velocity_from_angle.h index 497f34842..c8e19f223 100644 --- a/src/st/set_entity_velocity_from_angle.h +++ b/src/st/set_entity_velocity_from_angle.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void SetEntityVelocityFromAngle(s32 arg0, s16 arg1) { g_CurrentEntity->velocityX = GetSineScaled(arg0, arg1); g_CurrentEntity->velocityY = GetSineScaled(arg0 - 0x40, arg1); diff --git a/src/st/set_step.h b/src/st/set_step.h index 593dff5a4..298f55b01 100644 --- a/src/st/set_step.h +++ b/src/st/set_step.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void SetStep(u8 step) { g_CurrentEntity->step = step; g_CurrentEntity->step_s = 0; diff --git a/src/st/set_sub_step.h b/src/st/set_sub_step.h index ca0b785aa..972ed8a43 100644 --- a/src/st/set_sub_step.h +++ b/src/st/set_sub_step.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void SetSubStep(u8 step_s) { g_CurrentEntity->step_s = step_s; g_CurrentEntity->animFrameIdx = 0; diff --git a/src/st/st0/27D64.c b/src/st/st0/27D64.c index 864d1f2cf..e4ae26665 100644 --- a/src/st/st0/27D64.c +++ b/src/st/st0/27D64.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "st0.h" #include "sfx.h" diff --git a/src/st/st0/2A218.c b/src/st/st0/2A218.c index 65d34b8aa..e5c73c041 100644 --- a/src/st/st0/2A218.c +++ b/src/st/st0/2A218.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "st0.h" void func_801AA218(s16 arg0) { diff --git a/src/st/st0/2A8DC.c b/src/st/st0/2A8DC.c index bfcf8e24d..6639fa4e3 100644 --- a/src/st/st0/2A8DC.c +++ b/src/st/st0/2A8DC.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: ST0 * Entity: Secret Stairs diff --git a/src/st/st0/2B0C8.c b/src/st/st0/2B0C8.c index e9c2448bc..799b96e1a 100644 --- a/src/st/st0/2B0C8.c +++ b/src/st/st0/2B0C8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "st0.h" #include "sfx.h" diff --git a/src/st/st0/2C564.c b/src/st/st0/2C564.c index e91436435..b74971254 100644 --- a/src/st/st0/2C564.c +++ b/src/st/st0/2C564.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: ST0 * Enemy: Dracula Boss diff --git a/src/st/st0/2DAC8.c b/src/st/st0/2DAC8.c index 55d9d96fc..131ae6906 100644 --- a/src/st/st0/2DAC8.c +++ b/src/st/st0/2DAC8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "st0.h" #include "sfx.h" diff --git a/src/st/st0/30030.c b/src/st/st0/30030.c index ee3fc310b..ec0b08c25 100644 --- a/src/st/st0/30030.c +++ b/src/st/st0/30030.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "st0.h" #include "disk.h" diff --git a/src/st/st0/34908.c b/src/st/st0/34908.c index 2a2e8cb67..e3f504414 100644 --- a/src/st/st0/34908.c +++ b/src/st/st0/34908.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "st0.h" #include "sfx.h" diff --git a/src/st/st0/37308.c b/src/st/st0/37308.c index db30e3a83..475a6969b 100644 --- a/src/st/st0/37308.c +++ b/src/st/st0/37308.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "game.h" #include "st0.h" #include "sfx.h" diff --git a/src/st/st0/3D8F0.c b/src/st/st0/3D8F0.c index 831c39bdb..701bba429 100644 --- a/src/st/st0/3D8F0.c +++ b/src/st/st0/3D8F0.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "st0.h" typedef struct { diff --git a/src/st/st0/bss.c b/src/st/st0/bss.c index 64509d032..ef35ca3f9 100644 --- a/src/st/st0/bss.c +++ b/src/st/st0/bss.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include u16 D_801C00B0[768]; diff --git a/src/st/st0/collision.c b/src/st/st0/collision.c index 28490822e..d2b6530f9 100644 --- a/src/st/st0/collision.c +++ b/src/st/st0/collision.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include static u16 g_testCollEnemyLookup[] = { diff --git a/src/st/st0/create_entity.c b/src/st/st0/create_entity.c index 431ffa1e8..32b488eda 100644 --- a/src/st/st0/create_entity.c +++ b/src/st/st0/create_entity.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include u32 D_801BEB00[25]; diff --git a/src/st/st0/draculacutscene.c b/src/st/st0/draculacutscene.c index fe905c1e1..c3f2dc15b 100644 --- a/src/st/st0/draculacutscene.c +++ b/src/st/st0/draculacutscene.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Overlay: ST0 * Description: Cutscene of Richter talking to Dracula diff --git a/src/st/st0/e_collect.c b/src/st/st0/e_collect.c index 6bc3943d9..1d34f48dd 100644 --- a/src/st/st0/e_collect.c +++ b/src/st/st0/e_collect.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "st0.h" #include "../e_collect.h" diff --git a/src/st/st0/e_red_door.c b/src/st/st0/e_red_door.c index cd9dc7a56..10dc8ebb8 100644 --- a/src/st/st0/e_red_door.c +++ b/src/st/st0/e_red_door.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_red_door.h" diff --git a/src/st/st0/header.c b/src/st/st0/header.c index a6326dc41..8c5848998 100644 --- a/src/st/st0/header.c +++ b/src/st/st0/header.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "st0.h" extern RoomHeader OVL_EXPORT(rooms)[]; diff --git a/src/st/st0/prim_helpers.c b/src/st/st0/prim_helpers.c index 96d47f7df..54fc9a0c6 100644 --- a/src/st/st0/prim_helpers.c +++ b/src/st/st0/prim_helpers.c @@ -1,2 +1,3 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../prim_helpers.h" diff --git a/src/st/st0/random.c b/src/st/st0/random.c index 04cd68787..179dd6ac4 100644 --- a/src/st/st0/random.c +++ b/src/st/st0/random.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../random.h" diff --git a/src/st/st0/st0.h b/src/st/st0/st0.h index 7d7fd8577..b6c538e70 100644 --- a/src/st/st0/st0.h +++ b/src/st/st0/st0.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "stage.h" #undef STAGE diff --git a/src/st/st0/tile_data.c b/src/st/st0/tile_data.c index 61b038415..cd1e10417 100644 --- a/src/st/st0/tile_data.c +++ b/src/st/st0/tile_data.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "tilemap_1B2D0.h" diff --git a/src/st/st0/update.c b/src/st/st0/update.c index e447681b8..83ea91c17 100644 --- a/src/st/st0/update.c +++ b/src/st/st0/update.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../update.h" diff --git a/src/st/st0/update_stage_entities.c b/src/st/st0/update_stage_entities.c index 8886987cb..2f06eb5ef 100644 --- a/src/st/st0/update_stage_entities.c +++ b/src/st/st0/update_stage_entities.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../update_stage_entities.h" diff --git a/src/st/st_private.h b/src/st/st_private.h index 2388d786c..2f00e413c 100644 --- a/src/st/st_private.h +++ b/src/st/st_private.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef ST_PRIVATE_H #define ST_PRIVATE_H diff --git a/src/st/unk_anim_func.h b/src/st/unk_anim_func.h index 2c7f7c76a..cf560353d 100644 --- a/src/st/unk_anim_func.h +++ b/src/st/unk_anim_func.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later u8 UnkAnimFunc(u8 frames[], Entity* self, u8 arg2) { u16 animFrameStart = self->animFrameIdx * 2; u8* var_s1 = &frames[animFrameStart]; diff --git a/src/st/unk_collision_func.h b/src/st/unk_collision_func.h index b205354c6..ed4520ac5 100644 --- a/src/st/unk_collision_func.h +++ b/src/st/unk_collision_func.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later s32 UnkCollisionFunc(u16* hitSensors, s16 sensorCount) { Collider collider; s16 i; diff --git a/src/st/unk_collision_func2.h b/src/st/unk_collision_func2.h index af647d9fd..203c65f80 100644 --- a/src/st/unk_collision_func2.h +++ b/src/st/unk_collision_func2.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later s32 UnkCollisionFunc2(s16* posX) { Collider collider; s16 temp2; diff --git a/src/st/unk_collision_func3.h b/src/st/unk_collision_func3.h index bf0fe837a..30dfde6b9 100644 --- a/src/st/unk_collision_func3.h +++ b/src/st/unk_collision_func3.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later s32 UnkCollisionFunc3(u16* sensors) { Collider col; Collider colBack; diff --git a/src/st/unk_collision_func4.h b/src/st/unk_collision_func4.h index 268124a4b..80252fb12 100644 --- a/src/st/unk_collision_func4.h +++ b/src/st/unk_collision_func4.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later u8 UnkCollisionFunc4(s32 arg0) { Collider collider; u32 bits_67; diff --git a/src/st/unk_collision_func5.h b/src/st/unk_collision_func5.h index 40accc7d9..0b64f371d 100644 --- a/src/st/unk_collision_func5.h +++ b/src/st/unk_collision_func5.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later bool UnkCollisionFunc5(Point16* unk) { Collider collider; diff --git a/src/st/unk_entity_func0.h b/src/st/unk_entity_func0.h index e570c229d..0f6838c98 100644 --- a/src/st/unk_entity_func0.h +++ b/src/st/unk_entity_func0.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later void UnkEntityFunc0(u16 slope, s16 speed) { g_CurrentEntity->velocityX = rcos(slope) * speed / 16; g_CurrentEntity->velocityY = rsin(slope) * speed / 16; diff --git a/src/st/unk_recursive_primfunc_1.h b/src/st/unk_recursive_primfunc_1.h index 58e76a83f..db0a212bc 100644 --- a/src/st/unk_recursive_primfunc_1.h +++ b/src/st/unk_recursive_primfunc_1.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later extern u16 g_UnkRecursPrimVecOrder[]; // arg7 holds, in order: diff --git a/src/st/unk_recursive_primfunc_2.h b/src/st/unk_recursive_primfunc_2.h index dd1a7333a..21b0e15c2 100644 --- a/src/st/unk_recursive_primfunc_2.h +++ b/src/st/unk_recursive_primfunc_2.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later extern u16 g_UnkRecursPrim2Inds[]; // arg3 holds, in order: diff --git a/src/st/update.h b/src/st/update.h index 7195b1cd8..148026ebf 100644 --- a/src/st/update.h +++ b/src/st/update.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include extern u16 UNK_Invincibility0[]; diff --git a/src/st/update_room_position.h b/src/st/update_room_position.h index 64f033132..d3e96ab31 100644 --- a/src/st/update_room_position.h +++ b/src/st/update_room_position.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later /* * Creates any new entities that may need to be created * based on a change in the scroll delta. diff --git a/src/st/update_stage_entities.h b/src/st/update_stage_entities.h index 442c655cc..6f637319c 100644 --- a/src/st/update_stage_entities.h +++ b/src/st/update_stage_entities.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include extern u16 UNK_Invincibility0[]; diff --git a/src/st/wrp/blit_char.c b/src/st/wrp/blit_char.c index dcd77c4c0..c30a4b304 100644 --- a/src/st/wrp/blit_char.c +++ b/src/st/wrp/blit_char.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../blit_char.h" diff --git a/src/st/wrp/bss.c b/src/st/wrp/bss.c index 89acec9f4..c959c70a4 100644 --- a/src/st/wrp/bss.c +++ b/src/st/wrp/bss.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include u16 D_801997E8[0x600]; diff --git a/src/st/wrp/collision.c b/src/st/wrp/collision.c index 075265617..ac4b65086 100644 --- a/src/st/wrp/collision.c +++ b/src/st/wrp/collision.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../collision.h" diff --git a/src/st/wrp/create_entity.c b/src/st/wrp/create_entity.c index 10c09cbab..6159c30f1 100644 --- a/src/st/wrp/create_entity.c +++ b/src/st/wrp/create_entity.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../create_entity.h" diff --git a/src/st/wrp/d_1b8.c b/src/st/wrp/d_1b8.c index 481da79e0..8aee68ccc 100644 --- a/src/st/wrp/d_1b8.c +++ b/src/st/wrp/d_1b8.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "wrp.h" #include "../st_private.h" diff --git a/src/st/wrp/d_608.c b/src/st/wrp/d_608.c index 884130080..497d6055d 100644 --- a/src/st/wrp/d_608.c +++ b/src/st/wrp/d_608.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include u32 D_80180608[] = { diff --git a/src/st/wrp/e_breakable.c b/src/st/wrp/e_breakable.c index 11f6edeef..f1d2ce650 100644 --- a/src/st/wrp/e_breakable.c +++ b/src/st/wrp/e_breakable.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "wrp.h" #include "../e_breakable.h" diff --git a/src/st/wrp/e_collect.c b/src/st/wrp/e_collect.c index f819390db..950b85640 100644 --- a/src/st/wrp/e_collect.c +++ b/src/st/wrp/e_collect.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_collect.h" diff --git a/src/st/wrp/e_init.c b/src/st/wrp/e_init.c index d1bda4170..f1b44db53 100644 --- a/src/st/wrp/e_init.c +++ b/src/st/wrp/e_init.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "wrp.h" #include "../st_private.h" diff --git a/src/st/wrp/e_misc.c b/src/st/wrp/e_misc.c index 695fc1b16..d7205aaa2 100644 --- a/src/st/wrp/e_misc.c +++ b/src/st/wrp/e_misc.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "wrp.h" #define CASTLE_FLAG_BANK 0x000 diff --git a/src/st/wrp/e_particles.c b/src/st/wrp/e_particles.c index 86161180c..d66f017f1 100644 --- a/src/st/wrp/e_particles.c +++ b/src/st/wrp/e_particles.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_particles.h" diff --git a/src/st/wrp/e_red_door.c b/src/st/wrp/e_red_door.c index 060ec60d4..2ee649d08 100644 --- a/src/st/wrp/e_red_door.c +++ b/src/st/wrp/e_red_door.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "wrp.h" #include "../e_red_door.h" diff --git a/src/st/wrp/e_room_fg.c b/src/st/wrp/e_room_fg.c index b20c1b866..031379020 100644 --- a/src/st/wrp/e_room_fg.c +++ b/src/st/wrp/e_room_fg.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../e_room_fg.h" diff --git a/src/st/wrp/e_stage_name.c b/src/st/wrp/e_stage_name.c index b98102b43..dc13fda84 100644 --- a/src/st/wrp/e_stage_name.c +++ b/src/st/wrp/e_stage_name.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "wrp.h" #if defined(VERSION_US) diff --git a/src/st/wrp/header.c b/src/st/wrp/header.c index 55eda57ea..2e82c6711 100644 --- a/src/st/wrp/header.c +++ b/src/st/wrp/header.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "wrp.h" void Update(void); diff --git a/src/st/wrp/popup.c b/src/st/wrp/popup.c index 8c6e9b6aa..182d6fdae 100644 --- a/src/st/wrp/popup.c +++ b/src/st/wrp/popup.c @@ -1 +1,2 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../popup.h" diff --git a/src/st/wrp/prim_helpers.c b/src/st/wrp/prim_helpers.c index fc7edccda..74cc62586 100644 --- a/src/st/wrp/prim_helpers.c +++ b/src/st/wrp/prim_helpers.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #include "../prim_helpers.h" diff --git a/src/st/wrp/st_common.c b/src/st/wrp/st_common.c index d1037d41d..706aabb0e 100644 --- a/src/st/wrp/st_common.c +++ b/src/st/wrp/st_common.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "wrp.h" #if !defined(VERSION_PSP) diff --git a/src/st/wrp/st_debug.c b/src/st/wrp/st_debug.c index 93d40724f..c3afcac5f 100644 --- a/src/st/wrp/st_debug.c +++ b/src/st/wrp/st_debug.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "wrp.h" static u8 g_EntityUnkId12Hitbox[] = { diff --git a/src/st/wrp/st_update.c b/src/st/wrp/st_update.c index 8477b2478..b8e3f3fea 100644 --- a/src/st/wrp/st_update.c +++ b/src/st/wrp/st_update.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include static u16 UNK_Invincibility0[] = { diff --git a/src/st/wrp/tile_data.c b/src/st/wrp/tile_data.c index 2bfeb9e45..510ddee05 100644 --- a/src/st/wrp/tile_data.c +++ b/src/st/wrp/tile_data.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #if defined(VERSION_US) diff --git a/src/st/wrp/warp.c b/src/st/wrp/warp.c index 685bd5ae0..e8873ec95 100644 --- a/src/st/wrp/warp.c +++ b/src/st/wrp/warp.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "wrp.h" #include diff --git a/src/st/wrp/wrp.h b/src/st/wrp/wrp.h index 4fbd1b1e0..4e8e7028f 100644 --- a/src/st/wrp/wrp.h +++ b/src/st/wrp/wrp.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include #define OVL_EXPORT(x) WRP_##x diff --git a/src/st/wrp_psp/blit_char.c b/src/st/wrp_psp/blit_char.c index cc5ef3e94..5399d7be9 100644 --- a/src/st/wrp_psp/blit_char.c +++ b/src/st/wrp_psp/blit_char.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" // psp unique? diff --git a/src/st/wrp_psp/bss.c b/src/st/wrp_psp/bss.c index 5b3ca6097..28b517bc1 100644 --- a/src/st/wrp_psp/bss.c +++ b/src/st/wrp_psp/bss.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include // warp.c diff --git a/src/st/wrp_psp/collision.c b/src/st/wrp_psp/collision.c index 52e30a76f..cbaf8f479 100644 --- a/src/st/wrp_psp/collision.c +++ b/src/st/wrp_psp/collision.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" INCLUDE_ASM("st/wrp_psp/psp/wrp_psp/collision", HitDetection); diff --git a/src/st/wrp_psp/create_entity.c b/src/st/wrp_psp/create_entity.c index 0f3c2e4c6..e03c229c4 100644 --- a/src/st/wrp_psp/create_entity.c +++ b/src/st/wrp_psp/create_entity.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" static u16* g_LayoutObjHorizontal; diff --git a/src/st/wrp_psp/e_collect.c b/src/st/wrp_psp/e_collect.c index 92a25fce2..9165ccce0 100644 --- a/src/st/wrp_psp/e_collect.c +++ b/src/st/wrp_psp/e_collect.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" #include diff --git a/src/st/wrp_psp/e_misc.c b/src/st/wrp_psp/e_misc.c index f1b5e0af4..5156105bd 100644 --- a/src/st/wrp_psp/e_misc.c +++ b/src/st/wrp_psp/e_misc.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" extern u16 D_80180608[]; diff --git a/src/st/wrp_psp/e_particles_data.c b/src/st/wrp_psp/e_particles_data.c index 756f889ca..6d2938a39 100644 --- a/src/st/wrp_psp/e_particles_data.c +++ b/src/st/wrp_psp/e_particles_data.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" u16 g_ESoulStealOrbAngles[] = { diff --git a/src/st/wrp_psp/e_particles_maria1.c b/src/st/wrp_psp/e_particles_maria1.c index 16976be2d..6855a29c3 100644 --- a/src/st/wrp_psp/e_particles_maria1.c +++ b/src/st/wrp_psp/e_particles_maria1.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" extern u16 g_ESoulStealOrbAngles[]; diff --git a/src/st/wrp_psp/e_particles_maria2.c b/src/st/wrp_psp/e_particles_maria2.c index e44678c30..f0b6729ce 100644 --- a/src/st/wrp_psp/e_particles_maria2.c +++ b/src/st/wrp_psp/e_particles_maria2.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" extern u16 g_ESoulStealOrbAngles[]; diff --git a/src/st/wrp_psp/e_stage_name.c b/src/st/wrp_psp/e_stage_name.c index b6aa1bb42..8a0435df2 100644 --- a/src/st/wrp_psp/e_stage_name.c +++ b/src/st/wrp_psp/e_stage_name.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" INCLUDE_ASM("st/wrp_psp/psp/wrp_psp/e_stage_name", EntityStageNamePopup); diff --git a/src/st/wrp_psp/prim_helpers.c b/src/st/wrp_psp/prim_helpers.c index e8a33ed01..226e65ece 100644 --- a/src/st/wrp_psp/prim_helpers.c +++ b/src/st/wrp_psp/prim_helpers.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" #include "../prim_helpers.h" diff --git a/src/st/wrp_psp/st_init_wrp.c b/src/st/wrp_psp/st_init_wrp.c index f90341d98..ea3ebac07 100644 --- a/src/st/wrp_psp/st_init_wrp.c +++ b/src/st/wrp_psp/st_init_wrp.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" // entity table to allocate new entities diff --git a/src/st/wrp_psp/stage_name_new.c b/src/st/wrp_psp/stage_name_new.c index 1754fca7c..36c57ec8d 100644 --- a/src/st/wrp_psp/stage_name_new.c +++ b/src/st/wrp_psp/stage_name_new.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" void func_8928694(s32, void*); diff --git a/src/st/wrp_psp/wrp_data_142E0.c b/src/st/wrp_psp/wrp_data_142E0.c index 9223a9bdb..d21eafbd1 100644 --- a/src/st/wrp_psp/wrp_data_142E0.c +++ b/src/st/wrp_psp/wrp_data_142E0.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" void HitDetection(void); diff --git a/src/st/wrp_psp/wrp_data_F010.c b/src/st/wrp_psp/wrp_data_F010.c index 2e3d1008c..74e6507a9 100644 --- a/src/st/wrp_psp/wrp_data_F010.c +++ b/src/st/wrp_psp/wrp_data_F010.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" u16 unk15_rot[] = { diff --git a/src/st/wrp_psp/wrp_data_F740.c b/src/st/wrp_psp/wrp_data_F740.c index 2caea65e7..a7a987a67 100644 --- a/src/st/wrp_psp/wrp_data_F740.c +++ b/src/st/wrp_psp/wrp_data_F740.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" extern void* D_801801B8[]; diff --git a/src/st/wrp_psp/wrp_data_F7B0.c b/src/st/wrp_psp/wrp_data_F7B0.c index 26e1b39da..16df14be0 100644 --- a/src/st/wrp_psp/wrp_data_F7B0.c +++ b/src/st/wrp_psp/wrp_data_F7B0.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" u16 g_eRedDoorTiles[][8] = { diff --git a/src/st/wrp_psp/wrp_data_F810.c b/src/st/wrp_psp/wrp_data_F810.c index b14b7d447..56dc45542 100644 --- a/src/st/wrp_psp/wrp_data_F810.c +++ b/src/st/wrp_psp/wrp_data_F810.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "../wrp/wrp.h" u16 g_eBreakableInit[] = { diff --git a/src/weapon/shared.h b/src/weapon/shared.h index da54132d5..69725308b 100644 --- a/src/weapon/shared.h +++ b/src/weapon/shared.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include "weapon_private.h" #include "../destroy_entity.h" diff --git a/src/weapon/w_000.c b/src/weapon/w_000.c index 5fd79f065..615c69e0b 100644 --- a/src/weapon/w_000.c +++ b/src/weapon/w_000.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #0. Used by weapons: // Tyrfing, Namakura, Gladius, Scimitar, Cutlass, Saber, Falchion, Broadsword, // Bekatowa, Damascus sword, Hunter sword, Bastard sword, Talwar, Sword of diff --git a/src/weapon/w_001.c b/src/weapon/w_001.c index 6a8b4931d..34a46c326 100644 --- a/src/weapon/w_001.c +++ b/src/weapon/w_001.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #1. Used by weapons: // Knuckle duster, Jewel knuckles, Iron Fist, Fist of Tulkas, Unknown#186, // Unknown#187, Unknown#188 diff --git a/src/weapon/w_002.c b/src/weapon/w_002.c index 02b3cead1..f24e4ff9e 100644 --- a/src/weapon/w_002.c +++ b/src/weapon/w_002.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #2. Used by weapons: // Mace diff --git a/src/weapon/w_003.c b/src/weapon/w_003.c index f2da26329..6b61c484e 100644 --- a/src/weapon/w_003.c +++ b/src/weapon/w_003.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #3. Used by weapons: // Morningstar #include "weapon_private.h" diff --git a/src/weapon/w_004.c b/src/weapon/w_004.c index 7270dd91f..d633728c4 100644 --- a/src/weapon/w_004.c +++ b/src/weapon/w_004.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #4. Used by weapons: // Holy rod, Unknown#170 #include "weapon_private.h" diff --git a/src/weapon/w_005.c b/src/weapon/w_005.c index a4fdfb40e..aef9ef471 100644 --- a/src/weapon/w_005.c +++ b/src/weapon/w_005.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #5. Used by weapons: // Star flail, Unknown#171 #include "weapon_private.h" diff --git a/src/weapon/w_006.c b/src/weapon/w_006.c index a3819009c..bb1afd0ef 100644 --- a/src/weapon/w_006.c +++ b/src/weapon/w_006.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #6. Used by weapons: // Moon rod, Unknown#172 #define FUNC_04_VOID diff --git a/src/weapon/w_007.c b/src/weapon/w_007.c index 39a0797f6..64cbd1571 100644 --- a/src/weapon/w_007.c +++ b/src/weapon/w_007.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #7. Used by weapons: // Shield rod, Unknown#173 #define FUNC_04_VOID diff --git a/src/weapon/w_008.c b/src/weapon/w_008.c index 1d05fcc00..7530dde0f 100644 --- a/src/weapon/w_008.c +++ b/src/weapon/w_008.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #8. Used by weapons: // Leather shield, Unknown#203 #define SHIELDSPELL_S32 diff --git a/src/weapon/w_009.c b/src/weapon/w_009.c index 0587c4d13..3eb54509c 100644 --- a/src/weapon/w_009.c +++ b/src/weapon/w_009.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #9. Used by weapons: // Knight shield, Unknown#204 #include "weapon_private.h" diff --git a/src/weapon/w_010.c b/src/weapon/w_010.c index 3c4fb4c7a..ed4b5601d 100644 --- a/src/weapon/w_010.c +++ b/src/weapon/w_010.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #10. Used by weapons: // Iron shield, Unknown#205 #include "weapon_private.h" diff --git a/src/weapon/w_011.c b/src/weapon/w_011.c index e03bccedc..8d98045be 100644 --- a/src/weapon/w_011.c +++ b/src/weapon/w_011.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #11. Used by weapons: // AxeLord shield, Unknown#206 #include "weapon_private.h" diff --git a/src/weapon/w_012.c b/src/weapon/w_012.c index 10ad28513..1dcea1529 100644 --- a/src/weapon/w_012.c +++ b/src/weapon/w_012.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #12. Used by weapons: // Chakram, Vorpal blade, Crissaegrim #include "weapon_private.h" diff --git a/src/weapon/w_013.c b/src/weapon/w_013.c index bd7881c24..b658622ff 100644 --- a/src/weapon/w_013.c +++ b/src/weapon/w_013.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #13. Used by weapons: // Heaven sword, Unknown#202 // #202 seems to be the special attack with two heaven swords. diff --git a/src/weapon/w_014.c b/src/weapon/w_014.c index 620bc1d31..b105508a7 100644 --- a/src/weapon/w_014.c +++ b/src/weapon/w_014.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #14. Used by weapons: // Runesword #include "weapon_private.h" diff --git a/src/weapon/w_015.c b/src/weapon/w_015.c index 0ccb9f902..0d54fa011 100644 --- a/src/weapon/w_015.c +++ b/src/weapon/w_015.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #15. Used by weapons: // Shuriken, Cross shuriken, Buffalo star, Flame star, TNT #include "weapon_private.h" diff --git a/src/weapon/w_016.c b/src/weapon/w_016.c index 9e656803f..823e60d2e 100644 --- a/src/weapon/w_016.c +++ b/src/weapon/w_016.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #16. Used by weapons: // Bwaka knife, Boomerang, Javelin, Fire boomerang, Iron ball #include "weapon_private.h" diff --git a/src/weapon/w_017.c b/src/weapon/w_017.c index af13de1eb..023aa3be8 100644 --- a/src/weapon/w_017.c +++ b/src/weapon/w_017.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #17. Used by weapons: // Pentagram, Bat Pentagram #include "weapon_private.h" diff --git a/src/weapon/w_018.c b/src/weapon/w_018.c index 31e0f09fe..91838d39e 100644 --- a/src/weapon/w_018.c +++ b/src/weapon/w_018.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #18. Used by weapons: // Power of Sire #include "weapon_private.h" diff --git a/src/weapon/w_019.c b/src/weapon/w_019.c index d6708310f..ea7d3f412 100644 --- a/src/weapon/w_019.c +++ b/src/weapon/w_019.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #19. Used by weapons: // Neutron bomb #include "weapon_private.h" diff --git a/src/weapon/w_020.c b/src/weapon/w_020.c index 61295a7ef..9c50aefd7 100644 --- a/src/weapon/w_020.c +++ b/src/weapon/w_020.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #20. Used by weapons: // Karma Coin #include "weapon_private.h" diff --git a/src/weapon/w_021.c b/src/weapon/w_021.c index d1fdf7937..82c9352ea 100644 --- a/src/weapon/w_021.c +++ b/src/weapon/w_021.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #21. Used by weapons: // Orange, Apple, Banana, Grapes, Strawberry, Pineapple, Peanuts, Toadstool, // Shiitake, Cheesecake, Shortcake, Tart, Parfait, Pudding, Ice cream, diff --git a/src/weapon/w_022.c b/src/weapon/w_022.c index 906b17bd0..30455daec 100644 --- a/src/weapon/w_022.c +++ b/src/weapon/w_022.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #22. Used by weapons: // Magic Missile #include "weapon_private.h" diff --git a/src/weapon/w_023.c b/src/weapon/w_023.c index 76a26a4e9..8a5fdaa40 100644 --- a/src/weapon/w_023.c +++ b/src/weapon/w_023.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #23. Used by weapons: // Herald shield, Unknown#207 #include "weapon_private.h" diff --git a/src/weapon/w_024.c b/src/weapon/w_024.c index 3f8c78321..6af86131a 100644 --- a/src/weapon/w_024.c +++ b/src/weapon/w_024.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #24. Used by weapons: // Dark shield, Unknown#208 #include "weapon_private.h" diff --git a/src/weapon/w_025.c b/src/weapon/w_025.c index b1a11d086..7f422842d 100644 --- a/src/weapon/w_025.c +++ b/src/weapon/w_025.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #25. Used by weapons: // Goddess shield, Unknown#209 #include "weapon_private.h" diff --git a/src/weapon/w_026.c b/src/weapon/w_026.c index 0a2b25338..d24f19e5c 100644 --- a/src/weapon/w_026.c +++ b/src/weapon/w_026.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #26. Used by weapons: // Shaman shield, Unknown#210 #include "weapon_private.h" diff --git a/src/weapon/w_027.c b/src/weapon/w_027.c index 507ed4040..22b006a6f 100644 --- a/src/weapon/w_027.c +++ b/src/weapon/w_027.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #27. Used by weapons: // Medusa shield, Unknown#211 #include "weapon_private.h" diff --git a/src/weapon/w_028.c b/src/weapon/w_028.c index 5dcad8daa..9c77babb7 100644 --- a/src/weapon/w_028.c +++ b/src/weapon/w_028.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #28. Used by weapons: // Skull shield, Unknown#212 #include "weapon_private.h" diff --git a/src/weapon/w_029.c b/src/weapon/w_029.c index 10be221bb..bb882a8e4 100644 --- a/src/weapon/w_029.c +++ b/src/weapon/w_029.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #29. Used by weapons: // Fire shield, Unknown#213 #include "weapon_private.h" diff --git a/src/weapon/w_030.c b/src/weapon/w_030.c index 4d017ed53..f23843511 100644 --- a/src/weapon/w_030.c +++ b/src/weapon/w_030.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #30. Used by weapons: // Sword of Dawn, Unknown#177 #include "weapon_private.h" diff --git a/src/weapon/w_031.c b/src/weapon/w_031.c index da5ebfbd6..9efcaddc3 100644 --- a/src/weapon/w_031.c +++ b/src/weapon/w_031.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #31. Used by weapons: // Basilard, Unknown#174 #include "weapon_private.h" diff --git a/src/weapon/w_032.c b/src/weapon/w_032.c index 0bf3d6bb8..26dda55ad 100644 --- a/src/weapon/w_032.c +++ b/src/weapon/w_032.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #32. Used by weapons: // Combat knife, Unknown#175 #include "weapon_private.h" diff --git a/src/weapon/w_033.c b/src/weapon/w_033.c index 4de6dc23d..7d697b4c5 100644 --- a/src/weapon/w_033.c +++ b/src/weapon/w_033.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #33. Used by weapons: // Nunchaku #include "weapon_private.h" diff --git a/src/weapon/w_034.c b/src/weapon/w_034.c index c4ba2d656..ee016d91b 100644 --- a/src/weapon/w_034.c +++ b/src/weapon/w_034.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #34. Used by weapons: // Shotel, Unknown#176 #include "weapon_private.h" diff --git a/src/weapon/w_035.c b/src/weapon/w_035.c index 8f36a5f89..9dec68bfd 100644 --- a/src/weapon/w_035.c +++ b/src/weapon/w_035.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #35. Used by weapons: // Red Rust #include "weapon_private.h" diff --git a/src/weapon/w_036.c b/src/weapon/w_036.c index afbbd35bd..c9f8c1386 100644 --- a/src/weapon/w_036.c +++ b/src/weapon/w_036.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #36. Used by weapons: // Takemitsu #include "weapon_private.h" diff --git a/src/weapon/w_037.c b/src/weapon/w_037.c index 27be168d1..d1dc54df7 100644 --- a/src/weapon/w_037.c +++ b/src/weapon/w_037.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #37. Used by weapons: // Short sword, Jewel sword, Stone sword, Unknown#198 #include "weapon_private.h" diff --git a/src/weapon/w_038.c b/src/weapon/w_038.c index 6c51f46f0..103a84fb7 100644 --- a/src/weapon/w_038.c +++ b/src/weapon/w_038.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #38. Used by weapons: // Rapier, Unknown#191 #include "weapon_private.h" diff --git a/src/weapon/w_039.c b/src/weapon/w_039.c index 3422bc474..37815055e 100644 --- a/src/weapon/w_039.c +++ b/src/weapon/w_039.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #39. Used by weapons: // Were Bane, Unknown#190 #include "weapon_private.h" diff --git a/src/weapon/w_040.c b/src/weapon/w_040.c index 48028df1e..33d56cfb3 100644 --- a/src/weapon/w_040.c +++ b/src/weapon/w_040.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #40. Used by weapons: // Monster vial 1 #include "weapon_private.h" diff --git a/src/weapon/w_041.c b/src/weapon/w_041.c index 855d1a9cd..4d3a318eb 100644 --- a/src/weapon/w_041.c +++ b/src/weapon/w_041.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #41. Used by weapons: // Monster vial 2 #include "weapon_private.h" diff --git a/src/weapon/w_042.c b/src/weapon/w_042.c index 6cf8d9025..445fd828e 100644 --- a/src/weapon/w_042.c +++ b/src/weapon/w_042.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #42. Used by weapons: // Monster vial 3 #include "weapon_private.h" diff --git a/src/weapon/w_043.c b/src/weapon/w_043.c index 0580b4a29..4d9f6a81d 100644 --- a/src/weapon/w_043.c +++ b/src/weapon/w_043.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #43. Used by weapons: // Alucard sword, Sword Familiar, Alucart sword, Unknown#197 #include "weapon_private.h" diff --git a/src/weapon/w_044.c b/src/weapon/w_044.c index 2e8dd50e5..8236861cb 100644 --- a/src/weapon/w_044.c +++ b/src/weapon/w_044.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #44. Used by weapons: // Heart Refresh #include "weapon_private.h" diff --git a/src/weapon/w_045.c b/src/weapon/w_045.c index 85bf1c9d1..21e9b503f 100644 --- a/src/weapon/w_045.c +++ b/src/weapon/w_045.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #45. Used by weapons: // Unknown#216 #define FUNC_0C_S32 diff --git a/src/weapon/w_046.c b/src/weapon/w_046.c index a8ee6f577..8d43305ed 100644 --- a/src/weapon/w_046.c +++ b/src/weapon/w_046.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #46. Used by weapons: // Holbein dagger, Blue knuckles #include "weapon_private.h" diff --git a/src/weapon/w_047.c b/src/weapon/w_047.c index 67334d865..a4abe6f4e 100644 --- a/src/weapon/w_047.c +++ b/src/weapon/w_047.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #47. Used by weapons: // Dynamite #include "weapon_private.h" diff --git a/src/weapon/w_048.c b/src/weapon/w_048.c index 5afb43846..4900bbb4b 100644 --- a/src/weapon/w_048.c +++ b/src/weapon/w_048.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #48. Used by weapons: // Thunderbrand, Unknown#178 #include "weapon_private.h" diff --git a/src/weapon/w_049.c b/src/weapon/w_049.c index 9d8cad5c9..d5c5f1082 100644 --- a/src/weapon/w_049.c +++ b/src/weapon/w_049.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #49. Used by weapons: // Firebrand, Marsil, Unknown#179, Unknown#180 #include "weapon_private.h" diff --git a/src/weapon/w_050.c b/src/weapon/w_050.c index c907629b0..767cc6aa2 100644 --- a/src/weapon/w_050.c +++ b/src/weapon/w_050.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #50. Used by weapons: // Icebrand, Unknown#181, Unknown#199, Unknown#200, Unknown#201 #include "weapon_private.h" diff --git a/src/weapon/w_051.c b/src/weapon/w_051.c index 34096faa6..9ab7a84b4 100644 --- a/src/weapon/w_051.c +++ b/src/weapon/w_051.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #51. Used by weapons: // Estoc, Claymore, Flamberge, Zwei hander, Obsidian sword, Great Sword, // Unknown#182, Unknown#183, Unknown#184, Unknown#185 diff --git a/src/weapon/w_052.c b/src/weapon/w_052.c index e71bc25eb..693e4f85b 100644 --- a/src/weapon/w_052.c +++ b/src/weapon/w_052.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #52. Used by weapons: // Alucard shield, Unknown#214 #include "weapon_private.h" diff --git a/src/weapon/w_053.c b/src/weapon/w_053.c index bdba5cc60..ab0d65c4e 100644 --- a/src/weapon/w_053.c +++ b/src/weapon/w_053.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #53. Used by weapons: // Katana, Osafune katana, Masamune, Yasutsuna, Unknown#189, Unknown#192, // Unknown#193, Unknown#194 diff --git a/src/weapon/w_053_056.h b/src/weapon/w_053_056.h index bd86a9315..0a0a941cc 100644 --- a/src/weapon/w_053_056.h +++ b/src/weapon/w_053_056.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #include // A struct which describes variations of Weapon #53 and #56 diff --git a/src/weapon/w_054.c b/src/weapon/w_054.c index e6ee64f80..f3b9b3ea1 100644 --- a/src/weapon/w_054.c +++ b/src/weapon/w_054.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #54. Used by weapons: // Gurthang, Unknown#195 #include "weapon_private.h" diff --git a/src/weapon/w_055.c b/src/weapon/w_055.c index ac4e9adf4..302ce3ca4 100644 --- a/src/weapon/w_055.c +++ b/src/weapon/w_055.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #55. Used by weapons: // Holy sword, Unknown#196 #include "weapon_private.h" diff --git a/src/weapon/w_056.c b/src/weapon/w_056.c index ab52bf952..435edce49 100644 --- a/src/weapon/w_056.c +++ b/src/weapon/w_056.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #56. Used by weapons: // Muramasa #include "weapon_private.h" diff --git a/src/weapon/w_057.c b/src/weapon/w_057.c index 320390999..31be741d7 100644 --- a/src/weapon/w_057.c +++ b/src/weapon/w_057.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #57. Used by weapons: // Mablung Sword #include "weapon_private.h" diff --git a/src/weapon/w_058.c b/src/weapon/w_058.c index 7aad6ea00..4981e1b50 100644 --- a/src/weapon/w_058.c +++ b/src/weapon/w_058.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later // Weapon ID #58. Used by weapons: // Alucart shield, Unknown#215 #include "weapon_private.h" diff --git a/src/weapon/weapon_private.h b/src/weapon/weapon_private.h index 0f5a31c84..2adc79e42 100644 --- a/src/weapon/weapon_private.h +++ b/src/weapon/weapon_private.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later #ifndef WEAPON_PRIVATE_H #define WEAPON_PRIVATE_H diff --git a/tools/lint-license.py b/tools/lint-license.py new file mode 100644 index 000000000..0542d3ea1 --- /dev/null +++ b/tools/lint-license.py @@ -0,0 +1,29 @@ +import sys + + +def add_spdx_license(file_path, license): # AGPL-3.0-or-later + spdx_line = f"// SPDX-License-Identifier: {license}" + try: + with open(file_path, "r") as file: + lines = file.readlines() + if lines and lines[0].strip() == spdx_line: + return + with open(file_path, "w") as file: + file.write(spdx_line + "\n") + file.writelines(lines) + except FileNotFoundError: + print(f"the file {file_path} does not exist") + except Exception as e: + print(f"an error occurred: {e}") + + +if __name__ == "__main__": + if len(sys.argv) != 3: + print("usage: python lint-license.py ") + sys.exit(1) + file_names = [sys.argv[1]] + if file_names[0] == "-": + file_names = sys.stdin.readlines() + license = sys.argv[2] + for file_name in file_names: + add_spdx_license(file_name.strip(), license)