diff --git a/generate_assets.py b/generate_assets.py
index de1b6c5..4fe0b4a 100644
--- a/generate_assets.py
+++ b/generate_assets.py
@@ -5,6 +5,8 @@ from pathlib import Path
# Simple Script to generate/update Assets
+license_text = "/**\n* This file is part of RenderD7\n* Copyright (C) 2021-2024 NPI-D7, tobid7\n*\n* This program is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program. If not, see .\n*/\n\n"
+
def file2array(path, custom_incluse_path):
print(path)
cip = len(custom_incluse_path)
@@ -16,6 +18,8 @@ def file2array(path, custom_incluse_path):
buf = filei.read()
filei.close()
fs = open(name + '.cpp', 'w')
+ fs.write(license_text)
+ fs.write("// THIS FILE WAS GENERATED BY generate_assets.py!!!\n\n")
fs.write('#include <'+ sip + name + '.hpp>\n\n')
fs.write('// clang-format off\n')
fs.write('unsigned char ' + name + '[] = {\n')
@@ -26,6 +30,8 @@ def file2array(path, custom_incluse_path):
fs.write('size_t ' + name + '_size = ' + hex(len(buf)) + ';')
fs.close()
fh = open(name + '.hpp', 'w')
+ fh.write(license_text)
+ fh.write("// THIS FILE WAS GENERATED BY generate_assets.py!!!\n\n")
fh.write('#pragma once\n\n')
fh.write('#include \n\n')
fh.write('extern unsigned char ' + name + '[];\n')
diff --git a/include/rd7.hpp b/include/rd7.hpp
index 1d072fc..82f7936 100644
--- a/include/rd7.hpp
+++ b/include/rd7.hpp
@@ -1,3 +1,21 @@
+/**
+ * This file is part of RenderD7
+ * Copyright (C) 2021-2024 NPI-D7, tobid7
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#pragma once
#include
diff --git a/include/renderd7/Allocator.hpp b/include/renderd7/Allocator.hpp
index b6bf5e9..95ad5c9 100644
--- a/include/renderd7/Allocator.hpp
+++ b/include/renderd7/Allocator.hpp
@@ -1,3 +1,21 @@
+/**
+ * This file is part of RenderD7
+ * Copyright (C) 2021-2024 NPI-D7, tobid7
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#pragma once
#include <3ds.h>
diff --git a/include/renderd7/Color.hpp b/include/renderd7/Color.hpp
index 8b0f262..bb34fc6 100644
--- a/include/renderd7/Color.hpp
+++ b/include/renderd7/Color.hpp
@@ -1,3 +1,21 @@
+/**
+ * This file is part of RenderD7
+ * Copyright (C) 2021-2024 NPI-D7, tobid7
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#pragma once
#include
@@ -8,7 +26,7 @@
#define UNPACK_BGRA(col) (uint8_t)(col >> 8), (col >> 16), (col >> 24), (col)
inline uint32_t RGBA8(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255) {
-#define ISIMPLEPAK(x, y) (((x) & 0xff) << y)
+#define ISIMPLEPAK(x, y) (((x)&0xff) << y)
return (ISIMPLEPAK(r, 0) | ISIMPLEPAK(g, 8) | ISIMPLEPAK(b, 16) |
ISIMPLEPAK(a, 24));
}
diff --git a/include/renderd7/DrawV2.hpp b/include/renderd7/DrawV2.hpp
index c10f1b3..d64f8fa 100644
--- a/include/renderd7/DrawV2.hpp
+++ b/include/renderd7/DrawV2.hpp
@@ -1,3 +1,21 @@
+/**
+ * This file is part of RenderD7
+ * Copyright (C) 2021-2024 NPI-D7, tobid7
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#pragma once
#include
diff --git a/include/renderd7/Error.hpp b/include/renderd7/Error.hpp
index cbdb464..285603d 100644
--- a/include/renderd7/Error.hpp
+++ b/include/renderd7/Error.hpp
@@ -1,3 +1,21 @@
+/**
+ * This file is part of RenderD7
+ * Copyright (C) 2021-2024 NPI-D7, tobid7
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#pragma once
#include
diff --git a/include/renderd7/FileSystem.hpp b/include/renderd7/FileSystem.hpp
index 4029705..7809cfb 100644
--- a/include/renderd7/FileSystem.hpp
+++ b/include/renderd7/FileSystem.hpp
@@ -1,3 +1,21 @@
+/**
+ * This file is part of RenderD7
+ * Copyright (C) 2021-2024 NPI-D7, tobid7
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#pragma once
#include
#include
diff --git a/include/renderd7/FunctionTrace.hpp b/include/renderd7/FunctionTrace.hpp
index 7293163..5f96b13 100644
--- a/include/renderd7/FunctionTrace.hpp
+++ b/include/renderd7/FunctionTrace.hpp
@@ -1,3 +1,21 @@
+/**
+ * This file is part of RenderD7
+ * Copyright (C) 2021-2024 NPI-D7, tobid7
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#pragma once
// Base includes
#include