From f481401bb9e16fa6fa42ec7161d24a4cfac6f92d Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 7 May 2026 23:24:06 +0200 Subject: [PATCH] Add MIT license --- LICENSE | 21 +++++++++++++++++++++ src/lib/elf.c | 2 ++ src/lib/lib.c | 2 ++ src/lib/macho.c | 2 ++ src/lib/paths.c | 2 ++ src/lib/pe.c | 2 ++ src/main.c | 2 ++ src/r2/bin_r2unity.c | 2 ++ src/r2/core_r2unity.c | 2 ++ 9 files changed, 37 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..afdbe0a --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025-2026 pancake + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/lib/elf.c b/src/lib/elf.c index 0e68ada..eccb8e4 100644 --- a/src/lib/elf.c +++ b/src/lib/elf.c @@ -1,3 +1,5 @@ +/* r2unity - MIT - Copyright 2025-2026 - pancake */ + // Fast ELF parser for r2unity #define R_LOG_ORIGIN "r2unity.elf" #include "lib.h" diff --git a/src/lib/lib.c b/src/lib/lib.c index 5510500..56adfce 100644 --- a/src/lib/lib.c +++ b/src/lib/lib.c @@ -1,3 +1,5 @@ +/* r2unity - MIT - Copyright 2025-2026 - pancake */ + #define R_LOG_ORIGIN "r2unity.lib" #include "lib.h" diff --git a/src/lib/macho.c b/src/lib/macho.c index cf9e6ef..f14433a 100644 --- a/src/lib/macho.c +++ b/src/lib/macho.c @@ -1,3 +1,5 @@ +/* r2unity - MIT - Copyright 2025-2026 - pancake */ + // Fast Mach-O parser for r2unity #define R_LOG_ORIGIN "r2unity.macho" #include "lib.h" diff --git a/src/lib/paths.c b/src/lib/paths.c index 0e79f71..7494a25 100644 --- a/src/lib/paths.c +++ b/src/lib/paths.c @@ -1,3 +1,5 @@ +/* r2unity - MIT - Copyright 2025-2026 - pancake */ + #define R_LOG_ORIGIN "r2unity.paths" #include "lib.h" diff --git a/src/lib/pe.c b/src/lib/pe.c index 2e6a7c0..69cea04 100644 --- a/src/lib/pe.c +++ b/src/lib/pe.c @@ -1,3 +1,5 @@ +/* r2unity - MIT - Copyright 2025-2026 - pancake */ + // Minimal PE parser for r2unity (GameAssembly.dll on Windows, GameAssembly.dll on UWP). // PE .dll images are already relocated at link time (preferred image base is // concrete), so no relocation fixup is required — pointers in .data / .rdata diff --git a/src/main.c b/src/main.c index eb59bd0..222c9da 100644 --- a/src/main.c +++ b/src/main.c @@ -1,3 +1,5 @@ +/* r2unity - MIT - Copyright 2025-2026 - pancake */ + #define R_LOG_ORIGIN "r2unity" #include diff --git a/src/r2/bin_r2unity.c b/src/r2/bin_r2unity.c index e23c2bb..b2b6459 100644 --- a/src/r2/bin_r2unity.c +++ b/src/r2/bin_r2unity.c @@ -1,3 +1,5 @@ +/* r2unity - MIT - Copyright 2025-2026 - pancake */ + #define R_LOG_ORIGIN "r2unity.bin" #include diff --git a/src/r2/core_r2unity.c b/src/r2/core_r2unity.c index ab8c981..d596738 100644 --- a/src/r2/core_r2unity.c +++ b/src/r2/core_r2unity.c @@ -1,3 +1,5 @@ +/* r2unity - MIT - Copyright 2025-2026 - pancake */ + #define R_LOG_ORIGIN "r2unity" #include