diff --git a/Makefile b/Makefile index 7810e07..8f7f13f 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,8 @@ +# +# Copyright (c) 2017 The Altra64 project contributors +# See LICENSE file in the project root for full license information. +# + ROOTDIR = $(N64_INST) GCCN64PREFIX = $(ROOTDIR)/bin/mips64-elf- CHKSUM64PATH = $(ROOTDIR)/bin/chksum64 diff --git a/build.cmd b/build.cmd index e627d01..7ece893 100644 --- a/build.cmd +++ b/build.cmd @@ -1,3 +1,8 @@ +:: +:: Copyright (c) 2017 The Altra64 project contributors +:: See LICENSE file in the project root for full license information. +:: + @echo off set "SystemPath=%SystemRoot%\\System32" IF EXIST %WINDIR%\\sysnative\\reg.exe ( diff --git a/inc/debug.h b/inc/debug.h index 5ae7c58..5cde5c6 100644 --- a/inc/debug.h +++ b/inc/debug.h @@ -1,3 +1,7 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// See LICENSE file in the project root for full license information. +// #ifdef DEBUG #define TRACEF(disp, text, ...) dbg_printf(disp, text, __VA_ARGS__); diff --git a/inc/disk.h b/inc/disk.h index 247a0d1..5c0b747 100644 --- a/inc/disk.h +++ b/inc/disk.h @@ -1,9 +1,8 @@ -/* - * File: disk.h - * Author: krik - * - * Created on 2 Èþíü 2011 ã., 4:07 - */ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2011 KRIK +// See LICENSE file in the project root for full license information. +// #ifndef _DISK_H #define _DISK_H diff --git a/inc/errors.h b/inc/errors.h index 1ce6d90..4c9d23c 100644 --- a/inc/errors.h +++ b/inc/errors.h @@ -1,9 +1,8 @@ -/* - * File: errors.h - * Author: KRIK - * - * Created on 14 Ìàé 2011 ã., 7:17 - */ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2011 KRIK +// See LICENSE file in the project root for full license information. +// #ifndef _ERRORS_H #define _ERRORS_H diff --git a/inc/everdrive.h b/inc/everdrive.h index f3f0e31..79c847b 100644 --- a/inc/everdrive.h +++ b/inc/everdrive.h @@ -1,9 +1,8 @@ -/* - * File: everdrive.h - * Author: KRIK - * - * Created on 22 Àïðåëü 2011 ã., 20:46 - */ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2011 KRIK +// See LICENSE file in the project root for full license information. +// #ifndef _EVERDRIVE_H #define _EVERDRIVE_H diff --git a/inc/fat.h b/inc/fat.h index c8e1522..86bd07e 100644 --- a/inc/fat.h +++ b/inc/fat.h @@ -1,9 +1,8 @@ -/* - * File: fat.h - * Author: krik - * - * Created on 22 Ìàé 2011 ã., 1:06 - */ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2011 KRIK +// See LICENSE file in the project root for full license information. +// #ifndef _FAT_H #define _FAT_H diff --git a/inc/font_patch/font.h b/inc/font_patch/font.h index 3a18596..4543ce6 100644 --- a/inc/font_patch/font.h +++ b/inc/font_patch/font.h @@ -1,3 +1,8 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// /** * @file font.h diff --git a/inc/hashtable.h b/inc/hashtable.h index c31518c..b16c723 100644 --- a/inc/hashtable.h +++ b/inc/hashtable.h @@ -1,3 +1,9 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2011 @marekweb https://github.com/marekweb/datastructs-c +// See LICENSE file in the project root for full license information. +// + typedef struct hashtable hashtable; void hashtable_destroy(hashtable *t); typedef struct hashtable_entry hashtable_entry; diff --git a/inc/main.h b/inc/main.h index 3cb399f..40791be 100644 --- a/inc/main.h +++ b/inc/main.h @@ -1,3 +1,9 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// + //protos maybe some aren't necessary any longer void strhicase(u8 *str, u8 len); void PI_DMAWait(void); diff --git a/inc/mem.h b/inc/mem.h index 89f0a28..ba3d275 100644 --- a/inc/mem.h +++ b/inc/mem.h @@ -1,9 +1,8 @@ -/* - * File: mem.h - * Author: krik - * - * Created on 2 Èþíü 2011 ã., 4:07 - */ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2011 KRIK +// See LICENSE file in the project root for full license information. +// #ifndef _MEM_H #define _MEM_H diff --git a/inc/mp3.h b/inc/mp3.h index 2a26afe..9db172b 100644 --- a/inc/mp3.h +++ b/inc/mp3.h @@ -1,3 +1,8 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// #ifndef _MP3_H_ #define _MP3_H_ diff --git a/inc/rom.h b/inc/rom.h index dff9978..db334e6 100644 --- a/inc/rom.h +++ b/inc/rom.h @@ -1,3 +1,8 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// /* * diff --git a/inc/sound.h b/inc/sound.h index 4edf08b..a60002f 100644 --- a/inc/sound.h +++ b/inc/sound.h @@ -1,3 +1,8 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// See LICENSE file in the project root for full license information. +// + void sndInit(void); void sndPlayBGM(char* filename); void sndStopAll(void); diff --git a/inc/sram.h b/inc/sram.h index 913a238..4b82e5f 100644 --- a/inc/sram.h +++ b/inc/sram.h @@ -1,4 +1,9 @@ -//sram.h +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// + #include #include #include "types.h" diff --git a/inc/strlib.h b/inc/strlib.h index e3ed963..0b4b6f3 100644 --- a/inc/strlib.h +++ b/inc/strlib.h @@ -1,3 +1,9 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// + #ifndef STRLIB_H_ enum strtrim_mode_t { STRLIB_MODE_ALL = 0, diff --git a/inc/sys.h b/inc/sys.h index 892313c..3fab2eb 100644 --- a/inc/sys.h +++ b/inc/sys.h @@ -1,9 +1,8 @@ -/* - * File: tools.h - * Author: KRIK - * - * Created on 16 Àïðåëü 2011 ã., 2:30 - */ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2011 KRIK +// See LICENSE file in the project root for full license information. +// #ifndef _SYS_H #define _SYS_H diff --git a/inc/types.h b/inc/types.h index 625c877..9668fa6 100644 --- a/inc/types.h +++ b/inc/types.h @@ -1,9 +1,8 @@ -/* - * File: types.h - * Author: KRIK - * - * Created on 16 Àïðåëü 2011 ã., 2:24 - */ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2011 KRIK +// See LICENSE file in the project root for full license information. +// #include diff --git a/inc/usb.h b/inc/usb.h index 3683941..5eac290 100644 --- a/inc/usb.h +++ b/inc/usb.h @@ -1,9 +1,8 @@ -/* - * File: fifo.h - * Author: KRIK - * - * Created on 22 Àïðåëü 2011 ã., 20:46 - */ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2011 KRIK +// See LICENSE file in the project root for full license information. +// #ifndef _FIFO_H #define _FIFO_H diff --git a/inc/utils.h b/inc/utils.h index 522ef95..ba248be 100644 --- a/inc/utils.h +++ b/inc/utils.h @@ -1,3 +1,9 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// + // rom.h // rom tools - header inspect #include diff --git a/src/disk.c b/src/disk.c index b3b35df..2c84dc7 100644 --- a/src/disk.c +++ b/src/disk.c @@ -1,5 +1,8 @@ - - +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// #include diff --git a/src/everdrive.c b/src/everdrive.c index 7b62c7c..6520fb6 100644 --- a/src/everdrive.c +++ b/src/everdrive.c @@ -1,5 +1,10 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// -#include "types.h" +include "types.h" #include "everdrive.h" #include #include diff --git a/src/fat.c b/src/fat.c index 92e65cf..4fa247b 100644 --- a/src/fat.c +++ b/src/fat.c @@ -1,4 +1,8 @@ - +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// #include #include diff --git a/src/hashtable.c b/src/hashtable.c index d0c6697..d819b8d 100644 --- a/src/hashtable.c +++ b/src/hashtable.c @@ -1,7 +1,11 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2011 @marekweb https://github.com/marekweb/datastructs-c +// See LICENSE file in the project root for full license information. +// + /** * Hashtable implementation - * (c) 2011 @marekweb - * * Uses dynamic addressing with linear probing. */ diff --git a/src/main.c b/src/main.c index e934865..ca1d6a3 100644 --- a/src/main.c +++ b/src/main.c @@ -1,9 +1,8 @@ -/* - * ALT64 Menu v0.1.8.6 - 2013 - * a menu for the Everdrive64 - * based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod - * by saturnu - */ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// #include #include diff --git a/src/mem.c b/src/mem.c index 87ed68b..bfc27f2 100644 --- a/src/mem.c +++ b/src/mem.c @@ -1,3 +1,8 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// #include "types.h" #include "everdrive.h" diff --git a/src/mp3.c b/src/mp3.c index e5a3ad2..97a9864 100644 --- a/src/mp3.c +++ b/src/mp3.c @@ -1,3 +1,9 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// + #include #include #include diff --git a/src/rom.c b/src/rom.c index 1c30a93..0a40319 100644 --- a/src/rom.c +++ b/src/rom.c @@ -1,3 +1,9 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// + #include "sram.h" #include "everdrive.h" #include "sys.h" diff --git a/src/sound.c b/src/sound.c index 7589cc8..cd3f1e2 100644 --- a/src/sound.c +++ b/src/sound.c @@ -1,3 +1,8 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// See LICENSE file in the project root for full license information. +// + #include #include //needed for audio_get_frequency() #include "hashtable.h" diff --git a/src/sram.c b/src/sram.c index eaee972..f787407 100644 --- a/src/sram.c +++ b/src/sram.c @@ -1,3 +1,9 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// + #include #include #include diff --git a/src/strlib.c b/src/strlib.c index 91fdfc8..0ac8fa7 100644 --- a/src/strlib.c +++ b/src/strlib.c @@ -1,3 +1,9 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// + #include "strlib.h" char *strcpytrim(char *d, // destination diff --git a/src/sys.c b/src/sys.c index d1c68d0..995c643 100644 --- a/src/sys.c +++ b/src/sys.c @@ -1,3 +1,9 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// + #include #include #include diff --git a/src/usb.c b/src/usb.c index ddaee95..0c684ad 100644 --- a/src/usb.c +++ b/src/usb.c @@ -1,4 +1,8 @@ - +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// #include "everdrive.h" #include "sys.h" diff --git a/src/utils.c b/src/utils.c index 00bbd13..6427a71 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1,3 +1,9 @@ +// +// Copyright (c) 2017 The Altra64 project contributors +// Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +// See LICENSE file in the project root for full license information. +// + #include #include #include diff --git a/tools/deploy-sd.sh b/tools/deploy-sd.sh index d5e08a3..a34220d 100644 --- a/tools/deploy-sd.sh +++ b/tools/deploy-sd.sh @@ -1,3 +1,9 @@ +# +# Copyright (c) 2017 The Altra64 project contributors +# Portions (c) 2013 saturnu (Alt64) based on libdragon, Neo64Menu, ED64IO, libn64-hkz, libmikmod +# See LICENSE file in the project root for full license information. +# + #! /bin/bash sudo mount /dev/sdb1 /mnt file=/mnt/ED64/OS64.v64 diff --git a/tools/extract-firmware.cmd b/tools/extract-firmware.cmd index 72d2847..f1cf66b 100644 --- a/tools/extract-firmware.cmd +++ b/tools/extract-firmware.cmd @@ -1,3 +1,8 @@ +:: +:: Copyright (c) 2017 The Altra64 project contributors +:: See LICENSE file in the project root for full license information. +:: + @echo off cd .. set "fs=%cd%\res\filesystem\firmware" diff --git a/tools/setup-linux.sh b/tools/setup-linux.sh index 2248cda..94d71f7 100644 --- a/tools/setup-linux.sh +++ b/tools/setup-linux.sh @@ -1,3 +1,8 @@ +# +# Copyright (c) 2017 The Altra64 project contributors +# See LICENSE file in the project root for full license information. +# + #!/bin/bash # Download and install latest updates for the system [sudo req.] apt-get update