diff --git a/(S)NES Mini - Lua Compiler.csproj b/(S)NES Mini - Lua Compiler.csproj
index bfcf4e1..4e94c8b 100644
--- a/(S)NES Mini - Lua Compiler.csproj
+++ b/(S)NES Mini - Lua Compiler.csproj
@@ -34,8 +34,9 @@
-
+
windows
+ macos
linux
@@ -43,7 +44,7 @@
Lib\luajit-linux and Lib\decompiler-linux are embedded as Lib/luajit and Lib/decompiler on Linux. -->
@@ -53,6 +54,10 @@
LogicalName="Lib/luajit/%(RecursiveDir)%(Filename)%(Extension)" />
+
+
@@ -64,8 +69,10 @@
All
+
+
diff --git a/Firmware/ConsoleLayout.cs b/Firmware/ConsoleLayout.cs
new file mode 100644
index 0000000..d14108c
--- /dev/null
+++ b/Firmware/ConsoleLayout.cs
@@ -0,0 +1,54 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using SNESMiniLuaCompiler.Models;
+
+namespace SNESMiniLuaCompiler.Firmware
+{
+ ///
+ /// Where a console keeps its Lua files inside its firmware, the folder the app uses for that console, and how
+ /// to recognise its files. The firmware paths are the ones of the original firmware images (the same registry
+ /// the MiniThemeStudio uses).
+ ///
+ /// The name of the console.
+ /// The folder of the console in the app.
+ /// The UI folder in the firmware.
+ /// Names a folder of this console is known by (normalised: lower case, no - _ or space).
+ /// A file only this family of consoles has, relative to the resources folder.
+ /// A file that shows the files are of a sister console, relative to the resources folder.
+ internal sealed record ConsoleLayout(
+ string DisplayName,
+ string FolderName,
+ string UiPath,
+ IReadOnlyList FolderAliases,
+ string RequiredFile,
+ string? ForbiddenFile = null)
+ {
+ private const string SnesPalette = "scripts/env/colors_usa.lua";
+
+ public static IReadOnlyList All { get; } = Enum.GetValues();
+
+ public static ConsoleLayout For(SystemModel system) => system switch
+ {
+ SystemModel.Nes => new("NES Classic Edition", "nes", "usr/share/clover-ui", ["nes"], "scripts/colors_nes.lua"),
+ SystemModel.Famicom => new("Famicom Mini", "hvc", "usr/share/clover-ui", ["hvc", "famicom"], "scripts/colors_hvc.lua", "scripts/constants.lua"),
+ SystemModel.Shonen => new("Famicom Shonen Jump 50th", "hvcj", "usr/share/ui/hvc", ["hvcj", "hvcjshonen", "shonen"], "scripts/constants.lua"),
+ SystemModel.SuperFamicom => new("Super Famicom", "shvc", "usr/share/ui/shvc", ["shvc", "superfamicom"], SnesPalette),
+ SystemModel.SnesPal => new("SNES Mini (Europe)", "snes-eur", "usr/share/ui/snes-eur", ["sneseur"], SnesPalette),
+ _ => new("SNES Mini (USA)", "snes-usa", "usr/share/ui/snes-usa", ["snesusa", "snes"], SnesPalette),
+ };
+
+ ///
+ /// Folders of a console where the UI can be read: the untouched original first, then the live one
+ /// (with hakchi, an installed theme is mounted over the live folder).
+ ///
+ public IReadOnlyList ConsolePaths => [$"/var/squashfs/{UiPath}", $"/{UiPath}"];
+
+ /// Is the name of a folder of this console (hvc, snesusa, snes-usa...)?
+ public bool MatchesFolderName(string folderName) =>
+ FolderAliases.Contains(Normalize(folderName));
+
+ private static string Normalize(string name) =>
+ new string(name.Where(c => c is not ('-' or '_' or ' ')).ToArray()).ToLowerInvariant();
+ }
+}
diff --git a/Firmware/ConsoleSsh.cs b/Firmware/ConsoleSsh.cs
new file mode 100644
index 0000000..6d6d58d
--- /dev/null
+++ b/Firmware/ConsoleSsh.cs
@@ -0,0 +1,94 @@
+using System;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.IO;
+using System.Linq;
+using System.Threading;
+using System.Threading.Tasks;
+
+namespace SNESMiniLuaCompiler.Firmware
+{
+ /// Reads the Lua files of a console over SSH (hakchi), with the ssh client of the system and tar on the console.
+ internal static class ConsoleSsh
+ {
+ /// The address of a console connected by USB (hakchi).
+ public const string UsbHost = "169.254.13.37";
+
+ public static bool IsValidHost(string host) =>
+ host.Length is > 0 and <= 253 && !host.StartsWith('-') && host.All(c => char.IsAsciiLetterOrDigit(c) || c is '.' or '-' or ':' or '_');
+
+ public static async Task DownloadLuaAsync(string host, ConsoleTarget target, CancellationToken cancellationToken)
+ {
+ ConsoleLayout layout = target.Layout;
+ if (!IsValidHost(host))
+ throw new ArgumentException("That is not a valid address.", nameof(host));
+
+ string? folder = null;
+ foreach (string candidate in layout.ConsolePaths)
+ {
+ if (await RunAsync(host, $"test -d {Quote(candidate)}", cancellationToken) == 0)
+ {
+ folder = candidate;
+ break;
+ }
+ }
+
+ if (folder is null)
+ throw new InvalidDataException($"The console at {host} has no {layout.UiPath} folder. Is it the console you picked?");
+
+ // only the Lua files travel: the UI folder also holds the images, fonts and sounds
+ using Process process = Start(host, $"cd {Quote(folder)} && tar -cf - $(find resources -type f -name '*.lua')");
+ Task error = process.StandardError.ReadToEndAsync(cancellationToken);
+ await Task.Run(() => LuaSourceReader.ExtractFromTar(process.StandardOutput.BaseStream, target, cancellationToken), cancellationToken);
+
+ // tar pads the archive after its end marker: read it, or ssh blocks writing it and never exits
+ await process.StandardOutput.BaseStream.CopyToAsync(Stream.Null, cancellationToken);
+ await process.WaitForExitAsync(cancellationToken);
+
+ if (process.ExitCode != 0)
+ throw new IOException($"The console did not send the files (ssh exit code {process.ExitCode}): {(await error).Trim()}");
+ }
+
+ private static async Task RunAsync(string host, string command, CancellationToken cancellationToken)
+ {
+ using Process process = Start(host, command);
+ Task output = process.StandardOutput.ReadToEndAsync(cancellationToken);
+ Task error = process.StandardError.ReadToEndAsync(cancellationToken);
+ await process.WaitForExitAsync(cancellationToken);
+ await Task.WhenAll(output, error);
+
+ // 255 is ssh itself failing: no route to the host, a refused login...
+ if (process.ExitCode == 255)
+ throw new IOException($"Could not connect to {host}: {error.Result.Trim()}");
+
+ return process.ExitCode;
+ }
+
+ private static Process Start(string host, string command)
+ {
+ var startInfo = new ProcessStartInfo("ssh")
+ {
+ RedirectStandardOutput = true,
+ RedirectStandardError = true,
+ UseShellExecute = false,
+ CreateNoWindow = true,
+ };
+
+ foreach (string argument in new[] { "-o", "BatchMode=yes", "-o", "ConnectTimeout=5", "-o", "StrictHostKeyChecking=accept-new", "-p", "22", $"root@{host}", command })
+ startInfo.ArgumentList.Add(argument);
+
+ try
+ {
+ return Process.Start(startInfo) ?? throw new InvalidOperationException("Could not start the ssh client.");
+ }
+ catch (Win32Exception exception)
+ {
+ throw new InvalidOperationException(
+ "The OpenSSH client (ssh) was not found. On Windows it is an optional feature (Settings > Apps > Optional features > OpenSSH Client); on Linux install openssh-client.",
+ exception);
+ }
+ }
+
+ private static string Quote(string value) => $"'{value.Replace("'", "'\"'\"'", StringComparison.Ordinal)}'";
+ }
+}
diff --git a/Firmware/ConsoleTarget.cs b/Firmware/ConsoleTarget.cs
new file mode 100644
index 0000000..947d8ae
--- /dev/null
+++ b/Firmware/ConsoleTarget.cs
@@ -0,0 +1,28 @@
+using SNESMiniLuaCompiler.Models;
+
+namespace SNESMiniLuaCompiler.Firmware
+{
+ /// One console an import tries to fill: where its files are collected, and what was found for it.
+ internal sealed class ConsoleTarget(SystemModel system, ConsoleLayout layout)
+ {
+ public ConsoleTarget(SystemModel system)
+ : this(system, ConsoleLayout.For(system))
+ {
+ }
+
+ public SystemModel System { get; } = system;
+
+ public ConsoleLayout Layout { get; } = layout;
+
+ /// The folder the Lua files are collected in until the import is known to be good.
+ public string Staging { get; } = OriginalsStore.NewStagingPath();
+
+ public ImportResult Result { get; } = new();
+
+ /// Did the source have files for this console?
+ public bool Found { get; set; }
+
+ /// Why not, when it matters (the console the user asked for).
+ public string? NotFoundMessage { get; set; }
+ }
+}
diff --git a/Firmware/ImportResult.cs b/Firmware/ImportResult.cs
new file mode 100644
index 0000000..cdf2b32
--- /dev/null
+++ b/Firmware/ImportResult.cs
@@ -0,0 +1,10 @@
+namespace SNESMiniLuaCompiler.Firmware
+{
+ /// What an import found: the Lua files it kept and the ones it skipped because they are not LuaJIT bytecode.
+ internal sealed class ImportResult
+ {
+ public int Files { get; set; }
+
+ public int NotBytecode { get; set; }
+ }
+}
diff --git a/Firmware/LuaSourceReader.cs b/Firmware/LuaSourceReader.cs
new file mode 100644
index 0000000..f1d1bb1
--- /dev/null
+++ b/Firmware/LuaSourceReader.cs
@@ -0,0 +1,256 @@
+using System;
+using System.Collections.Generic;
+using System.Formats.Tar;
+using System.IO;
+using System.IO.Compression;
+using System.Linq;
+using System.Threading;
+using DiscUtils.SquashFs;
+using DiscUtils.Streams;
+using SharpCompress.Compressors.Xz;
+using SNESMiniLuaCompiler.Models;
+
+namespace SNESMiniLuaCompiler.Firmware
+{
+ internal enum FirmwareSourceFormat
+ {
+ Unknown,
+ SquashFs,
+ Tar,
+ TarGz,
+ }
+
+ ///
+ /// Reads the consoles' Lua files (only those: no images, fonts or sounds) from a firmware file
+ /// (squashfs / .hsqs, tar, tar.gz), a folder, or the tar stream of a console.
+ ///
+ internal static class LuaSourceReader
+ {
+ private const string ResourcesPrefix = "resources/";
+
+ private static readonly SquashFileSystemReaderOptions SquashFsOptions = new()
+ {
+ GetDecompressor = (kind, _) => kind == SquashFileSystemCompressionKind.Xz
+ ? compressed => new XZStream(compressed)
+ : null!,
+ };
+
+ public static FirmwareSourceFormat Detect(string filePath)
+ {
+ using FileStream stream = File.OpenRead(filePath);
+ byte[] header = new byte[262];
+ int length = stream.ReadAtLeast(header, header.Length, throwOnEndOfStream: false);
+
+ return header.AsSpan(0, length) switch
+ {
+ [0x68, 0x73, 0x71, 0x73, ..] => FirmwareSourceFormat.SquashFs,
+ [0x1f, 0x8b, ..] => FirmwareSourceFormat.TarGz,
+ var span when span.Length >= 262 && span[257..262].SequenceEqual("ustar"u8) => FirmwareSourceFormat.Tar,
+ _ => FirmwareSourceFormat.Unknown,
+ };
+ }
+
+ ///
+ /// Reads the Lua files of every target's UI folder out of a firmware file, in one pass (a firmware can
+ /// hold the UI of several consoles; a tar.gz is read once, not once per console).
+ ///
+ public static void ExtractFromFirmwareFile(string sourcePath, IReadOnlyList targets, CancellationToken cancellationToken)
+ {
+ foreach (ConsoleTarget target in targets)
+ target.NotFoundMessage = $"The firmware has no '{target.Layout.UiPath}' folder: it is not the firmware of this console.";
+
+ switch (Detect(sourcePath))
+ {
+ case FirmwareSourceFormat.SquashFs:
+ ExtractFromSquashFs(sourcePath, targets, cancellationToken);
+ break;
+ case FirmwareSourceFormat.Tar:
+ using (FileStream tar = File.OpenRead(sourcePath))
+ ExtractFromTar(tar, targets, uiPathOverride: null, cancellationToken);
+ break;
+ case FirmwareSourceFormat.TarGz:
+ using (FileStream gz = File.OpenRead(sourcePath))
+ using (var tar = new GZipStream(gz, CompressionMode.Decompress))
+ ExtractFromTar(tar, targets, uiPathOverride: null, cancellationToken);
+ break;
+ default:
+ throw new InvalidDataException("This is not a firmware file the app can read (a squashfs / .hsqs image, a .tar or a .tar.gz).");
+ }
+ }
+
+ /// Reads a tar stream whose entries are relative to the UI folder (what the SSH import receives).
+ public static void ExtractFromTar(Stream tarStream, ConsoleTarget target, CancellationToken cancellationToken) =>
+ ExtractFromTar(tarStream, [target], uiPathOverride: string.Empty, cancellationToken);
+
+ ///
+ /// The resources folders of a folder the user picked. The folder itself, or its own resources folder, is the
+ /// only one when it has scripts in it; otherwise every resources folder with scripts below it (a "base UI"
+ /// folder with the consoles side by side).
+ ///
+ public static IReadOnlyList FindResourcesRoots(string folder)
+ {
+ if (Directory.Exists(Path.Combine(folder, "scripts")))
+ return [folder];
+
+ string ownResources = Path.Combine(folder, "resources");
+ if (Directory.Exists(Path.Combine(ownResources, "scripts")))
+ return [ownResources];
+
+ return [.. Directory.EnumerateDirectories(folder, "resources", SearchOption.AllDirectories)
+ .Where(directory => Directory.Exists(Path.Combine(directory, "scripts")))];
+ }
+
+ ///
+ /// Reads the Lua files each target has in . A single folder is the console the user
+ /// asked for, whatever it is called; with several, each console takes the folder named like it.
+ ///
+ public static void CopyFromFolder(IReadOnlyList roots, IReadOnlyList targets, SystemModel requested, CancellationToken cancellationToken)
+ {
+ string consoles = string.Join(", ", roots.Select(ConsoleFolderName).Order());
+ foreach (ConsoleTarget target in targets)
+ {
+ if (roots.Count == 0)
+ {
+ target.NotFoundMessage = "No folder with a 'scripts' folder inside was found there. Pick the console's UI folder (the one that has 'resources').";
+ continue;
+ }
+
+ if (roots.Count == 1)
+ {
+ if (target.System == requested)
+ CopyFromRoot(roots[0], target, cancellationToken);
+
+ continue;
+ }
+
+ string[] named = [.. roots.Where(root => target.Layout.MatchesFolderName(ConsoleFolderName(root)))];
+ if (named.Length == 1)
+ CopyFromRoot(named[0], target, cancellationToken);
+ else
+ target.NotFoundMessage = named.Length == 0
+ ? $"That folder has several consoles ({consoles}) and none is named like this one. Pick the folder of your console."
+ : $"That folder has more than one folder named like this console ({consoles}). Pick the folder of your console.";
+ }
+ }
+
+ private static void CopyFromRoot(string root, ConsoleTarget target, CancellationToken cancellationToken)
+ {
+ target.Found = true;
+ foreach (string file in Directory.EnumerateFiles(root, "*.lua", SearchOption.AllDirectories))
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ using FileStream input = File.OpenRead(file);
+ WriteLuaRelativeToResources(target, Path.GetRelativePath(root, file).Replace('\\', '/'), input);
+ }
+ }
+
+ // .../snesusa/resources -> snesusa; .../snesusa (the resources are its scripts) -> snesusa
+ private static string ConsoleFolderName(string root)
+ {
+ string name = Path.GetFileName(Path.TrimEndingDirectorySeparator(root));
+ return name.Equals("resources", StringComparison.OrdinalIgnoreCase)
+ ? Path.GetFileName(Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(root)) ?? string.Empty)
+ : name;
+ }
+
+ private static void ExtractFromSquashFs(string sourcePath, IReadOnlyList targets, CancellationToken cancellationToken)
+ {
+ using FileStream stream = File.OpenRead(sourcePath);
+ using var fileSystem = new SquashFileSystemReader(stream, SquashFsOptions);
+
+ foreach (ConsoleTarget target in targets)
+ {
+ string prefix = UiPrefix(target, null);
+ string root = prefix.TrimEnd('/').Replace('/', Path.DirectorySeparatorChar);
+ if (!fileSystem.DirectoryExists(root))
+ continue;
+
+ target.Found = true;
+ foreach (string file in fileSystem.GetFiles(root, "*.*", SearchOption.AllDirectories))
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ string relative = file.Replace('\\', '/').TrimStart('/');
+ if (!relative.StartsWith(prefix, StringComparison.Ordinal))
+ continue;
+
+ using SparseStream input = fileSystem.OpenFile(file, FileMode.Open);
+ WriteLua(target, relative[prefix.Length..], input);
+ }
+ }
+ }
+
+ // uiPathOverride: the UI folder of every target when it is the same (the SSH import sends entries relative to it)
+ private static void ExtractFromTar(Stream tarStream, IReadOnlyList targets, string? uiPathOverride, CancellationToken cancellationToken)
+ {
+ using var reader = new TarReader(tarStream, leaveOpen: true);
+ while (reader.GetNextEntry() is { } entry)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ if (entry.EntryType is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile) || entry.DataStream is null)
+ continue;
+
+ string name = entry.Name.Replace('\\', '/').TrimStart('.', '/');
+ ConsoleTarget[] matching = [.. targets.Where(target => name.StartsWith(UiPrefix(target, uiPathOverride), StringComparison.Ordinal))];
+ if (matching.Length == 0)
+ continue;
+
+ foreach (ConsoleTarget target in matching)
+ target.Found = true;
+
+ if (matching.Length == 1)
+ {
+ WriteLua(matching[0], name[UiPrefix(matching[0], uiPathOverride).Length..], entry.DataStream);
+ continue;
+ }
+
+ // two consoles can share a UI folder: the entry is read once and given to both
+ using var copy = new MemoryStream();
+ entry.DataStream.CopyTo(copy);
+ foreach (ConsoleTarget target in matching)
+ {
+ copy.Position = 0;
+ WriteLua(target, name[UiPrefix(target, uiPathOverride).Length..], copy);
+ }
+ }
+ }
+
+ private static string UiPrefix(ConsoleTarget target, string? uiPathOverride) =>
+ uiPathOverride is null ? target.Layout.UiPath.Trim('/') + "/" : uiPathOverride;
+
+ // pathInUi is relative to the UI folder: resources/scripts/main.lua
+ private static void WriteLua(ConsoleTarget target, string pathInUi, Stream content)
+ {
+ if (!pathInUi.StartsWith(ResourcesPrefix, StringComparison.Ordinal))
+ return;
+
+ WriteLuaRelativeToResources(target, pathInUi[ResourcesPrefix.Length..], content);
+ }
+
+ // pathInResources: scripts/main.lua
+ private static void WriteLuaRelativeToResources(ConsoleTarget target, string pathInResources, Stream content)
+ {
+ if (!pathInResources.EndsWith(".lua", StringComparison.OrdinalIgnoreCase)
+ || pathInResources.Split('/').Any(segment => segment.StartsWith('.')))
+ return;
+
+ // the console's files are LuaJIT bytecode; a text file here is something else (a decoded theme, a script)
+ using var buffer = new MemoryStream();
+ content.CopyTo(buffer);
+ byte[] bytes = buffer.ToArray();
+ if (bytes.Length < 3 || bytes[0] != 0x1B || bytes[1] != (byte)'L' || bytes[2] != (byte)'J')
+ {
+ target.Result.NotBytecode++;
+ return;
+ }
+
+ string fullRoot = Path.TrimEndingDirectorySeparator(Path.GetFullPath(target.Staging)) + Path.DirectorySeparatorChar;
+ string path = Path.GetFullPath(Path.Combine(fullRoot, pathInResources));
+ if (!path.StartsWith(fullRoot, StringComparison.OrdinalIgnoreCase))
+ throw new InvalidDataException($"Unsafe path in the source: {pathInResources}");
+
+ Directory.CreateDirectory(Path.GetDirectoryName(path)!);
+ File.WriteAllBytes(path, bytes);
+ target.Result.Files++;
+ }
+ }
+}
diff --git a/Firmware/OriginalsImporter.cs b/Firmware/OriginalsImporter.cs
new file mode 100644
index 0000000..a8315c7
--- /dev/null
+++ b/Firmware/OriginalsImporter.cs
@@ -0,0 +1,107 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Threading;
+using System.Threading.Tasks;
+using SNESMiniLuaCompiler.Models;
+
+namespace SNESMiniLuaCompiler.Firmware
+{
+ /// A console whose original files were imported, and how many Lua files that was.
+ internal sealed record ImportedConsole(SystemModel System, ImportResult Result);
+
+ ///
+ /// Imports the original Lua files of the consoles: from a console over SSH, from a firmware file
+ /// (squashfs / .hsqs, tar, tar.gz) or from a folder. Only the Lua files are read.
+ /// A firmware file or a folder can hold several consoles: every one the source has is imported and kept,
+ /// so the app does not ask for it again; the console the user asked for has to be one of them.
+ ///
+ internal static class OriginalsImporter
+ {
+ public static Task> FromFolderAsync(SystemModel requested, string folder, CancellationToken cancellationToken = default) =>
+ ImportAsync(
+ requested,
+ ConsoleLayout.All,
+ targets => Task.Run(
+ () => LuaSourceReader.CopyFromFolder(LuaSourceReader.FindResourcesRoots(folder), targets, requested, cancellationToken),
+ cancellationToken));
+
+ public static Task> FromFirmwareFileAsync(SystemModel requested, string file, CancellationToken cancellationToken = default) =>
+ ImportAsync(
+ requested,
+ ConsoleLayout.All,
+ targets => Task.Run(() => LuaSourceReader.ExtractFromFirmwareFile(file, targets, cancellationToken), cancellationToken));
+
+ public static Task> FromConsoleAsync(SystemModel requested, string host, CancellationToken cancellationToken = default) =>
+ ImportAsync(
+ requested,
+ [requested],
+ targets => ConsoleSsh.DownloadLuaAsync(host, targets[0], cancellationToken));
+
+ // everything is read into staging folders first: a failed import never touches the originals already there
+ private static async Task> ImportAsync(
+ SystemModel requested,
+ IReadOnlyList consoles,
+ Func, Task> read)
+ {
+ List targets = [.. consoles.Select(console => new ConsoleTarget(console))];
+ try
+ {
+ foreach (ConsoleTarget target in targets)
+ Directory.CreateDirectory(target.Staging);
+
+ await read(targets).ConfigureAwait(false);
+
+ var good = new List();
+ foreach (ConsoleTarget target in targets)
+ {
+ try
+ {
+ Validate(target);
+ good.Add(target);
+ }
+ catch (InvalidDataException) when (target.System != requested)
+ {
+ // the source has nothing (valid) for this console: only the one the user asked for has to be there
+ }
+ }
+
+ foreach (ConsoleTarget target in good)
+ OriginalsStore.Replace(target.System, target.Staging);
+
+ return [.. good.Select(target => new ImportedConsole(target.System, target.Result))];
+ }
+ finally
+ {
+ foreach (ConsoleTarget target in targets)
+ OriginalsStore.CleanUp(target.Staging);
+ }
+ }
+
+ private static void Validate(ConsoleTarget target)
+ {
+ if (!target.Found)
+ throw new InvalidDataException(target.NotFoundMessage ?? "No Lua files of a console were found there.");
+
+ if (!File.Exists(Path.Combine(target.Staging, "scripts", "main.lua")))
+ throw new InvalidDataException(Describe(target.Result));
+
+ CheckIsThisConsole(target.Layout, target.Staging);
+ }
+
+ // the files of a NES are not those of a SNES: a file only one family has tells them apart
+ private static void CheckIsThisConsole(ConsoleLayout layout, string staging)
+ {
+ if (!File.Exists(Path.Combine(staging, layout.RequiredFile)))
+ throw new InvalidDataException($"These are not the files of this console ({layout.RequiredFile} is missing): they are from another console.");
+
+ if (layout.ForbiddenFile is not null && File.Exists(Path.Combine(staging, layout.ForbiddenFile)))
+ throw new InvalidDataException($"These are not the files of this console ({layout.ForbiddenFile} belongs to the Shonen Jump edition).");
+ }
+
+ private static string Describe(ImportResult result) => result.NotBytecode > 0
+ ? $"Those Lua files are plain text ({result.NotBytecode} of them), not the console's compiled files. Pick the original files, not a decoded theme."
+ : "No Lua files of a console were found there (scripts/main.lua is missing).";
+ }
+}
diff --git a/Firmware/OriginalsStore.cs b/Firmware/OriginalsStore.cs
new file mode 100644
index 0000000..b9b6f37
--- /dev/null
+++ b/Firmware/OriginalsStore.cs
@@ -0,0 +1,50 @@
+using System;
+using System.IO;
+using System.Linq;
+using SNESMiniLuaCompiler.Models;
+
+namespace SNESMiniLuaCompiler.Firmware
+{
+ ///
+ /// The original Lua files of each console, imported by the user from their own console or firmware backup.
+ /// One folder per console, laid out like the console's resources folder (scripts/, animation/).
+ ///
+ internal static class OriginalsStore
+ {
+ public static string Root { get; } = Path.Combine(
+ Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
+ "SNESMiniLuaCompiler",
+ "Originals");
+
+ public static string PathOf(SystemModel system) => Path.Combine(Root, ConsoleLayout.For(system).FolderName);
+
+ public static bool IsImported(SystemModel system)
+ {
+ string path = PathOf(system);
+ return Directory.Exists(path) && Directory.EnumerateFiles(path, "*.lua", SearchOption.AllDirectories).Any();
+ }
+
+ public static string NewStagingPath() => Path.Combine(Root, ".staging-" + Guid.NewGuid().ToString("N")[..8]);
+
+ /// Removes the staging folder of an import that did not finish, and the store folder if nothing is left in it.
+ public static void CleanUp(string stagingPath)
+ {
+ if (Directory.Exists(stagingPath))
+ Directory.Delete(stagingPath, true);
+
+ if (Directory.Exists(Root) && !Directory.EnumerateFileSystemEntries(Root).Any())
+ Directory.Delete(Root);
+ }
+
+ /// Makes the originals of the console, replacing what was there.
+ public static void Replace(SystemModel system, string stagingPath)
+ {
+ string target = PathOf(system);
+ if (Directory.Exists(target))
+ Directory.Delete(target, true);
+
+ Directory.CreateDirectory(Root);
+ Directory.Move(stagingPath, target);
+ }
+ }
+}
diff --git a/GitVersion.yml b/GitVersion.yml
index c577d43..b38c0a1 100644
--- a/GitVersion.yml
+++ b/GitVersion.yml
@@ -25,7 +25,9 @@ branches:
track-merge-target: false
is-release-branch: true
feature:
- regex: ^features?[/-]
+ # the named group is what {BranchName} in the label stands for; without it the version is "2.1.0-{BranchName}.1"
+ regex: ^features?[/-](?.+)
+ label: '{BranchName}'
increment: Minor
track-merge-target: false
is-release-branch: false
diff --git a/Helpers/AppUtils.cs b/Helpers/AppUtils.cs
index 8a78b08..029f3d8 100644
--- a/Helpers/AppUtils.cs
+++ b/Helpers/AppUtils.cs
@@ -3,6 +3,7 @@
using System.IO;
using System.Linq;
using System.Reflection;
+using SNESMiniLuaCompiler.Firmware;
using SNESMiniLuaCompiler.Models;
namespace SNESMiniLuaCompiler.Helpers
@@ -80,13 +81,9 @@ public static void ExtractAllResources()
}, "Failed to extract resources.", "AppUtils.ExtractAllResources");
}
- public static void ExtractSelectedResources(SystemModel systemModel)
- {
- string systemName = Path.GetFileName(GetSystemPath(systemModel));
- string resourcePrefix = $"{SystemResourcePrefix}original/{systemName}/resources/";
- string tempDir = Path.Combine(Path.GetTempPath(), "SNESMiniLuaCompiler", "resources", systemName);
- ExtractResourcesWithPrefix(resourcePrefix, tempDir);
- }
+ // the originals are the user's own files, imported from their console or firmware (see OriginalsImporter)
+ public static void ExtractSelectedResources(SystemModel systemModel) =>
+ FileUtils.CopyAssets(OriginalsStore.PathOf(systemModel), GetSystemPath(systemModel));
public static void ExtractResourceToFile(string resourceName, string outputPath)
{
@@ -134,15 +131,7 @@ public static void ExtractResourcesWithPrefix(string resourcePrefix, string targ
#region System Path and Directory Checks
public static string GetSystemPath(SystemModel systemModel) =>
- systemModel switch
- {
- SystemModel.Famicom => FileUtils.CombinePath(ResourcesPath, "hvc"),
- SystemModel.Shonen => FileUtils.CombinePath(ResourcesPath, "hvcj"),
- SystemModel.SuperFamicom => FileUtils.CombinePath(ResourcesPath, "shvc"),
- SystemModel.Nes => FileUtils.CombinePath(ResourcesPath, "nes"),
- SystemModel.SnesPal => FileUtils.CombinePath(ResourcesPath, "snes-eur"),
- _ => FileUtils.CombinePath(ResourcesPath, "snes-usa")
- };
+ FileUtils.CombinePath(ResourcesPath, ConsoleLayout.For(systemModel).FolderName);
#endregion
diff --git a/Helpers/ExceptionUtils.cs b/Helpers/ExceptionUtils.cs
index 90dfa9e..e78f040 100644
--- a/Helpers/ExceptionUtils.cs
+++ b/Helpers/ExceptionUtils.cs
@@ -1,5 +1,6 @@
using System;
using System.IO;
+using Avalonia.Threading;
using Serilog;
using SNESMiniLuaCompiler.Views;
@@ -40,7 +41,7 @@ public static void HandleException(Exception ex, string? userMessage = null, str
if (showUser)
{
string msg = userMessage ?? "An error occurred.";
- MessageBox.ShowError($"{msg}\n\nDetails: {ex.Message}", "Error");
+ Dispatcher.UIThread.Post(() => _ = MessageBox.ShowError($"{msg}\n\nDetails: {ex.Message}", "Error"));
}
}
diff --git a/Helpers/ProcessUtils.cs b/Helpers/ProcessUtils.cs
index 04731b5..6b2ae33 100644
--- a/Helpers/ProcessUtils.cs
+++ b/Helpers/ProcessUtils.cs
@@ -72,7 +72,7 @@ public static void OpenDirectory(string path)
{
using Process? process = Process.Start(new ProcessStartInfo
{
- FileName = OperatingSystem.IsWindows() ? "explorer.exe" : "xdg-open",
+ FileName = OperatingSystem.IsWindows() ? "explorer.exe" : OperatingSystem.IsMacOS() ? "open" : "xdg-open",
Arguments = $"\"{path}\"",
UseShellExecute = false
});
diff --git a/Lib/decompiler-macos/LICENSE b/Lib/decompiler-macos/LICENSE
new file mode 100644
index 0000000..e2019ed
--- /dev/null
+++ b/Lib/decompiler-macos/LICENSE
@@ -0,0 +1,28 @@
+MIT License
+
+LuaJIT Decompiler v2
+Copyright (C) 2023 marsinator358
+
+LuaJIT
+Copyright (C) 2005-2023 Mike Pall. All rights reserved.
+
+Lua
+Copyright (C) 1994-2023 Lua.org, PUC-Rio.
+
+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/Lib/decompiler-macos/luajit-decompiler-v2 b/Lib/decompiler-macos/luajit-decompiler-v2
new file mode 100644
index 0000000..7a3aea6
Binary files /dev/null and b/Lib/decompiler-macos/luajit-decompiler-v2 differ
diff --git a/Lib/luajit-macos/jit/bcsave.lua b/Lib/luajit-macos/jit/bcsave.lua
new file mode 100644
index 0000000..0319b3d
--- /dev/null
+++ b/Lib/luajit-macos/jit/bcsave.lua
@@ -0,0 +1,659 @@
+----------------------------------------------------------------------------
+-- LuaJIT module to save/list bytecode.
+--
+-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
+-- Released under the MIT license. See Copyright Notice in luajit.h
+----------------------------------------------------------------------------
+--
+-- This module saves or lists the bytecode for an input file.
+-- It's run by the -b command line option.
+--
+------------------------------------------------------------------------------
+
+local jit = require("jit")
+assert(jit.version_num == 20004, "LuaJIT core/library version mismatch")
+local bit = require("bit")
+
+-- Symbol name prefix for LuaJIT bytecode.
+local LJBC_PREFIX = "luaJIT_BC_"
+
+------------------------------------------------------------------------------
+
+local function usage()
+ io.stderr:write[[
+Save LuaJIT bytecode: luajit -b[options] input output
+ -l Only list bytecode.
+ -s Strip debug info (default).
+ -g Keep debug info.
+ -n name Set module name (default: auto-detect from input name).
+ -t type Set output file type (default: auto-detect from output name).
+ -a arch Override architecture for object files (default: native).
+ -o os Override OS for object files (default: native).
+ -e chunk Use chunk string as input.
+ -- Stop handling options.
+ - Use stdin as input and/or stdout as output.
+
+File types: c h obj o raw (default)
+]]
+ os.exit(1)
+end
+
+local function check(ok, ...)
+ if ok then return ok, ... end
+ io.stderr:write("luajit: ", ...)
+ io.stderr:write("\n")
+ os.exit(1)
+end
+
+local function readfile(input)
+ if type(input) == "function" then return input end
+ if input == "-" then input = nil end
+ return check(loadfile(input))
+end
+
+local function savefile(name, mode)
+ if name == "-" then return io.stdout end
+ return check(io.open(name, mode))
+end
+
+------------------------------------------------------------------------------
+
+local map_type = {
+ raw = "raw", c = "c", h = "h", o = "obj", obj = "obj",
+}
+
+local map_arch = {
+ x86 = true, x64 = true, arm = true, ppc = true, ppcspe = true,
+ mips = true, mipsel = true,
+}
+
+local map_os = {
+ linux = true, windows = true, osx = true, freebsd = true, netbsd = true,
+ openbsd = true, dragonfly = true, solaris = true,
+}
+
+local function checkarg(str, map, err)
+ str = string.lower(str)
+ local s = check(map[str], "unknown ", err)
+ return s == true and str or s
+end
+
+local function detecttype(str)
+ local ext = string.match(string.lower(str), "%.(%a+)$")
+ return map_type[ext] or "raw"
+end
+
+local function checkmodname(str)
+ check(string.match(str, "^[%w_.%-]+$"), "bad module name")
+ return string.gsub(str, "[%.%-]", "_")
+end
+
+local function detectmodname(str)
+ if type(str) == "string" then
+ local tail = string.match(str, "[^/\\]+$")
+ if tail then str = tail end
+ local head = string.match(str, "^(.*)%.[^.]*$")
+ if head then str = head end
+ str = string.match(str, "^[%w_.%-]+")
+ else
+ str = nil
+ end
+ check(str, "cannot derive module name, use -n name")
+ return string.gsub(str, "[%.%-]", "_")
+end
+
+------------------------------------------------------------------------------
+
+local function bcsave_tail(fp, output, s)
+ local ok, err = fp:write(s)
+ if ok and output ~= "-" then ok, err = fp:close() end
+ check(ok, "cannot write ", output, ": ", err)
+end
+
+local function bcsave_raw(output, s)
+ local fp = savefile(output, "wb")
+ bcsave_tail(fp, output, s)
+end
+
+local function bcsave_c(ctx, output, s)
+ local fp = savefile(output, "w")
+ if ctx.type == "c" then
+ fp:write(string.format([[
+#ifdef _cplusplus
+extern "C"
+#endif
+#ifdef _WIN32
+__declspec(dllexport)
+#endif
+const char %s%s[] = {
+]], LJBC_PREFIX, ctx.modname))
+ else
+ fp:write(string.format([[
+#define %s%s_SIZE %d
+static const char %s%s[] = {
+]], LJBC_PREFIX, ctx.modname, #s, LJBC_PREFIX, ctx.modname))
+ end
+ local t, n, m = {}, 0, 0
+ for i=1,#s do
+ local b = tostring(string.byte(s, i))
+ m = m + #b + 1
+ if m > 78 then
+ fp:write(table.concat(t, ",", 1, n), ",\n")
+ n, m = 0, #b + 1
+ end
+ n = n + 1
+ t[n] = b
+ end
+ bcsave_tail(fp, output, table.concat(t, ",", 1, n).."\n};\n")
+end
+
+local function bcsave_elfobj(ctx, output, s, ffi)
+ ffi.cdef[[
+typedef struct {
+ uint8_t emagic[4], eclass, eendian, eversion, eosabi, eabiversion, epad[7];
+ uint16_t type, machine;
+ uint32_t version;
+ uint32_t entry, phofs, shofs;
+ uint32_t flags;
+ uint16_t ehsize, phentsize, phnum, shentsize, shnum, shstridx;
+} ELF32header;
+typedef struct {
+ uint8_t emagic[4], eclass, eendian, eversion, eosabi, eabiversion, epad[7];
+ uint16_t type, machine;
+ uint32_t version;
+ uint64_t entry, phofs, shofs;
+ uint32_t flags;
+ uint16_t ehsize, phentsize, phnum, shentsize, shnum, shstridx;
+} ELF64header;
+typedef struct {
+ uint32_t name, type, flags, addr, ofs, size, link, info, align, entsize;
+} ELF32sectheader;
+typedef struct {
+ uint32_t name, type;
+ uint64_t flags, addr, ofs, size;
+ uint32_t link, info;
+ uint64_t align, entsize;
+} ELF64sectheader;
+typedef struct {
+ uint32_t name, value, size;
+ uint8_t info, other;
+ uint16_t sectidx;
+} ELF32symbol;
+typedef struct {
+ uint32_t name;
+ uint8_t info, other;
+ uint16_t sectidx;
+ uint64_t value, size;
+} ELF64symbol;
+typedef struct {
+ ELF32header hdr;
+ ELF32sectheader sect[6];
+ ELF32symbol sym[2];
+ uint8_t space[4096];
+} ELF32obj;
+typedef struct {
+ ELF64header hdr;
+ ELF64sectheader sect[6];
+ ELF64symbol sym[2];
+ uint8_t space[4096];
+} ELF64obj;
+]]
+ local symname = LJBC_PREFIX..ctx.modname
+ local is64, isbe = false, false
+ if ctx.arch == "x64" then
+ is64 = true
+ elseif ctx.arch == "ppc" or ctx.arch == "ppcspe" or ctx.arch == "mips" then
+ isbe = true
+ end
+
+ -- Handle different host/target endianess.
+ local function f32(x) return x end
+ local f16, fofs = f32, f32
+ if ffi.abi("be") ~= isbe then
+ f32 = bit.bswap
+ function f16(x) return bit.rshift(bit.bswap(x), 16) end
+ if is64 then
+ local two32 = ffi.cast("int64_t", 2^32)
+ function fofs(x) return bit.bswap(x)*two32 end
+ else
+ fofs = f32
+ end
+ end
+
+ -- Create ELF object and fill in header.
+ local o = ffi.new(is64 and "ELF64obj" or "ELF32obj")
+ local hdr = o.hdr
+ if ctx.os == "bsd" or ctx.os == "other" then -- Determine native hdr.eosabi.
+ local bf = assert(io.open("/bin/ls", "rb"))
+ local bs = bf:read(9)
+ bf:close()
+ ffi.copy(o, bs, 9)
+ check(hdr.emagic[0] == 127, "no support for writing native object files")
+ else
+ hdr.emagic = "\127ELF"
+ hdr.eosabi = ({ freebsd=9, netbsd=2, openbsd=12, solaris=6 })[ctx.os] or 0
+ end
+ hdr.eclass = is64 and 2 or 1
+ hdr.eendian = isbe and 2 or 1
+ hdr.eversion = 1
+ hdr.type = f16(1)
+ hdr.machine = f16(({ x86=3, x64=62, arm=40, ppc=20, ppcspe=20, mips=8, mipsel=8 })[ctx.arch])
+ if ctx.arch == "mips" or ctx.arch == "mipsel" then
+ hdr.flags = 0x50001006
+ end
+ hdr.version = f32(1)
+ hdr.shofs = fofs(ffi.offsetof(o, "sect"))
+ hdr.ehsize = f16(ffi.sizeof(hdr))
+ hdr.shentsize = f16(ffi.sizeof(o.sect[0]))
+ hdr.shnum = f16(6)
+ hdr.shstridx = f16(2)
+
+ -- Fill in sections and symbols.
+ local sofs, ofs = ffi.offsetof(o, "space"), 1
+ for i,name in ipairs{
+ ".symtab", ".shstrtab", ".strtab", ".rodata", ".note.GNU-stack",
+ } do
+ local sect = o.sect[i]
+ sect.align = fofs(1)
+ sect.name = f32(ofs)
+ ffi.copy(o.space+ofs, name)
+ ofs = ofs + #name+1
+ end
+ o.sect[1].type = f32(2) -- .symtab
+ o.sect[1].link = f32(3)
+ o.sect[1].info = f32(1)
+ o.sect[1].align = fofs(8)
+ o.sect[1].ofs = fofs(ffi.offsetof(o, "sym"))
+ o.sect[1].entsize = fofs(ffi.sizeof(o.sym[0]))
+ o.sect[1].size = fofs(ffi.sizeof(o.sym))
+ o.sym[1].name = f32(1)
+ o.sym[1].sectidx = f16(4)
+ o.sym[1].size = fofs(#s)
+ o.sym[1].info = 17
+ o.sect[2].type = f32(3) -- .shstrtab
+ o.sect[2].ofs = fofs(sofs)
+ o.sect[2].size = fofs(ofs)
+ o.sect[3].type = f32(3) -- .strtab
+ o.sect[3].ofs = fofs(sofs + ofs)
+ o.sect[3].size = fofs(#symname+1)
+ ffi.copy(o.space+ofs+1, symname)
+ ofs = ofs + #symname + 2
+ o.sect[4].type = f32(1) -- .rodata
+ o.sect[4].flags = fofs(2)
+ o.sect[4].ofs = fofs(sofs + ofs)
+ o.sect[4].size = fofs(#s)
+ o.sect[5].type = f32(1) -- .note.GNU-stack
+ o.sect[5].ofs = fofs(sofs + ofs + #s)
+
+ -- Write ELF object file.
+ local fp = savefile(output, "wb")
+ fp:write(ffi.string(o, ffi.sizeof(o)-4096+ofs))
+ bcsave_tail(fp, output, s)
+end
+
+local function bcsave_peobj(ctx, output, s, ffi)
+ ffi.cdef[[
+typedef struct {
+ uint16_t arch, nsects;
+ uint32_t time, symtabofs, nsyms;
+ uint16_t opthdrsz, flags;
+} PEheader;
+typedef struct {
+ char name[8];
+ uint32_t vsize, vaddr, size, ofs, relocofs, lineofs;
+ uint16_t nreloc, nline;
+ uint32_t flags;
+} PEsection;
+typedef struct __attribute((packed)) {
+ union {
+ char name[8];
+ uint32_t nameref[2];
+ };
+ uint32_t value;
+ int16_t sect;
+ uint16_t type;
+ uint8_t scl, naux;
+} PEsym;
+typedef struct __attribute((packed)) {
+ uint32_t size;
+ uint16_t nreloc, nline;
+ uint32_t cksum;
+ uint16_t assoc;
+ uint8_t comdatsel, unused[3];
+} PEsymaux;
+typedef struct {
+ PEheader hdr;
+ PEsection sect[2];
+ // Must be an even number of symbol structs.
+ PEsym sym0;
+ PEsymaux sym0aux;
+ PEsym sym1;
+ PEsymaux sym1aux;
+ PEsym sym2;
+ PEsym sym3;
+ uint32_t strtabsize;
+ uint8_t space[4096];
+} PEobj;
+]]
+ local symname = LJBC_PREFIX..ctx.modname
+ local is64 = false
+ if ctx.arch == "x86" then
+ symname = "_"..symname
+ elseif ctx.arch == "x64" then
+ is64 = true
+ end
+ local symexport = " /EXPORT:"..symname..",DATA "
+
+ -- The file format is always little-endian. Swap if the host is big-endian.
+ local function f32(x) return x end
+ local f16 = f32
+ if ffi.abi("be") then
+ f32 = bit.bswap
+ function f16(x) return bit.rshift(bit.bswap(x), 16) end
+ end
+
+ -- Create PE object and fill in header.
+ local o = ffi.new("PEobj")
+ local hdr = o.hdr
+ hdr.arch = f16(({ x86=0x14c, x64=0x8664, arm=0x1c0, ppc=0x1f2, mips=0x366, mipsel=0x366 })[ctx.arch])
+ hdr.nsects = f16(2)
+ hdr.symtabofs = f32(ffi.offsetof(o, "sym0"))
+ hdr.nsyms = f32(6)
+
+ -- Fill in sections and symbols.
+ o.sect[0].name = ".drectve"
+ o.sect[0].size = f32(#symexport)
+ o.sect[0].flags = f32(0x00100a00)
+ o.sym0.sect = f16(1)
+ o.sym0.scl = 3
+ o.sym0.name = ".drectve"
+ o.sym0.naux = 1
+ o.sym0aux.size = f32(#symexport)
+ o.sect[1].name = ".rdata"
+ o.sect[1].size = f32(#s)
+ o.sect[1].flags = f32(0x40300040)
+ o.sym1.sect = f16(2)
+ o.sym1.scl = 3
+ o.sym1.name = ".rdata"
+ o.sym1.naux = 1
+ o.sym1aux.size = f32(#s)
+ o.sym2.sect = f16(2)
+ o.sym2.scl = 2
+ o.sym2.nameref[1] = f32(4)
+ o.sym3.sect = f16(-1)
+ o.sym3.scl = 2
+ o.sym3.value = f32(1)
+ o.sym3.name = "@feat.00" -- Mark as SafeSEH compliant.
+ ffi.copy(o.space, symname)
+ local ofs = #symname + 1
+ o.strtabsize = f32(ofs + 4)
+ o.sect[0].ofs = f32(ffi.offsetof(o, "space") + ofs)
+ ffi.copy(o.space + ofs, symexport)
+ ofs = ofs + #symexport
+ o.sect[1].ofs = f32(ffi.offsetof(o, "space") + ofs)
+
+ -- Write PE object file.
+ local fp = savefile(output, "wb")
+ fp:write(ffi.string(o, ffi.sizeof(o)-4096+ofs))
+ bcsave_tail(fp, output, s)
+end
+
+local function bcsave_machobj(ctx, output, s, ffi)
+ ffi.cdef[[
+typedef struct
+{
+ uint32_t magic, cputype, cpusubtype, filetype, ncmds, sizeofcmds, flags;
+} mach_header;
+typedef struct
+{
+ mach_header; uint32_t reserved;
+} mach_header_64;
+typedef struct {
+ uint32_t cmd, cmdsize;
+ char segname[16];
+ uint32_t vmaddr, vmsize, fileoff, filesize;
+ uint32_t maxprot, initprot, nsects, flags;
+} mach_segment_command;
+typedef struct {
+ uint32_t cmd, cmdsize;
+ char segname[16];
+ uint64_t vmaddr, vmsize, fileoff, filesize;
+ uint32_t maxprot, initprot, nsects, flags;
+} mach_segment_command_64;
+typedef struct {
+ char sectname[16], segname[16];
+ uint32_t addr, size;
+ uint32_t offset, align, reloff, nreloc, flags;
+ uint32_t reserved1, reserved2;
+} mach_section;
+typedef struct {
+ char sectname[16], segname[16];
+ uint64_t addr, size;
+ uint32_t offset, align, reloff, nreloc, flags;
+ uint32_t reserved1, reserved2, reserved3;
+} mach_section_64;
+typedef struct {
+ uint32_t cmd, cmdsize, symoff, nsyms, stroff, strsize;
+} mach_symtab_command;
+typedef struct {
+ int32_t strx;
+ uint8_t type, sect;
+ int16_t desc;
+ uint32_t value;
+} mach_nlist;
+typedef struct {
+ uint32_t strx;
+ uint8_t type, sect;
+ uint16_t desc;
+ uint64_t value;
+} mach_nlist_64;
+typedef struct
+{
+ uint32_t magic, nfat_arch;
+} mach_fat_header;
+typedef struct
+{
+ uint32_t cputype, cpusubtype, offset, size, align;
+} mach_fat_arch;
+typedef struct {
+ struct {
+ mach_header hdr;
+ mach_segment_command seg;
+ mach_section sec;
+ mach_symtab_command sym;
+ } arch[1];
+ mach_nlist sym_entry;
+ uint8_t space[4096];
+} mach_obj;
+typedef struct {
+ struct {
+ mach_header_64 hdr;
+ mach_segment_command_64 seg;
+ mach_section_64 sec;
+ mach_symtab_command sym;
+ } arch[1];
+ mach_nlist_64 sym_entry;
+ uint8_t space[4096];
+} mach_obj_64;
+typedef struct {
+ mach_fat_header fat;
+ mach_fat_arch fat_arch[4];
+ struct {
+ mach_header hdr;
+ mach_segment_command seg;
+ mach_section sec;
+ mach_symtab_command sym;
+ } arch[4];
+ mach_nlist sym_entry;
+ uint8_t space[4096];
+} mach_fat_obj;
+]]
+ local symname = '_'..LJBC_PREFIX..ctx.modname
+ local isfat, is64, align, mobj = false, false, 4, "mach_obj"
+ if ctx.arch == "x64" then
+ is64, align, mobj = true, 8, "mach_obj_64"
+ elseif ctx.arch == "arm" then
+ isfat, mobj = true, "mach_fat_obj"
+ else
+ check(ctx.arch == "x86", "unsupported architecture for OSX")
+ end
+ local function aligned(v, a) return bit.band(v+a-1, -a) end
+ local be32 = bit.bswap -- Mach-O FAT is BE, supported archs are LE.
+
+ -- Create Mach-O object and fill in header.
+ local o = ffi.new(mobj)
+ local mach_size = aligned(ffi.offsetof(o, "space")+#symname+2, align)
+ local cputype = ({ x86={7}, x64={0x01000007}, arm={7,12,12,12} })[ctx.arch]
+ local cpusubtype = ({ x86={3}, x64={3}, arm={3,6,9,11} })[ctx.arch]
+ if isfat then
+ o.fat.magic = be32(0xcafebabe)
+ o.fat.nfat_arch = be32(#cpusubtype)
+ end
+
+ -- Fill in sections and symbols.
+ for i=0,#cpusubtype-1 do
+ local ofs = 0
+ if isfat then
+ local a = o.fat_arch[i]
+ a.cputype = be32(cputype[i+1])
+ a.cpusubtype = be32(cpusubtype[i+1])
+ -- Subsequent slices overlap each other to share data.
+ ofs = ffi.offsetof(o, "arch") + i*ffi.sizeof(o.arch[0])
+ a.offset = be32(ofs)
+ a.size = be32(mach_size-ofs+#s)
+ end
+ local a = o.arch[i]
+ a.hdr.magic = is64 and 0xfeedfacf or 0xfeedface
+ a.hdr.cputype = cputype[i+1]
+ a.hdr.cpusubtype = cpusubtype[i+1]
+ a.hdr.filetype = 1
+ a.hdr.ncmds = 2
+ a.hdr.sizeofcmds = ffi.sizeof(a.seg)+ffi.sizeof(a.sec)+ffi.sizeof(a.sym)
+ a.seg.cmd = is64 and 0x19 or 0x1
+ a.seg.cmdsize = ffi.sizeof(a.seg)+ffi.sizeof(a.sec)
+ a.seg.vmsize = #s
+ a.seg.fileoff = mach_size-ofs
+ a.seg.filesize = #s
+ a.seg.maxprot = 1
+ a.seg.initprot = 1
+ a.seg.nsects = 1
+ ffi.copy(a.sec.sectname, "__data")
+ ffi.copy(a.sec.segname, "__DATA")
+ a.sec.size = #s
+ a.sec.offset = mach_size-ofs
+ a.sym.cmd = 2
+ a.sym.cmdsize = ffi.sizeof(a.sym)
+ a.sym.symoff = ffi.offsetof(o, "sym_entry")-ofs
+ a.sym.nsyms = 1
+ a.sym.stroff = ffi.offsetof(o, "sym_entry")+ffi.sizeof(o.sym_entry)-ofs
+ a.sym.strsize = aligned(#symname+2, align)
+ end
+ o.sym_entry.type = 0xf
+ o.sym_entry.sect = 1
+ o.sym_entry.strx = 1
+ ffi.copy(o.space+1, symname)
+
+ -- Write Macho-O object file.
+ local fp = savefile(output, "wb")
+ fp:write(ffi.string(o, mach_size))
+ bcsave_tail(fp, output, s)
+end
+
+local function bcsave_obj(ctx, output, s)
+ local ok, ffi = pcall(require, "ffi")
+ check(ok, "FFI library required to write this file type")
+ if ctx.os == "windows" then
+ return bcsave_peobj(ctx, output, s, ffi)
+ elseif ctx.os == "osx" then
+ return bcsave_machobj(ctx, output, s, ffi)
+ else
+ return bcsave_elfobj(ctx, output, s, ffi)
+ end
+end
+
+------------------------------------------------------------------------------
+
+local function bclist(input, output)
+ local f = readfile(input)
+ require("jit.bc").dump(f, savefile(output, "w"), true)
+end
+
+local function bcsave(ctx, input, output)
+ local f = readfile(input)
+ local s = string.dump(f, ctx.strip)
+ local t = ctx.type
+ if not t then
+ t = detecttype(output)
+ ctx.type = t
+ end
+ if t == "raw" then
+ bcsave_raw(output, s)
+ else
+ if not ctx.modname then ctx.modname = detectmodname(input) end
+ if t == "obj" then
+ bcsave_obj(ctx, output, s)
+ else
+ bcsave_c(ctx, output, s)
+ end
+ end
+end
+
+local function docmd(...)
+ local arg = {...}
+ local n = 1
+ local list = false
+ local ctx = {
+ strip = true, arch = jit.arch, os = string.lower(jit.os),
+ type = false, modname = false,
+ }
+ while n <= #arg do
+ local a = arg[n]
+ if type(a) == "string" and string.sub(a, 1, 1) == "-" and a ~= "-" then
+ table.remove(arg, n)
+ if a == "--" then break end
+ for m=2,#a do
+ local opt = string.sub(a, m, m)
+ if opt == "l" then
+ list = true
+ elseif opt == "s" then
+ ctx.strip = true
+ elseif opt == "g" then
+ ctx.strip = false
+ else
+ if arg[n] == nil or m ~= #a then usage() end
+ if opt == "e" then
+ if n ~= 1 then usage() end
+ arg[1] = check(loadstring(arg[1]))
+ elseif opt == "n" then
+ ctx.modname = checkmodname(table.remove(arg, n))
+ elseif opt == "t" then
+ ctx.type = checkarg(table.remove(arg, n), map_type, "file type")
+ elseif opt == "a" then
+ ctx.arch = checkarg(table.remove(arg, n), map_arch, "architecture")
+ elseif opt == "o" then
+ ctx.os = checkarg(table.remove(arg, n), map_os, "OS name")
+ else
+ usage()
+ end
+ end
+ end
+ else
+ n = n + 1
+ end
+ end
+ if list then
+ if #arg == 0 or #arg > 2 then usage() end
+ bclist(arg[1], arg[2] or "-")
+ else
+ if #arg ~= 2 then usage() end
+ bcsave(ctx, arg[1], arg[2])
+ end
+end
+
+------------------------------------------------------------------------------
+
+-- Public module functions.
+module(...)
+
+start = docmd -- Process -b command line option.
+
diff --git a/Lib/luajit-macos/luajit b/Lib/luajit-macos/luajit
new file mode 100644
index 0000000..6807324
Binary files /dev/null and b/Lib/luajit-macos/luajit differ
diff --git a/Lib/original/hvc/resources/animation/blink.lua b/Lib/original/hvc/resources/animation/blink.lua
deleted file mode 100644
index 47946c3..0000000
Binary files a/Lib/original/hvc/resources/animation/blink.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/animation/fuwafuwa.lua b/Lib/original/hvc/resources/animation/fuwafuwa.lua
deleted file mode 100644
index ae96fd1..0000000
Binary files a/Lib/original/hvc/resources/animation/fuwafuwa.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/animation/lr_arrow.lua b/Lib/original/hvc/resources/animation/lr_arrow.lua
deleted file mode 100644
index d7f7eed..0000000
Binary files a/Lib/original/hvc/resources/animation/lr_arrow.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/animation/slide_in.lua b/Lib/original/hvc/resources/animation/slide_in.lua
deleted file mode 100644
index b58e4aa..0000000
Binary files a/Lib/original/hvc/resources/animation/slide_in.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/animation/slide_out_down.lua b/Lib/original/hvc/resources/animation/slide_out_down.lua
deleted file mode 100644
index 51e7b91..0000000
Binary files a/Lib/original/hvc/resources/animation/slide_out_down.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/animation/slide_out_up.lua b/Lib/original/hvc/resources/animation/slide_out_up.lua
deleted file mode 100644
index b23ebd3..0000000
Binary files a/Lib/original/hvc/resources/animation/slide_out_up.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/animation/tweenanimator.lua b/Lib/original/hvc/resources/animation/tweenanimator.lua
deleted file mode 100644
index e40dd0a..0000000
Binary files a/Lib/original/hvc/resources/animation/tweenanimator.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/bg.lua b/Lib/original/hvc/resources/scripts/bg.lua
deleted file mode 100644
index a4ec017..0000000
Binary files a/Lib/original/hvc/resources/scripts/bg.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/character.lua b/Lib/original/hvc/resources/scripts/character.lua
deleted file mode 100644
index 0094a9e..0000000
Binary files a/Lib/original/hvc/resources/scripts/character.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/colors_hvc.lua b/Lib/original/hvc/resources/scripts/colors_hvc.lua
deleted file mode 100644
index ecfcbc0..0000000
Binary files a/Lib/original/hvc/resources/scripts/colors_hvc.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/core/core.lua b/Lib/original/hvc/resources/scripts/core/core.lua
deleted file mode 100644
index 3a201be..0000000
Binary files a/Lib/original/hvc/resources/scripts/core/core.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/core/math.lua b/Lib/original/hvc/resources/scripts/core/math.lua
deleted file mode 100644
index 80d969c..0000000
Binary files a/Lib/original/hvc/resources/scripts/core/math.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/core/pool.lua b/Lib/original/hvc/resources/scripts/core/pool.lua
deleted file mode 100644
index e801c21..0000000
Binary files a/Lib/original/hvc/resources/scripts/core/pool.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/core/table.lua b/Lib/original/hvc/resources/scripts/core/table.lua
deleted file mode 100644
index 875d897..0000000
Binary files a/Lib/original/hvc/resources/scripts/core/table.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/core/vector2d.lua b/Lib/original/hvc/resources/scripts/core/vector2d.lua
deleted file mode 100644
index 3203305..0000000
Binary files a/Lib/original/hvc/resources/scripts/core/vector2d.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/cursormanager.lua b/Lib/original/hvc/resources/scripts/cursormanager.lua
deleted file mode 100644
index 66502d2..0000000
Binary files a/Lib/original/hvc/resources/scripts/cursormanager.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/data_gamelist.lua b/Lib/original/hvc/resources/scripts/data_gamelist.lua
deleted file mode 100644
index 5742426..0000000
Binary files a/Lib/original/hvc/resources/scripts/data_gamelist.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/dbg_menu_final.lua b/Lib/original/hvc/resources/scripts/dbg_menu_final.lua
deleted file mode 100644
index 2ad85b8..0000000
Binary files a/Lib/original/hvc/resources/scripts/dbg_menu_final.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/dot_number.lua b/Lib/original/hvc/resources/scripts/dot_number.lua
deleted file mode 100644
index 1ef1eb8..0000000
Binary files a/Lib/original/hvc/resources/scripts/dot_number.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/effect_smoke.lua b/Lib/original/hvc/resources/scripts/effect_smoke.lua
deleted file mode 100644
index fca81ca..0000000
Binary files a/Lib/original/hvc/resources/scripts/effect_smoke.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui/gui_button.lua b/Lib/original/hvc/resources/scripts/gui/gui_button.lua
deleted file mode 100644
index 6fd9445..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui/gui_button.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui/gui_check.lua b/Lib/original/hvc/resources/scripts/gui/gui_check.lua
deleted file mode 100644
index 3e40941..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui/gui_check.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui/gui_element.lua b/Lib/original/hvc/resources/scripts/gui/gui_element.lua
deleted file mode 100644
index 468f710..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui/gui_element.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui/gui_gridlayout.lua b/Lib/original/hvc/resources/scripts/gui/gui_gridlayout.lua
deleted file mode 100644
index cc5dc16..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui/gui_gridlayout.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui/gui_hlayout.lua b/Lib/original/hvc/resources/scripts/gui/gui_hlayout.lua
deleted file mode 100644
index 6001bba..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui/gui_hlayout.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui/gui_inputs.lua b/Lib/original/hvc/resources/scripts/gui/gui_inputs.lua
deleted file mode 100644
index db7d6d0..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui/gui_inputs.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui/gui_layout.lua b/Lib/original/hvc/resources/scripts/gui/gui_layout.lua
deleted file mode 100644
index e38feb2..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui/gui_layout.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui/gui_list.lua b/Lib/original/hvc/resources/scripts/gui/gui_list.lua
deleted file mode 100644
index 374eb4c..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui/gui_list.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui/gui_popup.lua b/Lib/original/hvc/resources/scripts/gui/gui_popup.lua
deleted file mode 100644
index 8af0288..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui/gui_popup.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui/gui_radiogroup.lua b/Lib/original/hvc/resources/scripts/gui/gui_radiogroup.lua
deleted file mode 100644
index 2a447b6..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui/gui_radiogroup.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui/gui_slider.lua b/Lib/original/hvc/resources/scripts/gui/gui_slider.lua
deleted file mode 100644
index 7335f0a..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui/gui_slider.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui/gui_vlayout.lua b/Lib/original/hvc/resources/scripts/gui/gui_vlayout.lua
deleted file mode 100644
index 3389dbb..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui/gui_vlayout.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui_container.lua b/Lib/original/hvc/resources/scripts/gui_container.lua
deleted file mode 100644
index fb16e9b..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui_container.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/gui_custom.lua b/Lib/original/hvc/resources/scripts/gui_custom.lua
deleted file mode 100644
index ca92582..0000000
Binary files a/Lib/original/hvc/resources/scripts/gui_custom.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/helper_index.lua b/Lib/original/hvc/resources/scripts/helper_index.lua
deleted file mode 100644
index 2df1fef..0000000
Binary files a/Lib/original/hvc/resources/scripts/helper_index.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/helper_nodes.lua b/Lib/original/hvc/resources/scripts/helper_nodes.lua
deleted file mode 100644
index e715fe6..0000000
Binary files a/Lib/original/hvc/resources/scripts/helper_nodes.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/helper_table.lua b/Lib/original/hvc/resources/scripts/helper_table.lua
deleted file mode 100644
index 44251fc..0000000
Binary files a/Lib/original/hvc/resources/scripts/helper_table.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/helpers/httphelper.lua b/Lib/original/hvc/resources/scripts/helpers/httphelper.lua
deleted file mode 100644
index bb679f0..0000000
Binary files a/Lib/original/hvc/resources/scripts/helpers/httphelper.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/helpers/savehelper.lua b/Lib/original/hvc/resources/scripts/helpers/savehelper.lua
deleted file mode 100644
index d5dc005..0000000
Binary files a/Lib/original/hvc/resources/scripts/helpers/savehelper.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/lbl_component.lua b/Lib/original/hvc/resources/scripts/lbl_component.lua
deleted file mode 100644
index db68e3a..0000000
Binary files a/Lib/original/hvc/resources/scripts/lbl_component.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/main.lua b/Lib/original/hvc/resources/scripts/main.lua
deleted file mode 100644
index 4fd38d1..0000000
Binary files a/Lib/original/hvc/resources/scripts/main.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/mcp_commands.lua b/Lib/original/hvc/resources/scripts/mcp_commands.lua
deleted file mode 100644
index 3c19aed..0000000
Binary files a/Lib/original/hvc/resources/scripts/mcp_commands.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/pixel_character.lua b/Lib/original/hvc/resources/scripts/pixel_character.lua
deleted file mode 100644
index f0d0917..0000000
Binary files a/Lib/original/hvc/resources/scripts/pixel_character.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/position_changer.lua b/Lib/original/hvc/resources/scripts/position_changer.lua
deleted file mode 100644
index 18b8bd9..0000000
Binary files a/Lib/original/hvc/resources/scripts/position_changer.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/position_changer_node.lua b/Lib/original/hvc/resources/scripts/position_changer_node.lua
deleted file mode 100644
index dc86b85..0000000
Binary files a/Lib/original/hvc/resources/scripts/position_changer_node.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/snd_component.lua b/Lib/original/hvc/resources/scripts/snd_component.lua
deleted file mode 100644
index f2bf799..0000000
Binary files a/Lib/original/hvc/resources/scripts/snd_component.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/store.lua b/Lib/original/hvc/resources/scripts/store.lua
deleted file mode 100644
index 7bb7b82..0000000
Binary files a/Lib/original/hvc/resources/scripts/store.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/suspentionpoints.lua b/Lib/original/hvc/resources/scripts/suspentionpoints.lua
deleted file mode 100644
index 74f42fc..0000000
Binary files a/Lib/original/hvc/resources/scripts/suspentionpoints.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_button.lua b/Lib/original/hvc/resources/scripts/sys_button.lua
deleted file mode 100644
index 014a907..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_button.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_button_longpress.lua b/Lib/original/hvc/resources/scripts/sys_button_longpress.lua
deleted file mode 100644
index f629130..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_button_longpress.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_copyright.lua b/Lib/original/hvc/resources/scripts/sys_copyright.lua
deleted file mode 100644
index 4530cd9..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_copyright.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_copyright_text.lua b/Lib/original/hvc/resources/scripts/sys_copyright_text.lua
deleted file mode 100644
index 283ae77..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_copyright_text.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_dialog.lua b/Lib/original/hvc/resources/scripts/sys_dialog.lua
deleted file mode 100644
index 14e6162..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_dialog.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_game_card.lua b/Lib/original/hvc/resources/scripts/sys_game_card.lua
deleted file mode 100644
index 27960f3..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_game_card.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_game_card_show.lua b/Lib/original/hvc/resources/scripts/sys_game_card_show.lua
deleted file mode 100644
index 484126a..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_game_card_show.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_gametitlelist.lua b/Lib/original/hvc/resources/scripts/sys_gametitlelist.lua
deleted file mode 100644
index 8d75d4c..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_gametitlelist.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_home_floating_cards.lua b/Lib/original/hvc/resources/scripts/sys_home_floating_cards.lua
deleted file mode 100644
index bf60c28..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_home_floating_cards.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_homemenu.lua b/Lib/original/hvc/resources/scripts/sys_homemenu.lua
deleted file mode 100644
index cc00bff..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_homemenu.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_homemenu_sortorder.lua b/Lib/original/hvc/resources/scripts/sys_homemenu_sortorder.lua
deleted file mode 100644
index 29ae584..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_homemenu_sortorder.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_hud.lua b/Lib/original/hvc/resources/scripts/sys_hud.lua
deleted file mode 100644
index 5e4602c..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_hud.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_manual.lua b/Lib/original/hvc/resources/scripts/sys_manual.lua
deleted file mode 100644
index 42c6008..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_manual.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_menubaru.lua b/Lib/original/hvc/resources/scripts/sys_menubaru.lua
deleted file mode 100644
index 3a06ef3..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_menubaru.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_option.lua b/Lib/original/hvc/resources/scripts/sys_option.lua
deleted file mode 100644
index cd21be5..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_option.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_option_item.lua b/Lib/original/hvc/resources/scripts/sys_option_item.lua
deleted file mode 100644
index 8f7a29f..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_option_item.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_option_languages.lua b/Lib/original/hvc/resources/scripts/sys_option_languages.lua
deleted file mode 100644
index 7c12fb7..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_option_languages.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_option_setting.lua b/Lib/original/hvc/resources/scripts/sys_option_setting.lua
deleted file mode 100644
index 4dd9a82..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_option_setting.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_option_setting_item.lua b/Lib/original/hvc/resources/scripts/sys_option_setting_item.lua
deleted file mode 100644
index c35e781..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_option_setting_item.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_popup_warning.lua b/Lib/original/hvc/resources/scripts/sys_popup_warning.lua
deleted file mode 100644
index 1020e5b..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_popup_warning.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_resume_card.lua b/Lib/original/hvc/resources/scripts/sys_resume_card.lua
deleted file mode 100644
index a8c9bfb..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_resume_card.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_resume_changemode.lua b/Lib/original/hvc/resources/scripts/sys_resume_changemode.lua
deleted file mode 100644
index 882da1d..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_resume_changemode.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_resume_emptymode.lua b/Lib/original/hvc/resources/scripts/sys_resume_emptymode.lua
deleted file mode 100644
index e63741c..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_resume_emptymode.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_resume_float_wing.lua b/Lib/original/hvc/resources/scripts/sys_resume_float_wing.lua
deleted file mode 100644
index 6696af0..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_resume_float_wing.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_resume_floating_card.lua b/Lib/original/hvc/resources/scripts/sys_resume_floating_card.lua
deleted file mode 100644
index dc8669b..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_resume_floating_card.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_resume_lockmode.lua b/Lib/original/hvc/resources/scripts/sys_resume_lockmode.lua
deleted file mode 100644
index 6996538..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_resume_lockmode.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_resumedatalist.lua b/Lib/original/hvc/resources/scripts/sys_resumedatalist.lua
deleted file mode 100644
index fd770ed..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_resumedatalist.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_resumemenu.lua b/Lib/original/hvc/resources/scripts/sys_resumemenu.lua
deleted file mode 100644
index 31334a8..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_resumemenu.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_thumbnail.lua b/Lib/original/hvc/resources/scripts/sys_thumbnail.lua
deleted file mode 100644
index a31940d..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_thumbnail.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_thumbnail_icon.lua b/Lib/original/hvc/resources/scripts/sys_thumbnail_icon.lua
deleted file mode 100644
index a2bc571..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_thumbnail_icon.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_transition.lua b/Lib/original/hvc/resources/scripts/sys_transition.lua
deleted file mode 100644
index 9ce56d4..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_transition.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_wallpaper.lua b/Lib/original/hvc/resources/scripts/sys_wallpaper.lua
deleted file mode 100644
index 6703695..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_wallpaper.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_wallpaper_bg0.lua b/Lib/original/hvc/resources/scripts/sys_wallpaper_bg0.lua
deleted file mode 100644
index b70f5db..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_wallpaper_bg0.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/sys_wallpaper_fg0.lua b/Lib/original/hvc/resources/scripts/sys_wallpaper_fg0.lua
deleted file mode 100644
index 84c5671..0000000
Binary files a/Lib/original/hvc/resources/scripts/sys_wallpaper_fg0.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/system.lua b/Lib/original/hvc/resources/scripts/system.lua
deleted file mode 100644
index e78ec23..0000000
Binary files a/Lib/original/hvc/resources/scripts/system.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/test_program.lua b/Lib/original/hvc/resources/scripts/test_program.lua
deleted file mode 100644
index 1c39c2c..0000000
Binary files a/Lib/original/hvc/resources/scripts/test_program.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/tween/tween_animate_node.lua b/Lib/original/hvc/resources/scripts/tween/tween_animate_node.lua
deleted file mode 100644
index ee43d1a..0000000
Binary files a/Lib/original/hvc/resources/scripts/tween/tween_animate_node.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/tween/tween_callback_node.lua b/Lib/original/hvc/resources/scripts/tween/tween_callback_node.lua
deleted file mode 100644
index 9bf08a9..0000000
Binary files a/Lib/original/hvc/resources/scripts/tween/tween_callback_node.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/tween/tween_coroutine_node.lua b/Lib/original/hvc/resources/scripts/tween/tween_coroutine_node.lua
deleted file mode 100644
index 73fc43d..0000000
Binary files a/Lib/original/hvc/resources/scripts/tween/tween_coroutine_node.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/tween/tween_loop_node.lua b/Lib/original/hvc/resources/scripts/tween/tween_loop_node.lua
deleted file mode 100644
index 86a4fd2..0000000
Binary files a/Lib/original/hvc/resources/scripts/tween/tween_loop_node.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/tween/tween_manager.lua b/Lib/original/hvc/resources/scripts/tween/tween_manager.lua
deleted file mode 100644
index dbf0086..0000000
Binary files a/Lib/original/hvc/resources/scripts/tween/tween_manager.lua and /dev/null differ
diff --git a/Lib/original/hvc/resources/scripts/tween/tween_sequence_node.lua b/Lib/original/hvc/resources/scripts/tween/tween_sequence_node.lua
deleted file mode 100644
index 4fdaf94..0000000
Binary files a/Lib/original/hvc/resources/scripts/tween/tween_sequence_node.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/animation/blink.lua b/Lib/original/hvcj/resources/animation/blink.lua
deleted file mode 100644
index 47946c3..0000000
Binary files a/Lib/original/hvcj/resources/animation/blink.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/animation/fuwafuwa.lua b/Lib/original/hvcj/resources/animation/fuwafuwa.lua
deleted file mode 100644
index ae96fd1..0000000
Binary files a/Lib/original/hvcj/resources/animation/fuwafuwa.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/animation/lr_arrow.lua b/Lib/original/hvcj/resources/animation/lr_arrow.lua
deleted file mode 100644
index d7f7eed..0000000
Binary files a/Lib/original/hvcj/resources/animation/lr_arrow.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/animation/slide_in.lua b/Lib/original/hvcj/resources/animation/slide_in.lua
deleted file mode 100644
index bfc7579..0000000
Binary files a/Lib/original/hvcj/resources/animation/slide_in.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/animation/slide_out_down.lua b/Lib/original/hvcj/resources/animation/slide_out_down.lua
deleted file mode 100644
index 846d792..0000000
Binary files a/Lib/original/hvcj/resources/animation/slide_out_down.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/animation/slide_out_up.lua b/Lib/original/hvcj/resources/animation/slide_out_up.lua
deleted file mode 100644
index 56078c1..0000000
Binary files a/Lib/original/hvcj/resources/animation/slide_out_up.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/animation/tweenanimator.lua b/Lib/original/hvcj/resources/animation/tweenanimator.lua
deleted file mode 100644
index e40dd0a..0000000
Binary files a/Lib/original/hvcj/resources/animation/tweenanimator.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/bg.lua b/Lib/original/hvcj/resources/scripts/bg.lua
deleted file mode 100644
index a4ec017..0000000
Binary files a/Lib/original/hvcj/resources/scripts/bg.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/character.lua b/Lib/original/hvcj/resources/scripts/character.lua
deleted file mode 100644
index 111c4ed..0000000
Binary files a/Lib/original/hvcj/resources/scripts/character.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/colors_hvc.lua b/Lib/original/hvcj/resources/scripts/colors_hvc.lua
deleted file mode 100644
index 1245ef9..0000000
Binary files a/Lib/original/hvcj/resources/scripts/colors_hvc.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/constants.lua b/Lib/original/hvcj/resources/scripts/constants.lua
deleted file mode 100644
index fd21156..0000000
Binary files a/Lib/original/hvcj/resources/scripts/constants.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/core/core.lua b/Lib/original/hvcj/resources/scripts/core/core.lua
deleted file mode 100644
index 3a201be..0000000
Binary files a/Lib/original/hvcj/resources/scripts/core/core.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/core/math.lua b/Lib/original/hvcj/resources/scripts/core/math.lua
deleted file mode 100644
index 80d969c..0000000
Binary files a/Lib/original/hvcj/resources/scripts/core/math.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/core/pool.lua b/Lib/original/hvcj/resources/scripts/core/pool.lua
deleted file mode 100644
index e801c21..0000000
Binary files a/Lib/original/hvcj/resources/scripts/core/pool.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/core/table.lua b/Lib/original/hvcj/resources/scripts/core/table.lua
deleted file mode 100644
index 875d897..0000000
Binary files a/Lib/original/hvcj/resources/scripts/core/table.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/core/vector2d.lua b/Lib/original/hvcj/resources/scripts/core/vector2d.lua
deleted file mode 100644
index 3203305..0000000
Binary files a/Lib/original/hvcj/resources/scripts/core/vector2d.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/cursormanager.lua b/Lib/original/hvcj/resources/scripts/cursormanager.lua
deleted file mode 100644
index 66502d2..0000000
Binary files a/Lib/original/hvcj/resources/scripts/cursormanager.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/data_gamelist.lua b/Lib/original/hvcj/resources/scripts/data_gamelist.lua
deleted file mode 100644
index 5742426..0000000
Binary files a/Lib/original/hvcj/resources/scripts/data_gamelist.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/dbg_menu_final.lua b/Lib/original/hvcj/resources/scripts/dbg_menu_final.lua
deleted file mode 100644
index 2ad85b8..0000000
Binary files a/Lib/original/hvcj/resources/scripts/dbg_menu_final.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/dot_number.lua b/Lib/original/hvcj/resources/scripts/dot_number.lua
deleted file mode 100644
index 1ef1eb8..0000000
Binary files a/Lib/original/hvcj/resources/scripts/dot_number.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/effect_smoke.lua b/Lib/original/hvcj/resources/scripts/effect_smoke.lua
deleted file mode 100644
index fca81ca..0000000
Binary files a/Lib/original/hvcj/resources/scripts/effect_smoke.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui/gui_button.lua b/Lib/original/hvcj/resources/scripts/gui/gui_button.lua
deleted file mode 100644
index 6fd9445..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui/gui_button.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui/gui_check.lua b/Lib/original/hvcj/resources/scripts/gui/gui_check.lua
deleted file mode 100644
index 3e40941..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui/gui_check.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui/gui_element.lua b/Lib/original/hvcj/resources/scripts/gui/gui_element.lua
deleted file mode 100644
index 468f710..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui/gui_element.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui/gui_gridlayout.lua b/Lib/original/hvcj/resources/scripts/gui/gui_gridlayout.lua
deleted file mode 100644
index cc5dc16..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui/gui_gridlayout.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui/gui_hlayout.lua b/Lib/original/hvcj/resources/scripts/gui/gui_hlayout.lua
deleted file mode 100644
index 6001bba..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui/gui_hlayout.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui/gui_inputs.lua b/Lib/original/hvcj/resources/scripts/gui/gui_inputs.lua
deleted file mode 100644
index db7d6d0..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui/gui_inputs.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui/gui_layout.lua b/Lib/original/hvcj/resources/scripts/gui/gui_layout.lua
deleted file mode 100644
index e38feb2..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui/gui_layout.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui/gui_list.lua b/Lib/original/hvcj/resources/scripts/gui/gui_list.lua
deleted file mode 100644
index 374eb4c..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui/gui_list.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui/gui_popup.lua b/Lib/original/hvcj/resources/scripts/gui/gui_popup.lua
deleted file mode 100644
index e76c21a..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui/gui_popup.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui/gui_radiogroup.lua b/Lib/original/hvcj/resources/scripts/gui/gui_radiogroup.lua
deleted file mode 100644
index 2a447b6..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui/gui_radiogroup.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui/gui_slider.lua b/Lib/original/hvcj/resources/scripts/gui/gui_slider.lua
deleted file mode 100644
index 7335f0a..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui/gui_slider.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui/gui_vlayout.lua b/Lib/original/hvcj/resources/scripts/gui/gui_vlayout.lua
deleted file mode 100644
index 3389dbb..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui/gui_vlayout.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui_container.lua b/Lib/original/hvcj/resources/scripts/gui_container.lua
deleted file mode 100644
index fb16e9b..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui_container.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/gui_custom.lua b/Lib/original/hvcj/resources/scripts/gui_custom.lua
deleted file mode 100644
index ca92582..0000000
Binary files a/Lib/original/hvcj/resources/scripts/gui_custom.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/helper_index.lua b/Lib/original/hvcj/resources/scripts/helper_index.lua
deleted file mode 100644
index 2df1fef..0000000
Binary files a/Lib/original/hvcj/resources/scripts/helper_index.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/helper_nodes.lua b/Lib/original/hvcj/resources/scripts/helper_nodes.lua
deleted file mode 100644
index e715fe6..0000000
Binary files a/Lib/original/hvcj/resources/scripts/helper_nodes.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/helper_table.lua b/Lib/original/hvcj/resources/scripts/helper_table.lua
deleted file mode 100644
index 44251fc..0000000
Binary files a/Lib/original/hvcj/resources/scripts/helper_table.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/helpers/httphelper.lua b/Lib/original/hvcj/resources/scripts/helpers/httphelper.lua
deleted file mode 100644
index bb679f0..0000000
Binary files a/Lib/original/hvcj/resources/scripts/helpers/httphelper.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/helpers/savehelper.lua b/Lib/original/hvcj/resources/scripts/helpers/savehelper.lua
deleted file mode 100644
index d5dc005..0000000
Binary files a/Lib/original/hvcj/resources/scripts/helpers/savehelper.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/lbl_component.lua b/Lib/original/hvcj/resources/scripts/lbl_component.lua
deleted file mode 100644
index db68e3a..0000000
Binary files a/Lib/original/hvcj/resources/scripts/lbl_component.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/main.lua b/Lib/original/hvcj/resources/scripts/main.lua
deleted file mode 100644
index 183b4f9..0000000
Binary files a/Lib/original/hvcj/resources/scripts/main.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/mcp_commands.lua b/Lib/original/hvcj/resources/scripts/mcp_commands.lua
deleted file mode 100644
index effb303..0000000
Binary files a/Lib/original/hvcj/resources/scripts/mcp_commands.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/pixel_character.lua b/Lib/original/hvcj/resources/scripts/pixel_character.lua
deleted file mode 100644
index f0d0917..0000000
Binary files a/Lib/original/hvcj/resources/scripts/pixel_character.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/platform_hvc.lua b/Lib/original/hvcj/resources/scripts/platform_hvc.lua
deleted file mode 100644
index e9c9f3e..0000000
Binary files a/Lib/original/hvcj/resources/scripts/platform_hvc.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/position_changer.lua b/Lib/original/hvcj/resources/scripts/position_changer.lua
deleted file mode 100644
index 18b8bd9..0000000
Binary files a/Lib/original/hvcj/resources/scripts/position_changer.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/position_changer_node.lua b/Lib/original/hvcj/resources/scripts/position_changer_node.lua
deleted file mode 100644
index dc86b85..0000000
Binary files a/Lib/original/hvcj/resources/scripts/position_changer_node.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sample_asset.lua b/Lib/original/hvcj/resources/scripts/sample_asset.lua
deleted file mode 100644
index b0bf96f..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sample_asset.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/savecontenthelper.lua b/Lib/original/hvcj/resources/scripts/savecontenthelper.lua
deleted file mode 100644
index eb94013..0000000
Binary files a/Lib/original/hvcj/resources/scripts/savecontenthelper.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/snd_component.lua b/Lib/original/hvcj/resources/scripts/snd_component.lua
deleted file mode 100644
index f2bf799..0000000
Binary files a/Lib/original/hvcj/resources/scripts/snd_component.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/store.lua b/Lib/original/hvcj/resources/scripts/store.lua
deleted file mode 100644
index 7bb7b82..0000000
Binary files a/Lib/original/hvcj/resources/scripts/store.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/suspentionpoints.lua b/Lib/original/hvcj/resources/scripts/suspentionpoints.lua
deleted file mode 100644
index 9b17e94..0000000
Binary files a/Lib/original/hvcj/resources/scripts/suspentionpoints.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_button.lua b/Lib/original/hvcj/resources/scripts/sys_button.lua
deleted file mode 100644
index 014a907..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_button.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_button_longpress.lua b/Lib/original/hvcj/resources/scripts/sys_button_longpress.lua
deleted file mode 100644
index c009a9f..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_button_longpress.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_copyright.lua b/Lib/original/hvcj/resources/scripts/sys_copyright.lua
deleted file mode 100644
index 906436c..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_copyright.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_copyright_text.lua b/Lib/original/hvcj/resources/scripts/sys_copyright_text.lua
deleted file mode 100644
index 88a2685..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_copyright_text.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_dialog.lua b/Lib/original/hvcj/resources/scripts/sys_dialog.lua
deleted file mode 100644
index 14e6162..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_dialog.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_game_card.lua b/Lib/original/hvcj/resources/scripts/sys_game_card.lua
deleted file mode 100644
index 27960f3..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_game_card.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_game_card_show.lua b/Lib/original/hvcj/resources/scripts/sys_game_card_show.lua
deleted file mode 100644
index 484126a..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_game_card_show.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_gametitlelist.lua b/Lib/original/hvcj/resources/scripts/sys_gametitlelist.lua
deleted file mode 100644
index 16f99e7..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_gametitlelist.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_home_floating_cards.lua b/Lib/original/hvcj/resources/scripts/sys_home_floating_cards.lua
deleted file mode 100644
index 5a445d2..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_home_floating_cards.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_homemenu.lua b/Lib/original/hvcj/resources/scripts/sys_homemenu.lua
deleted file mode 100644
index cc00bff..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_homemenu.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_homemenu_sortorder.lua b/Lib/original/hvcj/resources/scripts/sys_homemenu_sortorder.lua
deleted file mode 100644
index 29ae584..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_homemenu_sortorder.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_hud.lua b/Lib/original/hvcj/resources/scripts/sys_hud.lua
deleted file mode 100644
index 5e4602c..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_hud.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_manual.lua b/Lib/original/hvcj/resources/scripts/sys_manual.lua
deleted file mode 100644
index 42c6008..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_manual.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_menubaru.lua b/Lib/original/hvcj/resources/scripts/sys_menubaru.lua
deleted file mode 100644
index ab4eedf..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_menubaru.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_option.lua b/Lib/original/hvcj/resources/scripts/sys_option.lua
deleted file mode 100644
index cd21be5..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_option.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_option_item.lua b/Lib/original/hvcj/resources/scripts/sys_option_item.lua
deleted file mode 100644
index 8f7a29f..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_option_item.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_option_languages.lua b/Lib/original/hvcj/resources/scripts/sys_option_languages.lua
deleted file mode 100644
index 7c12fb7..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_option_languages.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_option_setting.lua b/Lib/original/hvcj/resources/scripts/sys_option_setting.lua
deleted file mode 100644
index 68b67ec..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_option_setting.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_option_setting_item.lua b/Lib/original/hvcj/resources/scripts/sys_option_setting_item.lua
deleted file mode 100644
index c35e781..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_option_setting_item.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_popup_warning.lua b/Lib/original/hvcj/resources/scripts/sys_popup_warning.lua
deleted file mode 100644
index 1020e5b..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_popup_warning.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_resume_card.lua b/Lib/original/hvcj/resources/scripts/sys_resume_card.lua
deleted file mode 100644
index b2bbdae..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_resume_card.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_resume_changemode.lua b/Lib/original/hvcj/resources/scripts/sys_resume_changemode.lua
deleted file mode 100644
index 882da1d..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_resume_changemode.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_resume_emptymode.lua b/Lib/original/hvcj/resources/scripts/sys_resume_emptymode.lua
deleted file mode 100644
index e63741c..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_resume_emptymode.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_resume_float_wing.lua b/Lib/original/hvcj/resources/scripts/sys_resume_float_wing.lua
deleted file mode 100644
index 6696af0..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_resume_float_wing.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_resume_floating_card.lua b/Lib/original/hvcj/resources/scripts/sys_resume_floating_card.lua
deleted file mode 100644
index dc8669b..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_resume_floating_card.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_resume_lockmode.lua b/Lib/original/hvcj/resources/scripts/sys_resume_lockmode.lua
deleted file mode 100644
index 866d966..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_resume_lockmode.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_resumedatalist.lua b/Lib/original/hvcj/resources/scripts/sys_resumedatalist.lua
deleted file mode 100644
index 5344967..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_resumedatalist.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_resumemenu.lua b/Lib/original/hvcj/resources/scripts/sys_resumemenu.lua
deleted file mode 100644
index a5b96e4..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_resumemenu.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_thumbnail.lua b/Lib/original/hvcj/resources/scripts/sys_thumbnail.lua
deleted file mode 100644
index a31940d..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_thumbnail.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_thumbnail_icon.lua b/Lib/original/hvcj/resources/scripts/sys_thumbnail_icon.lua
deleted file mode 100644
index 2c95444..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_thumbnail_icon.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_transition.lua b/Lib/original/hvcj/resources/scripts/sys_transition.lua
deleted file mode 100644
index b05e943..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_transition.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_wallpaper.lua b/Lib/original/hvcj/resources/scripts/sys_wallpaper.lua
deleted file mode 100644
index c63d8d6..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_wallpaper.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_wallpaper_bg0.lua b/Lib/original/hvcj/resources/scripts/sys_wallpaper_bg0.lua
deleted file mode 100644
index 3073b7b..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_wallpaper_bg0.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/sys_wallpaper_fg0.lua b/Lib/original/hvcj/resources/scripts/sys_wallpaper_fg0.lua
deleted file mode 100644
index 69e7f97..0000000
Binary files a/Lib/original/hvcj/resources/scripts/sys_wallpaper_fg0.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/system.lua b/Lib/original/hvcj/resources/scripts/system.lua
deleted file mode 100644
index 7491e2c..0000000
Binary files a/Lib/original/hvcj/resources/scripts/system.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/test_program.lua b/Lib/original/hvcj/resources/scripts/test_program.lua
deleted file mode 100644
index a0d3973..0000000
Binary files a/Lib/original/hvcj/resources/scripts/test_program.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/tween/tween_animate_node.lua b/Lib/original/hvcj/resources/scripts/tween/tween_animate_node.lua
deleted file mode 100644
index ee43d1a..0000000
Binary files a/Lib/original/hvcj/resources/scripts/tween/tween_animate_node.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/tween/tween_callback_node.lua b/Lib/original/hvcj/resources/scripts/tween/tween_callback_node.lua
deleted file mode 100644
index 9bf08a9..0000000
Binary files a/Lib/original/hvcj/resources/scripts/tween/tween_callback_node.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/tween/tween_coroutine_node.lua b/Lib/original/hvcj/resources/scripts/tween/tween_coroutine_node.lua
deleted file mode 100644
index 73fc43d..0000000
Binary files a/Lib/original/hvcj/resources/scripts/tween/tween_coroutine_node.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/tween/tween_loop_node.lua b/Lib/original/hvcj/resources/scripts/tween/tween_loop_node.lua
deleted file mode 100644
index 86a4fd2..0000000
Binary files a/Lib/original/hvcj/resources/scripts/tween/tween_loop_node.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/tween/tween_manager.lua b/Lib/original/hvcj/resources/scripts/tween/tween_manager.lua
deleted file mode 100644
index dbf0086..0000000
Binary files a/Lib/original/hvcj/resources/scripts/tween/tween_manager.lua and /dev/null differ
diff --git a/Lib/original/hvcj/resources/scripts/tween/tween_sequence_node.lua b/Lib/original/hvcj/resources/scripts/tween/tween_sequence_node.lua
deleted file mode 100644
index 4fdaf94..0000000
Binary files a/Lib/original/hvcj/resources/scripts/tween/tween_sequence_node.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/animation/blink.lua b/Lib/original/nes/resources/animation/blink.lua
deleted file mode 100644
index 47946c3..0000000
Binary files a/Lib/original/nes/resources/animation/blink.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/animation/fuwafuwa.lua b/Lib/original/nes/resources/animation/fuwafuwa.lua
deleted file mode 100644
index ae96fd1..0000000
Binary files a/Lib/original/nes/resources/animation/fuwafuwa.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/animation/lr_arrow.lua b/Lib/original/nes/resources/animation/lr_arrow.lua
deleted file mode 100644
index d7f7eed..0000000
Binary files a/Lib/original/nes/resources/animation/lr_arrow.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/animation/slide_in.lua b/Lib/original/nes/resources/animation/slide_in.lua
deleted file mode 100644
index b58e4aa..0000000
Binary files a/Lib/original/nes/resources/animation/slide_in.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/animation/slide_out_down.lua b/Lib/original/nes/resources/animation/slide_out_down.lua
deleted file mode 100644
index 51e7b91..0000000
Binary files a/Lib/original/nes/resources/animation/slide_out_down.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/animation/slide_out_up.lua b/Lib/original/nes/resources/animation/slide_out_up.lua
deleted file mode 100644
index b23ebd3..0000000
Binary files a/Lib/original/nes/resources/animation/slide_out_up.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/animation/tweenanimator.lua b/Lib/original/nes/resources/animation/tweenanimator.lua
deleted file mode 100644
index e40dd0a..0000000
Binary files a/Lib/original/nes/resources/animation/tweenanimator.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/bg.lua b/Lib/original/nes/resources/scripts/bg.lua
deleted file mode 100644
index a4ec017..0000000
Binary files a/Lib/original/nes/resources/scripts/bg.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/character.lua b/Lib/original/nes/resources/scripts/character.lua
deleted file mode 100644
index 0094a9e..0000000
Binary files a/Lib/original/nes/resources/scripts/character.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/colors_nes.lua b/Lib/original/nes/resources/scripts/colors_nes.lua
deleted file mode 100644
index 2468f25..0000000
Binary files a/Lib/original/nes/resources/scripts/colors_nes.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/core/core.lua b/Lib/original/nes/resources/scripts/core/core.lua
deleted file mode 100644
index 3a201be..0000000
Binary files a/Lib/original/nes/resources/scripts/core/core.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/core/math.lua b/Lib/original/nes/resources/scripts/core/math.lua
deleted file mode 100644
index 80d969c..0000000
Binary files a/Lib/original/nes/resources/scripts/core/math.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/core/pool.lua b/Lib/original/nes/resources/scripts/core/pool.lua
deleted file mode 100644
index e801c21..0000000
Binary files a/Lib/original/nes/resources/scripts/core/pool.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/core/table.lua b/Lib/original/nes/resources/scripts/core/table.lua
deleted file mode 100644
index 875d897..0000000
Binary files a/Lib/original/nes/resources/scripts/core/table.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/core/vector2d.lua b/Lib/original/nes/resources/scripts/core/vector2d.lua
deleted file mode 100644
index 3203305..0000000
Binary files a/Lib/original/nes/resources/scripts/core/vector2d.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/cursormanager.lua b/Lib/original/nes/resources/scripts/cursormanager.lua
deleted file mode 100644
index 66502d2..0000000
Binary files a/Lib/original/nes/resources/scripts/cursormanager.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/data_gamelist.lua b/Lib/original/nes/resources/scripts/data_gamelist.lua
deleted file mode 100644
index 5742426..0000000
Binary files a/Lib/original/nes/resources/scripts/data_gamelist.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/dbg_menu_final.lua b/Lib/original/nes/resources/scripts/dbg_menu_final.lua
deleted file mode 100644
index 2ad85b8..0000000
Binary files a/Lib/original/nes/resources/scripts/dbg_menu_final.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/dot_number.lua b/Lib/original/nes/resources/scripts/dot_number.lua
deleted file mode 100644
index 1ef1eb8..0000000
Binary files a/Lib/original/nes/resources/scripts/dot_number.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/effect_smoke.lua b/Lib/original/nes/resources/scripts/effect_smoke.lua
deleted file mode 100644
index fca81ca..0000000
Binary files a/Lib/original/nes/resources/scripts/effect_smoke.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui/gui_button.lua b/Lib/original/nes/resources/scripts/gui/gui_button.lua
deleted file mode 100644
index 6fd9445..0000000
Binary files a/Lib/original/nes/resources/scripts/gui/gui_button.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui/gui_check.lua b/Lib/original/nes/resources/scripts/gui/gui_check.lua
deleted file mode 100644
index 3e40941..0000000
Binary files a/Lib/original/nes/resources/scripts/gui/gui_check.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui/gui_element.lua b/Lib/original/nes/resources/scripts/gui/gui_element.lua
deleted file mode 100644
index 468f710..0000000
Binary files a/Lib/original/nes/resources/scripts/gui/gui_element.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui/gui_gridlayout.lua b/Lib/original/nes/resources/scripts/gui/gui_gridlayout.lua
deleted file mode 100644
index cc5dc16..0000000
Binary files a/Lib/original/nes/resources/scripts/gui/gui_gridlayout.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui/gui_hlayout.lua b/Lib/original/nes/resources/scripts/gui/gui_hlayout.lua
deleted file mode 100644
index 6001bba..0000000
Binary files a/Lib/original/nes/resources/scripts/gui/gui_hlayout.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui/gui_inputs.lua b/Lib/original/nes/resources/scripts/gui/gui_inputs.lua
deleted file mode 100644
index db7d6d0..0000000
Binary files a/Lib/original/nes/resources/scripts/gui/gui_inputs.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui/gui_layout.lua b/Lib/original/nes/resources/scripts/gui/gui_layout.lua
deleted file mode 100644
index e38feb2..0000000
Binary files a/Lib/original/nes/resources/scripts/gui/gui_layout.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui/gui_list.lua b/Lib/original/nes/resources/scripts/gui/gui_list.lua
deleted file mode 100644
index 374eb4c..0000000
Binary files a/Lib/original/nes/resources/scripts/gui/gui_list.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui/gui_popup.lua b/Lib/original/nes/resources/scripts/gui/gui_popup.lua
deleted file mode 100644
index 8af0288..0000000
Binary files a/Lib/original/nes/resources/scripts/gui/gui_popup.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui/gui_radiogroup.lua b/Lib/original/nes/resources/scripts/gui/gui_radiogroup.lua
deleted file mode 100644
index 2a447b6..0000000
Binary files a/Lib/original/nes/resources/scripts/gui/gui_radiogroup.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui/gui_slider.lua b/Lib/original/nes/resources/scripts/gui/gui_slider.lua
deleted file mode 100644
index 7335f0a..0000000
Binary files a/Lib/original/nes/resources/scripts/gui/gui_slider.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui/gui_vlayout.lua b/Lib/original/nes/resources/scripts/gui/gui_vlayout.lua
deleted file mode 100644
index 3389dbb..0000000
Binary files a/Lib/original/nes/resources/scripts/gui/gui_vlayout.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui_container.lua b/Lib/original/nes/resources/scripts/gui_container.lua
deleted file mode 100644
index fb16e9b..0000000
Binary files a/Lib/original/nes/resources/scripts/gui_container.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/gui_custom.lua b/Lib/original/nes/resources/scripts/gui_custom.lua
deleted file mode 100644
index ca92582..0000000
Binary files a/Lib/original/nes/resources/scripts/gui_custom.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/helper_index.lua b/Lib/original/nes/resources/scripts/helper_index.lua
deleted file mode 100644
index 2df1fef..0000000
Binary files a/Lib/original/nes/resources/scripts/helper_index.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/helper_nodes.lua b/Lib/original/nes/resources/scripts/helper_nodes.lua
deleted file mode 100644
index e715fe6..0000000
Binary files a/Lib/original/nes/resources/scripts/helper_nodes.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/helper_table.lua b/Lib/original/nes/resources/scripts/helper_table.lua
deleted file mode 100644
index 44251fc..0000000
Binary files a/Lib/original/nes/resources/scripts/helper_table.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/helpers/httphelper.lua b/Lib/original/nes/resources/scripts/helpers/httphelper.lua
deleted file mode 100644
index bb679f0..0000000
Binary files a/Lib/original/nes/resources/scripts/helpers/httphelper.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/helpers/savehelper.lua b/Lib/original/nes/resources/scripts/helpers/savehelper.lua
deleted file mode 100644
index d5dc005..0000000
Binary files a/Lib/original/nes/resources/scripts/helpers/savehelper.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/lbl_component.lua b/Lib/original/nes/resources/scripts/lbl_component.lua
deleted file mode 100644
index db68e3a..0000000
Binary files a/Lib/original/nes/resources/scripts/lbl_component.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/main.lua b/Lib/original/nes/resources/scripts/main.lua
deleted file mode 100644
index 4fd38d1..0000000
Binary files a/Lib/original/nes/resources/scripts/main.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/mcp_commands.lua b/Lib/original/nes/resources/scripts/mcp_commands.lua
deleted file mode 100644
index 3c19aed..0000000
Binary files a/Lib/original/nes/resources/scripts/mcp_commands.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/pixel_character.lua b/Lib/original/nes/resources/scripts/pixel_character.lua
deleted file mode 100644
index f0d0917..0000000
Binary files a/Lib/original/nes/resources/scripts/pixel_character.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/position_changer.lua b/Lib/original/nes/resources/scripts/position_changer.lua
deleted file mode 100644
index 18b8bd9..0000000
Binary files a/Lib/original/nes/resources/scripts/position_changer.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/position_changer_node.lua b/Lib/original/nes/resources/scripts/position_changer_node.lua
deleted file mode 100644
index dc86b85..0000000
Binary files a/Lib/original/nes/resources/scripts/position_changer_node.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/snd_component.lua b/Lib/original/nes/resources/scripts/snd_component.lua
deleted file mode 100644
index f2bf799..0000000
Binary files a/Lib/original/nes/resources/scripts/snd_component.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/store.lua b/Lib/original/nes/resources/scripts/store.lua
deleted file mode 100644
index 7bb7b82..0000000
Binary files a/Lib/original/nes/resources/scripts/store.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/suspentionpoints.lua b/Lib/original/nes/resources/scripts/suspentionpoints.lua
deleted file mode 100644
index 74f42fc..0000000
Binary files a/Lib/original/nes/resources/scripts/suspentionpoints.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_button.lua b/Lib/original/nes/resources/scripts/sys_button.lua
deleted file mode 100644
index 014a907..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_button.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_button_longpress.lua b/Lib/original/nes/resources/scripts/sys_button_longpress.lua
deleted file mode 100644
index f629130..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_button_longpress.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_copyright.lua b/Lib/original/nes/resources/scripts/sys_copyright.lua
deleted file mode 100644
index 4530cd9..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_copyright.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_copyright_text.lua b/Lib/original/nes/resources/scripts/sys_copyright_text.lua
deleted file mode 100644
index 283ae77..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_copyright_text.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_dialog.lua b/Lib/original/nes/resources/scripts/sys_dialog.lua
deleted file mode 100644
index 14e6162..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_dialog.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_game_card.lua b/Lib/original/nes/resources/scripts/sys_game_card.lua
deleted file mode 100644
index 27960f3..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_game_card.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_game_card_show.lua b/Lib/original/nes/resources/scripts/sys_game_card_show.lua
deleted file mode 100644
index 484126a..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_game_card_show.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_gametitlelist.lua b/Lib/original/nes/resources/scripts/sys_gametitlelist.lua
deleted file mode 100644
index 8d75d4c..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_gametitlelist.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_home_floating_cards.lua b/Lib/original/nes/resources/scripts/sys_home_floating_cards.lua
deleted file mode 100644
index bf60c28..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_home_floating_cards.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_homemenu.lua b/Lib/original/nes/resources/scripts/sys_homemenu.lua
deleted file mode 100644
index cc00bff..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_homemenu.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_homemenu_sortorder.lua b/Lib/original/nes/resources/scripts/sys_homemenu_sortorder.lua
deleted file mode 100644
index 29ae584..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_homemenu_sortorder.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_hud.lua b/Lib/original/nes/resources/scripts/sys_hud.lua
deleted file mode 100644
index 5e4602c..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_hud.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_manual.lua b/Lib/original/nes/resources/scripts/sys_manual.lua
deleted file mode 100644
index 42c6008..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_manual.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_menubaru.lua b/Lib/original/nes/resources/scripts/sys_menubaru.lua
deleted file mode 100644
index 3a06ef3..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_menubaru.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_option.lua b/Lib/original/nes/resources/scripts/sys_option.lua
deleted file mode 100644
index cd21be5..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_option.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_option_item.lua b/Lib/original/nes/resources/scripts/sys_option_item.lua
deleted file mode 100644
index 8f7a29f..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_option_item.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_option_languages.lua b/Lib/original/nes/resources/scripts/sys_option_languages.lua
deleted file mode 100644
index 7c12fb7..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_option_languages.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_option_setting.lua b/Lib/original/nes/resources/scripts/sys_option_setting.lua
deleted file mode 100644
index 4dd9a82..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_option_setting.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_option_setting_item.lua b/Lib/original/nes/resources/scripts/sys_option_setting_item.lua
deleted file mode 100644
index c35e781..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_option_setting_item.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_popup_warning.lua b/Lib/original/nes/resources/scripts/sys_popup_warning.lua
deleted file mode 100644
index 1020e5b..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_popup_warning.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_resume_card.lua b/Lib/original/nes/resources/scripts/sys_resume_card.lua
deleted file mode 100644
index a8c9bfb..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_resume_card.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_resume_changemode.lua b/Lib/original/nes/resources/scripts/sys_resume_changemode.lua
deleted file mode 100644
index 882da1d..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_resume_changemode.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_resume_emptymode.lua b/Lib/original/nes/resources/scripts/sys_resume_emptymode.lua
deleted file mode 100644
index e63741c..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_resume_emptymode.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_resume_float_wing.lua b/Lib/original/nes/resources/scripts/sys_resume_float_wing.lua
deleted file mode 100644
index 6696af0..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_resume_float_wing.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_resume_floating_card.lua b/Lib/original/nes/resources/scripts/sys_resume_floating_card.lua
deleted file mode 100644
index dc8669b..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_resume_floating_card.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_resume_lockmode.lua b/Lib/original/nes/resources/scripts/sys_resume_lockmode.lua
deleted file mode 100644
index 6996538..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_resume_lockmode.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_resumedatalist.lua b/Lib/original/nes/resources/scripts/sys_resumedatalist.lua
deleted file mode 100644
index fd770ed..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_resumedatalist.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_resumemenu.lua b/Lib/original/nes/resources/scripts/sys_resumemenu.lua
deleted file mode 100644
index 31334a8..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_resumemenu.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_thumbnail.lua b/Lib/original/nes/resources/scripts/sys_thumbnail.lua
deleted file mode 100644
index a31940d..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_thumbnail.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_thumbnail_icon.lua b/Lib/original/nes/resources/scripts/sys_thumbnail_icon.lua
deleted file mode 100644
index a2bc571..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_thumbnail_icon.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_transition.lua b/Lib/original/nes/resources/scripts/sys_transition.lua
deleted file mode 100644
index 9ce56d4..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_transition.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_wallpaper.lua b/Lib/original/nes/resources/scripts/sys_wallpaper.lua
deleted file mode 100644
index 6703695..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_wallpaper.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_wallpaper_bg0.lua b/Lib/original/nes/resources/scripts/sys_wallpaper_bg0.lua
deleted file mode 100644
index b70f5db..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_wallpaper_bg0.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/sys_wallpaper_fg0.lua b/Lib/original/nes/resources/scripts/sys_wallpaper_fg0.lua
deleted file mode 100644
index 84c5671..0000000
Binary files a/Lib/original/nes/resources/scripts/sys_wallpaper_fg0.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/system.lua b/Lib/original/nes/resources/scripts/system.lua
deleted file mode 100644
index 7219ae6..0000000
Binary files a/Lib/original/nes/resources/scripts/system.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/test_program.lua b/Lib/original/nes/resources/scripts/test_program.lua
deleted file mode 100644
index 1c39c2c..0000000
Binary files a/Lib/original/nes/resources/scripts/test_program.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/tween/tween_animate_node.lua b/Lib/original/nes/resources/scripts/tween/tween_animate_node.lua
deleted file mode 100644
index ee43d1a..0000000
Binary files a/Lib/original/nes/resources/scripts/tween/tween_animate_node.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/tween/tween_callback_node.lua b/Lib/original/nes/resources/scripts/tween/tween_callback_node.lua
deleted file mode 100644
index 9bf08a9..0000000
Binary files a/Lib/original/nes/resources/scripts/tween/tween_callback_node.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/tween/tween_coroutine_node.lua b/Lib/original/nes/resources/scripts/tween/tween_coroutine_node.lua
deleted file mode 100644
index 73fc43d..0000000
Binary files a/Lib/original/nes/resources/scripts/tween/tween_coroutine_node.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/tween/tween_loop_node.lua b/Lib/original/nes/resources/scripts/tween/tween_loop_node.lua
deleted file mode 100644
index 86a4fd2..0000000
Binary files a/Lib/original/nes/resources/scripts/tween/tween_loop_node.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/tween/tween_manager.lua b/Lib/original/nes/resources/scripts/tween/tween_manager.lua
deleted file mode 100644
index dbf0086..0000000
Binary files a/Lib/original/nes/resources/scripts/tween/tween_manager.lua and /dev/null differ
diff --git a/Lib/original/nes/resources/scripts/tween/tween_sequence_node.lua b/Lib/original/nes/resources/scripts/tween/tween_sequence_node.lua
deleted file mode 100644
index 4fdaf94..0000000
Binary files a/Lib/original/nes/resources/scripts/tween/tween_sequence_node.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/animation/blink.lua b/Lib/original/shvc/resources/animation/blink.lua
deleted file mode 100644
index 47946c3..0000000
Binary files a/Lib/original/shvc/resources/animation/blink.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/animation/fuwafuwa.lua b/Lib/original/shvc/resources/animation/fuwafuwa.lua
deleted file mode 100644
index f5cc688..0000000
Binary files a/Lib/original/shvc/resources/animation/fuwafuwa.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/animation/lr_arrow.lua b/Lib/original/shvc/resources/animation/lr_arrow.lua
deleted file mode 100644
index d7f7eed..0000000
Binary files a/Lib/original/shvc/resources/animation/lr_arrow.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/animation/slide_in.lua b/Lib/original/shvc/resources/animation/slide_in.lua
deleted file mode 100644
index b58e4aa..0000000
Binary files a/Lib/original/shvc/resources/animation/slide_in.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/animation/slide_out_down.lua b/Lib/original/shvc/resources/animation/slide_out_down.lua
deleted file mode 100644
index 51e7b91..0000000
Binary files a/Lib/original/shvc/resources/animation/slide_out_down.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/animation/slide_out_up.lua b/Lib/original/shvc/resources/animation/slide_out_up.lua
deleted file mode 100644
index b23ebd3..0000000
Binary files a/Lib/original/shvc/resources/animation/slide_out_up.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/animation/tweenanimator.lua b/Lib/original/shvc/resources/animation/tweenanimator.lua
deleted file mode 100644
index ae77ed7..0000000
Binary files a/Lib/original/shvc/resources/animation/tweenanimator.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_autocancel.lua b/Lib/original/shvc/resources/scripts/app/clover_autocancel.lua
deleted file mode 100644
index c618b88..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_autocancel.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_bg.lua b/Lib/original/shvc/resources/scripts/app/clover_bg.lua
deleted file mode 100644
index 5ecd9a5..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_bg.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_character.lua b/Lib/original/shvc/resources/scripts/app/clover_character.lua
deleted file mode 100644
index 511a50a..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_character.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_const.lua b/Lib/original/shvc/resources/scripts/app/clover_const.lua
deleted file mode 100644
index a30aacd..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_const.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_dialog.lua b/Lib/original/shvc/resources/scripts/app/clover_dialog.lua
deleted file mode 100644
index ada6223..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_dialog.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_elements.lua b/Lib/original/shvc/resources/scripts/app/clover_elements.lua
deleted file mode 100644
index 35dddb6..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_elements.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_event.lua b/Lib/original/shvc/resources/scripts/app/clover_event.lua
deleted file mode 100644
index eb7fb84..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_event.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_layout.lua b/Lib/original/shvc/resources/scripts/app/clover_layout.lua
deleted file mode 100644
index 93fef70..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_layout.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_nodeanim.lua b/Lib/original/shvc/resources/scripts/app/clover_nodeanim.lua
deleted file mode 100644
index 4f6f235..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_nodeanim.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_pad.lua b/Lib/original/shvc/resources/scripts/app/clover_pad.lua
deleted file mode 100644
index 7961d99..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_pad.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_scene.lua b/Lib/original/shvc/resources/scripts/app/clover_scene.lua
deleted file mode 100644
index 24b17db..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_scene.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_task.lua b/Lib/original/shvc/resources/scripts/app/clover_task.lua
deleted file mode 100644
index 456786b..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_task.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_transition.lua b/Lib/original/shvc/resources/scripts/app/clover_transition.lua
deleted file mode 100644
index fe14b86..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_transition.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/app/clover_util.lua b/Lib/original/shvc/resources/scripts/app/clover_util.lua
deleted file mode 100644
index 4a1ed04..0000000
Binary files a/Lib/original/shvc/resources/scripts/app/clover_util.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/core/core.lua b/Lib/original/shvc/resources/scripts/core/core.lua
deleted file mode 100644
index 615dccf..0000000
Binary files a/Lib/original/shvc/resources/scripts/core/core.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/core/math.lua b/Lib/original/shvc/resources/scripts/core/math.lua
deleted file mode 100644
index 80d969c..0000000
Binary files a/Lib/original/shvc/resources/scripts/core/math.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/core/pool.lua b/Lib/original/shvc/resources/scripts/core/pool.lua
deleted file mode 100644
index e801c21..0000000
Binary files a/Lib/original/shvc/resources/scripts/core/pool.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/core/table.lua b/Lib/original/shvc/resources/scripts/core/table.lua
deleted file mode 100644
index 875d897..0000000
Binary files a/Lib/original/shvc/resources/scripts/core/table.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/core/vector2d.lua b/Lib/original/shvc/resources/scripts/core/vector2d.lua
deleted file mode 100644
index 3203305..0000000
Binary files a/Lib/original/shvc/resources/scripts/core/vector2d.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/cursormanager.lua b/Lib/original/shvc/resources/scripts/cursormanager.lua
deleted file mode 100644
index c6a37b5..0000000
Binary files a/Lib/original/shvc/resources/scripts/cursormanager.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/data_gamelist.lua b/Lib/original/shvc/resources/scripts/data_gamelist.lua
deleted file mode 100644
index e1bc8a1..0000000
Binary files a/Lib/original/shvc/resources/scripts/data_gamelist.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/dbg_menu_final.lua b/Lib/original/shvc/resources/scripts/dbg_menu_final.lua
deleted file mode 100644
index 0688f6c..0000000
Binary files a/Lib/original/shvc/resources/scripts/dbg_menu_final.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/decorativeframes.lua b/Lib/original/shvc/resources/scripts/decorativeframes.lua
deleted file mode 100644
index b95d54c..0000000
Binary files a/Lib/original/shvc/resources/scripts/decorativeframes.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/dot_number.lua b/Lib/original/shvc/resources/scripts/dot_number.lua
deleted file mode 100644
index 1ef1eb8..0000000
Binary files a/Lib/original/shvc/resources/scripts/dot_number.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/effect_smoke.lua b/Lib/original/shvc/resources/scripts/effect_smoke.lua
deleted file mode 100644
index fca81ca..0000000
Binary files a/Lib/original/shvc/resources/scripts/effect_smoke.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/env/colors_eur.lua b/Lib/original/shvc/resources/scripts/env/colors_eur.lua
deleted file mode 100644
index 16e9dfc..0000000
Binary files a/Lib/original/shvc/resources/scripts/env/colors_eur.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/env/colors_jpn.lua b/Lib/original/shvc/resources/scripts/env/colors_jpn.lua
deleted file mode 100644
index de612f7..0000000
Binary files a/Lib/original/shvc/resources/scripts/env/colors_jpn.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/env/colors_usa.lua b/Lib/original/shvc/resources/scripts/env/colors_usa.lua
deleted file mode 100644
index 1392fc1..0000000
Binary files a/Lib/original/shvc/resources/scripts/env/colors_usa.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/env/env_common.lua b/Lib/original/shvc/resources/scripts/env/env_common.lua
deleted file mode 100644
index b2bb25c..0000000
Binary files a/Lib/original/shvc/resources/scripts/env/env_common.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/env/env_jpn.lua b/Lib/original/shvc/resources/scripts/env/env_jpn.lua
deleted file mode 100644
index b1f5434..0000000
Binary files a/Lib/original/shvc/resources/scripts/env/env_jpn.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui/gui_button.lua b/Lib/original/shvc/resources/scripts/gui/gui_button.lua
deleted file mode 100644
index 6fd9445..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui/gui_button.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui/gui_check.lua b/Lib/original/shvc/resources/scripts/gui/gui_check.lua
deleted file mode 100644
index 3e40941..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui/gui_check.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui/gui_element.lua b/Lib/original/shvc/resources/scripts/gui/gui_element.lua
deleted file mode 100644
index 468f710..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui/gui_element.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui/gui_gridlayout.lua b/Lib/original/shvc/resources/scripts/gui/gui_gridlayout.lua
deleted file mode 100644
index cc5dc16..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui/gui_gridlayout.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui/gui_hlayout.lua b/Lib/original/shvc/resources/scripts/gui/gui_hlayout.lua
deleted file mode 100644
index 6001bba..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui/gui_hlayout.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui/gui_inputs.lua b/Lib/original/shvc/resources/scripts/gui/gui_inputs.lua
deleted file mode 100644
index ceacc3d..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui/gui_inputs.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui/gui_layout.lua b/Lib/original/shvc/resources/scripts/gui/gui_layout.lua
deleted file mode 100644
index e38feb2..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui/gui_layout.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui/gui_list.lua b/Lib/original/shvc/resources/scripts/gui/gui_list.lua
deleted file mode 100644
index 374eb4c..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui/gui_list.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui/gui_popup.lua b/Lib/original/shvc/resources/scripts/gui/gui_popup.lua
deleted file mode 100644
index 8af0288..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui/gui_popup.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui/gui_radiogroup.lua b/Lib/original/shvc/resources/scripts/gui/gui_radiogroup.lua
deleted file mode 100644
index 2a447b6..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui/gui_radiogroup.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui/gui_slider.lua b/Lib/original/shvc/resources/scripts/gui/gui_slider.lua
deleted file mode 100644
index 7335f0a..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui/gui_slider.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui/gui_vlayout.lua b/Lib/original/shvc/resources/scripts/gui/gui_vlayout.lua
deleted file mode 100644
index 3389dbb..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui/gui_vlayout.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui_container.lua b/Lib/original/shvc/resources/scripts/gui_container.lua
deleted file mode 100644
index 2290519..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui_container.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/gui_custom.lua b/Lib/original/shvc/resources/scripts/gui_custom.lua
deleted file mode 100644
index 321a7f6..0000000
Binary files a/Lib/original/shvc/resources/scripts/gui_custom.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/helper_index.lua b/Lib/original/shvc/resources/scripts/helper_index.lua
deleted file mode 100644
index 2df1fef..0000000
Binary files a/Lib/original/shvc/resources/scripts/helper_index.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/helper_nodes.lua b/Lib/original/shvc/resources/scripts/helper_nodes.lua
deleted file mode 100644
index e715fe6..0000000
Binary files a/Lib/original/shvc/resources/scripts/helper_nodes.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/helper_table.lua b/Lib/original/shvc/resources/scripts/helper_table.lua
deleted file mode 100644
index 44251fc..0000000
Binary files a/Lib/original/shvc/resources/scripts/helper_table.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/helpers/httphelper.lua b/Lib/original/shvc/resources/scripts/helpers/httphelper.lua
deleted file mode 100644
index bb679f0..0000000
Binary files a/Lib/original/shvc/resources/scripts/helpers/httphelper.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/helpers/savehelper.lua b/Lib/original/shvc/resources/scripts/helpers/savehelper.lua
deleted file mode 100644
index d5dc005..0000000
Binary files a/Lib/original/shvc/resources/scripts/helpers/savehelper.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/lbl_component.lua b/Lib/original/shvc/resources/scripts/lbl_component.lua
deleted file mode 100644
index 511bc73..0000000
Binary files a/Lib/original/shvc/resources/scripts/lbl_component.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/main.lua b/Lib/original/shvc/resources/scripts/main.lua
deleted file mode 100644
index e338007..0000000
Binary files a/Lib/original/shvc/resources/scripts/main.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/manual_lbl_component.lua b/Lib/original/shvc/resources/scripts/manual_lbl_component.lua
deleted file mode 100644
index cef2100..0000000
Binary files a/Lib/original/shvc/resources/scripts/manual_lbl_component.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/mcp_commands.lua b/Lib/original/shvc/resources/scripts/mcp_commands.lua
deleted file mode 100644
index 7d9a42c..0000000
Binary files a/Lib/original/shvc/resources/scripts/mcp_commands.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/node/node_bg.lua b/Lib/original/shvc/resources/scripts/node/node_bg.lua
deleted file mode 100644
index 3ce87fd..0000000
Binary files a/Lib/original/shvc/resources/scripts/node/node_bg.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/platform.lua b/Lib/original/shvc/resources/scripts/platform.lua
deleted file mode 100644
index e6df673..0000000
Binary files a/Lib/original/shvc/resources/scripts/platform.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/position_changer.lua b/Lib/original/shvc/resources/scripts/position_changer.lua
deleted file mode 100644
index 18b8bd9..0000000
Binary files a/Lib/original/shvc/resources/scripts/position_changer.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/position_changer_node.lua b/Lib/original/shvc/resources/scripts/position_changer_node.lua
deleted file mode 100644
index dc86b85..0000000
Binary files a/Lib/original/shvc/resources/scripts/position_changer_node.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/savecontenthelper.lua b/Lib/original/shvc/resources/scripts/savecontenthelper.lua
deleted file mode 100644
index 954fbe0..0000000
Binary files a/Lib/original/shvc/resources/scripts/savecontenthelper.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/snd_component.lua b/Lib/original/shvc/resources/scripts/snd_component.lua
deleted file mode 100644
index f2bf799..0000000
Binary files a/Lib/original/shvc/resources/scripts/snd_component.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/store.lua b/Lib/original/shvc/resources/scripts/store.lua
deleted file mode 100644
index 5753572..0000000
Binary files a/Lib/original/shvc/resources/scripts/store.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/store_myplay_data.lua b/Lib/original/shvc/resources/scripts/store_myplay_data.lua
deleted file mode 100644
index e9d548b..0000000
Binary files a/Lib/original/shvc/resources/scripts/store_myplay_data.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/suspentionpoints.lua b/Lib/original/shvc/resources/scripts/suspentionpoints.lua
deleted file mode 100644
index 20856af..0000000
Binary files a/Lib/original/shvc/resources/scripts/suspentionpoints.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_button.lua b/Lib/original/shvc/resources/scripts/sys_button.lua
deleted file mode 100644
index 170f294..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_button.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_button_longpress.lua b/Lib/original/shvc/resources/scripts/sys_button_longpress.lua
deleted file mode 100644
index c843281..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_button_longpress.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_copyright.lua b/Lib/original/shvc/resources/scripts/sys_copyright.lua
deleted file mode 100644
index 6bcb4a5..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_copyright.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_copyright_text.lua b/Lib/original/shvc/resources/scripts/sys_copyright_text.lua
deleted file mode 100644
index e8581e2..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_copyright_text.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_dialog.lua b/Lib/original/shvc/resources/scripts/sys_dialog.lua
deleted file mode 100644
index 993c485..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_dialog.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_fade.lua b/Lib/original/shvc/resources/scripts/sys_fade.lua
deleted file mode 100644
index d315752..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_fade.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_game_card.lua b/Lib/original/shvc/resources/scripts/sys_game_card.lua
deleted file mode 100644
index 865efae..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_game_card.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_game_card_show.lua b/Lib/original/shvc/resources/scripts/sys_game_card_show.lua
deleted file mode 100644
index 484126a..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_game_card_show.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_gametitlelist.lua b/Lib/original/shvc/resources/scripts/sys_gametitlelist.lua
deleted file mode 100644
index cb09912..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_gametitlelist.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_home_floating_cards.lua b/Lib/original/shvc/resources/scripts/sys_home_floating_cards.lua
deleted file mode 100644
index 72a5f75..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_home_floating_cards.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_homemenu.lua b/Lib/original/shvc/resources/scripts/sys_homemenu.lua
deleted file mode 100644
index cc00bff..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_homemenu.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_homemenu_sortorder.lua b/Lib/original/shvc/resources/scripts/sys_homemenu_sortorder.lua
deleted file mode 100644
index f381d47..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_homemenu_sortorder.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_hud.lua b/Lib/original/shvc/resources/scripts/sys_hud.lua
deleted file mode 100644
index 5e4602c..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_hud.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_manual.lua b/Lib/original/shvc/resources/scripts/sys_manual.lua
deleted file mode 100644
index 94e7184..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_manual.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_menubaru.lua b/Lib/original/shvc/resources/scripts/sys_menubaru.lua
deleted file mode 100644
index a494e09..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_menubaru.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_option.lua b/Lib/original/shvc/resources/scripts/sys_option.lua
deleted file mode 100644
index fed6c50..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_option.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_option_item.lua b/Lib/original/shvc/resources/scripts/sys_option_item.lua
deleted file mode 100644
index c151de8..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_option_item.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_option_languages.lua b/Lib/original/shvc/resources/scripts/sys_option_languages.lua
deleted file mode 100644
index 1cb86db..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_option_languages.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_option_setting.lua b/Lib/original/shvc/resources/scripts/sys_option_setting.lua
deleted file mode 100644
index c6a9b03..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_option_setting.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_option_setting_item.lua b/Lib/original/shvc/resources/scripts/sys_option_setting_item.lua
deleted file mode 100644
index c35e781..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_option_setting_item.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_popup_unlock.lua b/Lib/original/shvc/resources/scripts/sys_popup_unlock.lua
deleted file mode 100644
index fc827f5..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_popup_unlock.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_popup_warning.lua b/Lib/original/shvc/resources/scripts/sys_popup_warning.lua
deleted file mode 100644
index a5e1eb5..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_popup_warning.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_resume_card.lua b/Lib/original/shvc/resources/scripts/sys_resume_card.lua
deleted file mode 100644
index 7f714f2..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_resume_card.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_resume_changemode.lua b/Lib/original/shvc/resources/scripts/sys_resume_changemode.lua
deleted file mode 100644
index fcbbfa4..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_resume_changemode.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_resume_emptymode.lua b/Lib/original/shvc/resources/scripts/sys_resume_emptymode.lua
deleted file mode 100644
index 18c5952..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_resume_emptymode.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_resume_float_wing.lua b/Lib/original/shvc/resources/scripts/sys_resume_float_wing.lua
deleted file mode 100644
index 6696af0..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_resume_float_wing.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_resume_floating_card.lua b/Lib/original/shvc/resources/scripts/sys_resume_floating_card.lua
deleted file mode 100644
index 61ea01c..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_resume_floating_card.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_resume_lockmode.lua b/Lib/original/shvc/resources/scripts/sys_resume_lockmode.lua
deleted file mode 100644
index 4bd46ad..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_resume_lockmode.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_resumedatalist.lua b/Lib/original/shvc/resources/scripts/sys_resumedatalist.lua
deleted file mode 100644
index ba0976f..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_resumedatalist.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_resumedummy.lua b/Lib/original/shvc/resources/scripts/sys_resumedummy.lua
deleted file mode 100644
index 2bfdcfc..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_resumedummy.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_resumemenu.lua b/Lib/original/shvc/resources/scripts/sys_resumemenu.lua
deleted file mode 100644
index 5dfcf75..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_resumemenu.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_sram_icon.lua b/Lib/original/shvc/resources/scripts/sys_sram_icon.lua
deleted file mode 100644
index cfa5825..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_sram_icon.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_thumbnail.lua b/Lib/original/shvc/resources/scripts/sys_thumbnail.lua
deleted file mode 100644
index a31940d..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_thumbnail.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/sys_thumbnail_icon.lua b/Lib/original/shvc/resources/scripts/sys_thumbnail_icon.lua
deleted file mode 100644
index 4ec9099..0000000
Binary files a/Lib/original/shvc/resources/scripts/sys_thumbnail_icon.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/system.lua b/Lib/original/shvc/resources/scripts/system.lua
deleted file mode 100644
index 94dcc16..0000000
Binary files a/Lib/original/shvc/resources/scripts/system.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/test_program.lua b/Lib/original/shvc/resources/scripts/test_program.lua
deleted file mode 100644
index 1a7ab95..0000000
Binary files a/Lib/original/shvc/resources/scripts/test_program.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/tween/tween_animate_node.lua b/Lib/original/shvc/resources/scripts/tween/tween_animate_node.lua
deleted file mode 100644
index ee43d1a..0000000
Binary files a/Lib/original/shvc/resources/scripts/tween/tween_animate_node.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/tween/tween_callback_node.lua b/Lib/original/shvc/resources/scripts/tween/tween_callback_node.lua
deleted file mode 100644
index 9bf08a9..0000000
Binary files a/Lib/original/shvc/resources/scripts/tween/tween_callback_node.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/tween/tween_coroutine_callback.lua b/Lib/original/shvc/resources/scripts/tween/tween_coroutine_callback.lua
deleted file mode 100644
index 1a1cf01..0000000
Binary files a/Lib/original/shvc/resources/scripts/tween/tween_coroutine_callback.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/tween/tween_coroutine_node.lua b/Lib/original/shvc/resources/scripts/tween/tween_coroutine_node.lua
deleted file mode 100644
index 73fc43d..0000000
Binary files a/Lib/original/shvc/resources/scripts/tween/tween_coroutine_node.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/tween/tween_loop_node.lua b/Lib/original/shvc/resources/scripts/tween/tween_loop_node.lua
deleted file mode 100644
index 86a4fd2..0000000
Binary files a/Lib/original/shvc/resources/scripts/tween/tween_loop_node.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/tween/tween_manager.lua b/Lib/original/shvc/resources/scripts/tween/tween_manager.lua
deleted file mode 100644
index dbf0086..0000000
Binary files a/Lib/original/shvc/resources/scripts/tween/tween_manager.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/tween/tween_sequence_node.lua b/Lib/original/shvc/resources/scripts/tween/tween_sequence_node.lua
deleted file mode 100644
index 4fdaf94..0000000
Binary files a/Lib/original/shvc/resources/scripts/tween/tween_sequence_node.lua and /dev/null differ
diff --git a/Lib/original/shvc/resources/scripts/tween/tween_wait_condition_node.lua b/Lib/original/shvc/resources/scripts/tween/tween_wait_condition_node.lua
deleted file mode 100644
index a6ac810..0000000
Binary files a/Lib/original/shvc/resources/scripts/tween/tween_wait_condition_node.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/animation/blink.lua b/Lib/original/snes-eur/resources/animation/blink.lua
deleted file mode 100644
index 47946c3..0000000
Binary files a/Lib/original/snes-eur/resources/animation/blink.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/animation/fuwafuwa.lua b/Lib/original/snes-eur/resources/animation/fuwafuwa.lua
deleted file mode 100644
index f5cc688..0000000
Binary files a/Lib/original/snes-eur/resources/animation/fuwafuwa.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/animation/lr_arrow.lua b/Lib/original/snes-eur/resources/animation/lr_arrow.lua
deleted file mode 100644
index d7f7eed..0000000
Binary files a/Lib/original/snes-eur/resources/animation/lr_arrow.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/animation/slide_in.lua b/Lib/original/snes-eur/resources/animation/slide_in.lua
deleted file mode 100644
index b58e4aa..0000000
Binary files a/Lib/original/snes-eur/resources/animation/slide_in.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/animation/slide_out_down.lua b/Lib/original/snes-eur/resources/animation/slide_out_down.lua
deleted file mode 100644
index 51e7b91..0000000
Binary files a/Lib/original/snes-eur/resources/animation/slide_out_down.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/animation/slide_out_up.lua b/Lib/original/snes-eur/resources/animation/slide_out_up.lua
deleted file mode 100644
index b23ebd3..0000000
Binary files a/Lib/original/snes-eur/resources/animation/slide_out_up.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/animation/tweenanimator.lua b/Lib/original/snes-eur/resources/animation/tweenanimator.lua
deleted file mode 100644
index ae77ed7..0000000
Binary files a/Lib/original/snes-eur/resources/animation/tweenanimator.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_autocancel.lua b/Lib/original/snes-eur/resources/scripts/app/clover_autocancel.lua
deleted file mode 100644
index c618b88..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_autocancel.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_bg.lua b/Lib/original/snes-eur/resources/scripts/app/clover_bg.lua
deleted file mode 100644
index 5ecd9a5..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_bg.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_character.lua b/Lib/original/snes-eur/resources/scripts/app/clover_character.lua
deleted file mode 100644
index 511a50a..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_character.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_const.lua b/Lib/original/snes-eur/resources/scripts/app/clover_const.lua
deleted file mode 100644
index a30aacd..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_const.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_dialog.lua b/Lib/original/snes-eur/resources/scripts/app/clover_dialog.lua
deleted file mode 100644
index ada6223..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_dialog.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_elements.lua b/Lib/original/snes-eur/resources/scripts/app/clover_elements.lua
deleted file mode 100644
index 35dddb6..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_elements.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_event.lua b/Lib/original/snes-eur/resources/scripts/app/clover_event.lua
deleted file mode 100644
index eb7fb84..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_event.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_layout.lua b/Lib/original/snes-eur/resources/scripts/app/clover_layout.lua
deleted file mode 100644
index 93fef70..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_layout.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_nodeanim.lua b/Lib/original/snes-eur/resources/scripts/app/clover_nodeanim.lua
deleted file mode 100644
index 4f6f235..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_nodeanim.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_pad.lua b/Lib/original/snes-eur/resources/scripts/app/clover_pad.lua
deleted file mode 100644
index 7961d99..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_pad.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_scene.lua b/Lib/original/snes-eur/resources/scripts/app/clover_scene.lua
deleted file mode 100644
index 24b17db..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_scene.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_task.lua b/Lib/original/snes-eur/resources/scripts/app/clover_task.lua
deleted file mode 100644
index 456786b..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_task.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_transition.lua b/Lib/original/snes-eur/resources/scripts/app/clover_transition.lua
deleted file mode 100644
index fe14b86..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_transition.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/app/clover_util.lua b/Lib/original/snes-eur/resources/scripts/app/clover_util.lua
deleted file mode 100644
index 4a1ed04..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/app/clover_util.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/core/core.lua b/Lib/original/snes-eur/resources/scripts/core/core.lua
deleted file mode 100644
index 615dccf..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/core/core.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/core/math.lua b/Lib/original/snes-eur/resources/scripts/core/math.lua
deleted file mode 100644
index 80d969c..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/core/math.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/core/pool.lua b/Lib/original/snes-eur/resources/scripts/core/pool.lua
deleted file mode 100644
index e801c21..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/core/pool.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/core/table.lua b/Lib/original/snes-eur/resources/scripts/core/table.lua
deleted file mode 100644
index 875d897..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/core/table.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/core/vector2d.lua b/Lib/original/snes-eur/resources/scripts/core/vector2d.lua
deleted file mode 100644
index 3203305..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/core/vector2d.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/cursormanager.lua b/Lib/original/snes-eur/resources/scripts/cursormanager.lua
deleted file mode 100644
index c6a37b5..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/cursormanager.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/data_gamelist.lua b/Lib/original/snes-eur/resources/scripts/data_gamelist.lua
deleted file mode 100644
index e1bc8a1..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/data_gamelist.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/dbg_menu_final.lua b/Lib/original/snes-eur/resources/scripts/dbg_menu_final.lua
deleted file mode 100644
index 0688f6c..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/dbg_menu_final.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/decorativeframes.lua b/Lib/original/snes-eur/resources/scripts/decorativeframes.lua
deleted file mode 100644
index b95d54c..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/decorativeframes.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/dot_number.lua b/Lib/original/snes-eur/resources/scripts/dot_number.lua
deleted file mode 100644
index 1ef1eb8..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/dot_number.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/effect_smoke.lua b/Lib/original/snes-eur/resources/scripts/effect_smoke.lua
deleted file mode 100644
index fca81ca..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/effect_smoke.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/env/colors_eur.lua b/Lib/original/snes-eur/resources/scripts/env/colors_eur.lua
deleted file mode 100644
index 16e9dfc..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/env/colors_eur.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/env/colors_jpn.lua b/Lib/original/snes-eur/resources/scripts/env/colors_jpn.lua
deleted file mode 100644
index de612f7..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/env/colors_jpn.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/env/colors_usa.lua b/Lib/original/snes-eur/resources/scripts/env/colors_usa.lua
deleted file mode 100644
index 1392fc1..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/env/colors_usa.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/env/env_common.lua b/Lib/original/snes-eur/resources/scripts/env/env_common.lua
deleted file mode 100644
index b2bb25c..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/env/env_common.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/env/env_eur.lua b/Lib/original/snes-eur/resources/scripts/env/env_eur.lua
deleted file mode 100644
index c1d41e3..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/env/env_eur.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui/gui_button.lua b/Lib/original/snes-eur/resources/scripts/gui/gui_button.lua
deleted file mode 100644
index 6fd9445..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui/gui_button.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui/gui_check.lua b/Lib/original/snes-eur/resources/scripts/gui/gui_check.lua
deleted file mode 100644
index 3e40941..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui/gui_check.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui/gui_element.lua b/Lib/original/snes-eur/resources/scripts/gui/gui_element.lua
deleted file mode 100644
index 468f710..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui/gui_element.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui/gui_gridlayout.lua b/Lib/original/snes-eur/resources/scripts/gui/gui_gridlayout.lua
deleted file mode 100644
index cc5dc16..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui/gui_gridlayout.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui/gui_hlayout.lua b/Lib/original/snes-eur/resources/scripts/gui/gui_hlayout.lua
deleted file mode 100644
index 6001bba..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui/gui_hlayout.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui/gui_inputs.lua b/Lib/original/snes-eur/resources/scripts/gui/gui_inputs.lua
deleted file mode 100644
index ceacc3d..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui/gui_inputs.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui/gui_layout.lua b/Lib/original/snes-eur/resources/scripts/gui/gui_layout.lua
deleted file mode 100644
index e38feb2..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui/gui_layout.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui/gui_list.lua b/Lib/original/snes-eur/resources/scripts/gui/gui_list.lua
deleted file mode 100644
index 374eb4c..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui/gui_list.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui/gui_popup.lua b/Lib/original/snes-eur/resources/scripts/gui/gui_popup.lua
deleted file mode 100644
index 8af0288..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui/gui_popup.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui/gui_radiogroup.lua b/Lib/original/snes-eur/resources/scripts/gui/gui_radiogroup.lua
deleted file mode 100644
index 2a447b6..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui/gui_radiogroup.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui/gui_slider.lua b/Lib/original/snes-eur/resources/scripts/gui/gui_slider.lua
deleted file mode 100644
index 7335f0a..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui/gui_slider.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui/gui_vlayout.lua b/Lib/original/snes-eur/resources/scripts/gui/gui_vlayout.lua
deleted file mode 100644
index 3389dbb..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui/gui_vlayout.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui_container.lua b/Lib/original/snes-eur/resources/scripts/gui_container.lua
deleted file mode 100644
index 2290519..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui_container.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/gui_custom.lua b/Lib/original/snes-eur/resources/scripts/gui_custom.lua
deleted file mode 100644
index 321a7f6..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/gui_custom.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/helper_index.lua b/Lib/original/snes-eur/resources/scripts/helper_index.lua
deleted file mode 100644
index 2df1fef..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/helper_index.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/helper_nodes.lua b/Lib/original/snes-eur/resources/scripts/helper_nodes.lua
deleted file mode 100644
index e715fe6..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/helper_nodes.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/helper_table.lua b/Lib/original/snes-eur/resources/scripts/helper_table.lua
deleted file mode 100644
index 44251fc..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/helper_table.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/helpers/httphelper.lua b/Lib/original/snes-eur/resources/scripts/helpers/httphelper.lua
deleted file mode 100644
index bb679f0..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/helpers/httphelper.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/helpers/savehelper.lua b/Lib/original/snes-eur/resources/scripts/helpers/savehelper.lua
deleted file mode 100644
index d5dc005..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/helpers/savehelper.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/lbl_component.lua b/Lib/original/snes-eur/resources/scripts/lbl_component.lua
deleted file mode 100644
index 511bc73..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/lbl_component.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/main.lua b/Lib/original/snes-eur/resources/scripts/main.lua
deleted file mode 100644
index e338007..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/main.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/manual_lbl_component.lua b/Lib/original/snes-eur/resources/scripts/manual_lbl_component.lua
deleted file mode 100644
index cef2100..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/manual_lbl_component.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/mcp_commands.lua b/Lib/original/snes-eur/resources/scripts/mcp_commands.lua
deleted file mode 100644
index 7d9a42c..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/mcp_commands.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/node/node_bg.lua b/Lib/original/snes-eur/resources/scripts/node/node_bg.lua
deleted file mode 100644
index 3ce87fd..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/node/node_bg.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/platform.lua b/Lib/original/snes-eur/resources/scripts/platform.lua
deleted file mode 100644
index e6df673..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/platform.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/position_changer.lua b/Lib/original/snes-eur/resources/scripts/position_changer.lua
deleted file mode 100644
index 18b8bd9..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/position_changer.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/position_changer_node.lua b/Lib/original/snes-eur/resources/scripts/position_changer_node.lua
deleted file mode 100644
index dc86b85..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/position_changer_node.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/savecontenthelper.lua b/Lib/original/snes-eur/resources/scripts/savecontenthelper.lua
deleted file mode 100644
index 954fbe0..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/savecontenthelper.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/snd_component.lua b/Lib/original/snes-eur/resources/scripts/snd_component.lua
deleted file mode 100644
index f2bf799..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/snd_component.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/store.lua b/Lib/original/snes-eur/resources/scripts/store.lua
deleted file mode 100644
index 5753572..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/store.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/store_myplay_data.lua b/Lib/original/snes-eur/resources/scripts/store_myplay_data.lua
deleted file mode 100644
index e9d548b..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/store_myplay_data.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/suspentionpoints.lua b/Lib/original/snes-eur/resources/scripts/suspentionpoints.lua
deleted file mode 100644
index 20856af..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/suspentionpoints.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_button.lua b/Lib/original/snes-eur/resources/scripts/sys_button.lua
deleted file mode 100644
index 170f294..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_button.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_button_longpress.lua b/Lib/original/snes-eur/resources/scripts/sys_button_longpress.lua
deleted file mode 100644
index c843281..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_button_longpress.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_copyright.lua b/Lib/original/snes-eur/resources/scripts/sys_copyright.lua
deleted file mode 100644
index 6bcb4a5..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_copyright.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_copyright_text.lua b/Lib/original/snes-eur/resources/scripts/sys_copyright_text.lua
deleted file mode 100644
index e8581e2..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_copyright_text.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_dialog.lua b/Lib/original/snes-eur/resources/scripts/sys_dialog.lua
deleted file mode 100644
index 993c485..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_dialog.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_fade.lua b/Lib/original/snes-eur/resources/scripts/sys_fade.lua
deleted file mode 100644
index d315752..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_fade.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_game_card.lua b/Lib/original/snes-eur/resources/scripts/sys_game_card.lua
deleted file mode 100644
index 865efae..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_game_card.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_game_card_show.lua b/Lib/original/snes-eur/resources/scripts/sys_game_card_show.lua
deleted file mode 100644
index 484126a..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_game_card_show.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_gametitlelist.lua b/Lib/original/snes-eur/resources/scripts/sys_gametitlelist.lua
deleted file mode 100644
index cb09912..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_gametitlelist.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_home_floating_cards.lua b/Lib/original/snes-eur/resources/scripts/sys_home_floating_cards.lua
deleted file mode 100644
index 72a5f75..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_home_floating_cards.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_homemenu.lua b/Lib/original/snes-eur/resources/scripts/sys_homemenu.lua
deleted file mode 100644
index cc00bff..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_homemenu.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_homemenu_sortorder.lua b/Lib/original/snes-eur/resources/scripts/sys_homemenu_sortorder.lua
deleted file mode 100644
index f381d47..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_homemenu_sortorder.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_hud.lua b/Lib/original/snes-eur/resources/scripts/sys_hud.lua
deleted file mode 100644
index 5e4602c..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_hud.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_manual.lua b/Lib/original/snes-eur/resources/scripts/sys_manual.lua
deleted file mode 100644
index 94e7184..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_manual.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_menubaru.lua b/Lib/original/snes-eur/resources/scripts/sys_menubaru.lua
deleted file mode 100644
index a494e09..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_menubaru.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_option.lua b/Lib/original/snes-eur/resources/scripts/sys_option.lua
deleted file mode 100644
index fed6c50..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_option.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_option_item.lua b/Lib/original/snes-eur/resources/scripts/sys_option_item.lua
deleted file mode 100644
index c151de8..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_option_item.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_option_languages.lua b/Lib/original/snes-eur/resources/scripts/sys_option_languages.lua
deleted file mode 100644
index 1cb86db..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_option_languages.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_option_setting.lua b/Lib/original/snes-eur/resources/scripts/sys_option_setting.lua
deleted file mode 100644
index c6a9b03..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_option_setting.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_option_setting_item.lua b/Lib/original/snes-eur/resources/scripts/sys_option_setting_item.lua
deleted file mode 100644
index c35e781..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_option_setting_item.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_popup_unlock.lua b/Lib/original/snes-eur/resources/scripts/sys_popup_unlock.lua
deleted file mode 100644
index fc827f5..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_popup_unlock.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_popup_warning.lua b/Lib/original/snes-eur/resources/scripts/sys_popup_warning.lua
deleted file mode 100644
index a5e1eb5..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_popup_warning.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_resume_card.lua b/Lib/original/snes-eur/resources/scripts/sys_resume_card.lua
deleted file mode 100644
index 7f714f2..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_resume_card.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_resume_changemode.lua b/Lib/original/snes-eur/resources/scripts/sys_resume_changemode.lua
deleted file mode 100644
index fcbbfa4..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_resume_changemode.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_resume_emptymode.lua b/Lib/original/snes-eur/resources/scripts/sys_resume_emptymode.lua
deleted file mode 100644
index 18c5952..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_resume_emptymode.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_resume_float_wing.lua b/Lib/original/snes-eur/resources/scripts/sys_resume_float_wing.lua
deleted file mode 100644
index 6696af0..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_resume_float_wing.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_resume_floating_card.lua b/Lib/original/snes-eur/resources/scripts/sys_resume_floating_card.lua
deleted file mode 100644
index 61ea01c..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_resume_floating_card.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_resume_lockmode.lua b/Lib/original/snes-eur/resources/scripts/sys_resume_lockmode.lua
deleted file mode 100644
index 4bd46ad..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_resume_lockmode.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_resumedatalist.lua b/Lib/original/snes-eur/resources/scripts/sys_resumedatalist.lua
deleted file mode 100644
index ba0976f..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_resumedatalist.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_resumedummy.lua b/Lib/original/snes-eur/resources/scripts/sys_resumedummy.lua
deleted file mode 100644
index 2bfdcfc..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_resumedummy.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_resumemenu.lua b/Lib/original/snes-eur/resources/scripts/sys_resumemenu.lua
deleted file mode 100644
index 5dfcf75..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_resumemenu.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_sram_icon.lua b/Lib/original/snes-eur/resources/scripts/sys_sram_icon.lua
deleted file mode 100644
index cfa5825..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_sram_icon.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_thumbnail.lua b/Lib/original/snes-eur/resources/scripts/sys_thumbnail.lua
deleted file mode 100644
index a31940d..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_thumbnail.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/sys_thumbnail_icon.lua b/Lib/original/snes-eur/resources/scripts/sys_thumbnail_icon.lua
deleted file mode 100644
index 4ec9099..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/sys_thumbnail_icon.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/system.lua b/Lib/original/snes-eur/resources/scripts/system.lua
deleted file mode 100644
index 94dcc16..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/system.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/test_program.lua b/Lib/original/snes-eur/resources/scripts/test_program.lua
deleted file mode 100644
index 1a7ab95..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/test_program.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/tween/tween_animate_node.lua b/Lib/original/snes-eur/resources/scripts/tween/tween_animate_node.lua
deleted file mode 100644
index ee43d1a..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/tween/tween_animate_node.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/tween/tween_callback_node.lua b/Lib/original/snes-eur/resources/scripts/tween/tween_callback_node.lua
deleted file mode 100644
index 9bf08a9..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/tween/tween_callback_node.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/tween/tween_coroutine_callback.lua b/Lib/original/snes-eur/resources/scripts/tween/tween_coroutine_callback.lua
deleted file mode 100644
index 1a1cf01..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/tween/tween_coroutine_callback.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/tween/tween_coroutine_node.lua b/Lib/original/snes-eur/resources/scripts/tween/tween_coroutine_node.lua
deleted file mode 100644
index 73fc43d..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/tween/tween_coroutine_node.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/tween/tween_loop_node.lua b/Lib/original/snes-eur/resources/scripts/tween/tween_loop_node.lua
deleted file mode 100644
index 86a4fd2..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/tween/tween_loop_node.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/tween/tween_manager.lua b/Lib/original/snes-eur/resources/scripts/tween/tween_manager.lua
deleted file mode 100644
index dbf0086..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/tween/tween_manager.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/tween/tween_sequence_node.lua b/Lib/original/snes-eur/resources/scripts/tween/tween_sequence_node.lua
deleted file mode 100644
index 4fdaf94..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/tween/tween_sequence_node.lua and /dev/null differ
diff --git a/Lib/original/snes-eur/resources/scripts/tween/tween_wait_condition_node.lua b/Lib/original/snes-eur/resources/scripts/tween/tween_wait_condition_node.lua
deleted file mode 100644
index a6ac810..0000000
Binary files a/Lib/original/snes-eur/resources/scripts/tween/tween_wait_condition_node.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/animation/blink.lua b/Lib/original/snes-usa/resources/animation/blink.lua
deleted file mode 100644
index 47946c3..0000000
Binary files a/Lib/original/snes-usa/resources/animation/blink.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/animation/fuwafuwa.lua b/Lib/original/snes-usa/resources/animation/fuwafuwa.lua
deleted file mode 100644
index f5cc688..0000000
Binary files a/Lib/original/snes-usa/resources/animation/fuwafuwa.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/animation/lr_arrow.lua b/Lib/original/snes-usa/resources/animation/lr_arrow.lua
deleted file mode 100644
index d7f7eed..0000000
Binary files a/Lib/original/snes-usa/resources/animation/lr_arrow.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/animation/slide_in.lua b/Lib/original/snes-usa/resources/animation/slide_in.lua
deleted file mode 100644
index b58e4aa..0000000
Binary files a/Lib/original/snes-usa/resources/animation/slide_in.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/animation/slide_out_down.lua b/Lib/original/snes-usa/resources/animation/slide_out_down.lua
deleted file mode 100644
index 51e7b91..0000000
Binary files a/Lib/original/snes-usa/resources/animation/slide_out_down.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/animation/slide_out_up.lua b/Lib/original/snes-usa/resources/animation/slide_out_up.lua
deleted file mode 100644
index b23ebd3..0000000
Binary files a/Lib/original/snes-usa/resources/animation/slide_out_up.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/animation/tweenanimator.lua b/Lib/original/snes-usa/resources/animation/tweenanimator.lua
deleted file mode 100644
index ae77ed7..0000000
Binary files a/Lib/original/snes-usa/resources/animation/tweenanimator.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_autocancel.lua b/Lib/original/snes-usa/resources/scripts/app/clover_autocancel.lua
deleted file mode 100644
index c618b88..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_autocancel.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_bg.lua b/Lib/original/snes-usa/resources/scripts/app/clover_bg.lua
deleted file mode 100644
index 5ecd9a5..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_bg.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_character.lua b/Lib/original/snes-usa/resources/scripts/app/clover_character.lua
deleted file mode 100644
index 511a50a..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_character.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_const.lua b/Lib/original/snes-usa/resources/scripts/app/clover_const.lua
deleted file mode 100644
index a30aacd..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_const.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_dialog.lua b/Lib/original/snes-usa/resources/scripts/app/clover_dialog.lua
deleted file mode 100644
index ada6223..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_dialog.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_elements.lua b/Lib/original/snes-usa/resources/scripts/app/clover_elements.lua
deleted file mode 100644
index 35dddb6..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_elements.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_event.lua b/Lib/original/snes-usa/resources/scripts/app/clover_event.lua
deleted file mode 100644
index eb7fb84..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_event.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_layout.lua b/Lib/original/snes-usa/resources/scripts/app/clover_layout.lua
deleted file mode 100644
index 93fef70..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_layout.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_nodeanim.lua b/Lib/original/snes-usa/resources/scripts/app/clover_nodeanim.lua
deleted file mode 100644
index 4f6f235..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_nodeanim.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_pad.lua b/Lib/original/snes-usa/resources/scripts/app/clover_pad.lua
deleted file mode 100644
index 7961d99..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_pad.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_scene.lua b/Lib/original/snes-usa/resources/scripts/app/clover_scene.lua
deleted file mode 100644
index 24b17db..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_scene.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_task.lua b/Lib/original/snes-usa/resources/scripts/app/clover_task.lua
deleted file mode 100644
index 456786b..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_task.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_transition.lua b/Lib/original/snes-usa/resources/scripts/app/clover_transition.lua
deleted file mode 100644
index fe14b86..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_transition.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/app/clover_util.lua b/Lib/original/snes-usa/resources/scripts/app/clover_util.lua
deleted file mode 100644
index 4a1ed04..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/app/clover_util.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/core/core.lua b/Lib/original/snes-usa/resources/scripts/core/core.lua
deleted file mode 100644
index 615dccf..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/core/core.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/core/math.lua b/Lib/original/snes-usa/resources/scripts/core/math.lua
deleted file mode 100644
index 80d969c..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/core/math.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/core/pool.lua b/Lib/original/snes-usa/resources/scripts/core/pool.lua
deleted file mode 100644
index e801c21..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/core/pool.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/core/table.lua b/Lib/original/snes-usa/resources/scripts/core/table.lua
deleted file mode 100644
index 875d897..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/core/table.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/core/vector2d.lua b/Lib/original/snes-usa/resources/scripts/core/vector2d.lua
deleted file mode 100644
index 3203305..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/core/vector2d.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/cursormanager.lua b/Lib/original/snes-usa/resources/scripts/cursormanager.lua
deleted file mode 100644
index c6a37b5..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/cursormanager.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/data_gamelist.lua b/Lib/original/snes-usa/resources/scripts/data_gamelist.lua
deleted file mode 100644
index e1bc8a1..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/data_gamelist.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/dbg_menu_final.lua b/Lib/original/snes-usa/resources/scripts/dbg_menu_final.lua
deleted file mode 100644
index 0688f6c..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/dbg_menu_final.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/decorativeframes.lua b/Lib/original/snes-usa/resources/scripts/decorativeframes.lua
deleted file mode 100644
index b95d54c..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/decorativeframes.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/dot_number.lua b/Lib/original/snes-usa/resources/scripts/dot_number.lua
deleted file mode 100644
index 1ef1eb8..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/dot_number.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/effect_smoke.lua b/Lib/original/snes-usa/resources/scripts/effect_smoke.lua
deleted file mode 100644
index fca81ca..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/effect_smoke.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/env/colors_eur.lua b/Lib/original/snes-usa/resources/scripts/env/colors_eur.lua
deleted file mode 100644
index 16e9dfc..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/env/colors_eur.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/env/colors_jpn.lua b/Lib/original/snes-usa/resources/scripts/env/colors_jpn.lua
deleted file mode 100644
index de612f7..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/env/colors_jpn.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/env/colors_usa.lua b/Lib/original/snes-usa/resources/scripts/env/colors_usa.lua
deleted file mode 100644
index 1392fc1..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/env/colors_usa.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/env/env_common.lua b/Lib/original/snes-usa/resources/scripts/env/env_common.lua
deleted file mode 100644
index b2bb25c..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/env/env_common.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/env/env_usa.lua b/Lib/original/snes-usa/resources/scripts/env/env_usa.lua
deleted file mode 100644
index f123ad2..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/env/env_usa.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui/gui_button.lua b/Lib/original/snes-usa/resources/scripts/gui/gui_button.lua
deleted file mode 100644
index 6fd9445..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui/gui_button.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui/gui_check.lua b/Lib/original/snes-usa/resources/scripts/gui/gui_check.lua
deleted file mode 100644
index 3e40941..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui/gui_check.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui/gui_element.lua b/Lib/original/snes-usa/resources/scripts/gui/gui_element.lua
deleted file mode 100644
index 468f710..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui/gui_element.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui/gui_gridlayout.lua b/Lib/original/snes-usa/resources/scripts/gui/gui_gridlayout.lua
deleted file mode 100644
index cc5dc16..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui/gui_gridlayout.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui/gui_hlayout.lua b/Lib/original/snes-usa/resources/scripts/gui/gui_hlayout.lua
deleted file mode 100644
index 6001bba..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui/gui_hlayout.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui/gui_inputs.lua b/Lib/original/snes-usa/resources/scripts/gui/gui_inputs.lua
deleted file mode 100644
index ceacc3d..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui/gui_inputs.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui/gui_layout.lua b/Lib/original/snes-usa/resources/scripts/gui/gui_layout.lua
deleted file mode 100644
index e38feb2..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui/gui_layout.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui/gui_list.lua b/Lib/original/snes-usa/resources/scripts/gui/gui_list.lua
deleted file mode 100644
index 374eb4c..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui/gui_list.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui/gui_popup.lua b/Lib/original/snes-usa/resources/scripts/gui/gui_popup.lua
deleted file mode 100644
index 8af0288..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui/gui_popup.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui/gui_radiogroup.lua b/Lib/original/snes-usa/resources/scripts/gui/gui_radiogroup.lua
deleted file mode 100644
index 2a447b6..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui/gui_radiogroup.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui/gui_slider.lua b/Lib/original/snes-usa/resources/scripts/gui/gui_slider.lua
deleted file mode 100644
index 7335f0a..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui/gui_slider.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui/gui_vlayout.lua b/Lib/original/snes-usa/resources/scripts/gui/gui_vlayout.lua
deleted file mode 100644
index 3389dbb..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui/gui_vlayout.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui_container.lua b/Lib/original/snes-usa/resources/scripts/gui_container.lua
deleted file mode 100644
index 2290519..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui_container.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/gui_custom.lua b/Lib/original/snes-usa/resources/scripts/gui_custom.lua
deleted file mode 100644
index 321a7f6..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/gui_custom.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/helper_index.lua b/Lib/original/snes-usa/resources/scripts/helper_index.lua
deleted file mode 100644
index 2df1fef..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/helper_index.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/helper_nodes.lua b/Lib/original/snes-usa/resources/scripts/helper_nodes.lua
deleted file mode 100644
index e715fe6..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/helper_nodes.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/helper_table.lua b/Lib/original/snes-usa/resources/scripts/helper_table.lua
deleted file mode 100644
index 44251fc..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/helper_table.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/helpers/httphelper.lua b/Lib/original/snes-usa/resources/scripts/helpers/httphelper.lua
deleted file mode 100644
index bb679f0..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/helpers/httphelper.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/helpers/savehelper.lua b/Lib/original/snes-usa/resources/scripts/helpers/savehelper.lua
deleted file mode 100644
index d5dc005..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/helpers/savehelper.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/lbl_component.lua b/Lib/original/snes-usa/resources/scripts/lbl_component.lua
deleted file mode 100644
index 511bc73..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/lbl_component.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/main.lua b/Lib/original/snes-usa/resources/scripts/main.lua
deleted file mode 100644
index e338007..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/main.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/manual_lbl_component.lua b/Lib/original/snes-usa/resources/scripts/manual_lbl_component.lua
deleted file mode 100644
index cef2100..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/manual_lbl_component.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/mcp_commands.lua b/Lib/original/snes-usa/resources/scripts/mcp_commands.lua
deleted file mode 100644
index 7d9a42c..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/mcp_commands.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/node/node_bg.lua b/Lib/original/snes-usa/resources/scripts/node/node_bg.lua
deleted file mode 100644
index 3ce87fd..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/node/node_bg.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/platform.lua b/Lib/original/snes-usa/resources/scripts/platform.lua
deleted file mode 100644
index e6df673..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/platform.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/position_changer.lua b/Lib/original/snes-usa/resources/scripts/position_changer.lua
deleted file mode 100644
index 18b8bd9..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/position_changer.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/position_changer_node.lua b/Lib/original/snes-usa/resources/scripts/position_changer_node.lua
deleted file mode 100644
index dc86b85..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/position_changer_node.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/savecontenthelper.lua b/Lib/original/snes-usa/resources/scripts/savecontenthelper.lua
deleted file mode 100644
index 954fbe0..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/savecontenthelper.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/snd_component.lua b/Lib/original/snes-usa/resources/scripts/snd_component.lua
deleted file mode 100644
index f2bf799..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/snd_component.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/store.lua b/Lib/original/snes-usa/resources/scripts/store.lua
deleted file mode 100644
index 5753572..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/store.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/store_myplay_data.lua b/Lib/original/snes-usa/resources/scripts/store_myplay_data.lua
deleted file mode 100644
index e9d548b..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/store_myplay_data.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/suspentionpoints.lua b/Lib/original/snes-usa/resources/scripts/suspentionpoints.lua
deleted file mode 100644
index 20856af..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/suspentionpoints.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_button.lua b/Lib/original/snes-usa/resources/scripts/sys_button.lua
deleted file mode 100644
index 170f294..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_button.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_button_longpress.lua b/Lib/original/snes-usa/resources/scripts/sys_button_longpress.lua
deleted file mode 100644
index c843281..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_button_longpress.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_copyright.lua b/Lib/original/snes-usa/resources/scripts/sys_copyright.lua
deleted file mode 100644
index 6bcb4a5..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_copyright.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_copyright_text.lua b/Lib/original/snes-usa/resources/scripts/sys_copyright_text.lua
deleted file mode 100644
index e8581e2..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_copyright_text.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_dialog.lua b/Lib/original/snes-usa/resources/scripts/sys_dialog.lua
deleted file mode 100644
index 993c485..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_dialog.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_fade.lua b/Lib/original/snes-usa/resources/scripts/sys_fade.lua
deleted file mode 100644
index d315752..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_fade.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_game_card.lua b/Lib/original/snes-usa/resources/scripts/sys_game_card.lua
deleted file mode 100644
index 865efae..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_game_card.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_game_card_show.lua b/Lib/original/snes-usa/resources/scripts/sys_game_card_show.lua
deleted file mode 100644
index 484126a..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_game_card_show.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_gametitlelist.lua b/Lib/original/snes-usa/resources/scripts/sys_gametitlelist.lua
deleted file mode 100644
index cb09912..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_gametitlelist.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_home_floating_cards.lua b/Lib/original/snes-usa/resources/scripts/sys_home_floating_cards.lua
deleted file mode 100644
index 72a5f75..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_home_floating_cards.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_homemenu.lua b/Lib/original/snes-usa/resources/scripts/sys_homemenu.lua
deleted file mode 100644
index cc00bff..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_homemenu.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_homemenu_sortorder.lua b/Lib/original/snes-usa/resources/scripts/sys_homemenu_sortorder.lua
deleted file mode 100644
index f381d47..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_homemenu_sortorder.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_hud.lua b/Lib/original/snes-usa/resources/scripts/sys_hud.lua
deleted file mode 100644
index 5e4602c..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_hud.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_manual.lua b/Lib/original/snes-usa/resources/scripts/sys_manual.lua
deleted file mode 100644
index 94e7184..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_manual.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_menubaru.lua b/Lib/original/snes-usa/resources/scripts/sys_menubaru.lua
deleted file mode 100644
index a494e09..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_menubaru.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_option.lua b/Lib/original/snes-usa/resources/scripts/sys_option.lua
deleted file mode 100644
index fed6c50..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_option.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_option_item.lua b/Lib/original/snes-usa/resources/scripts/sys_option_item.lua
deleted file mode 100644
index c151de8..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_option_item.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_option_languages.lua b/Lib/original/snes-usa/resources/scripts/sys_option_languages.lua
deleted file mode 100644
index 1cb86db..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_option_languages.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_option_setting.lua b/Lib/original/snes-usa/resources/scripts/sys_option_setting.lua
deleted file mode 100644
index c6a9b03..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_option_setting.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_option_setting_item.lua b/Lib/original/snes-usa/resources/scripts/sys_option_setting_item.lua
deleted file mode 100644
index c35e781..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_option_setting_item.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_popup_unlock.lua b/Lib/original/snes-usa/resources/scripts/sys_popup_unlock.lua
deleted file mode 100644
index fc827f5..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_popup_unlock.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_popup_warning.lua b/Lib/original/snes-usa/resources/scripts/sys_popup_warning.lua
deleted file mode 100644
index a5e1eb5..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_popup_warning.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_resume_card.lua b/Lib/original/snes-usa/resources/scripts/sys_resume_card.lua
deleted file mode 100644
index 7f714f2..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_resume_card.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_resume_changemode.lua b/Lib/original/snes-usa/resources/scripts/sys_resume_changemode.lua
deleted file mode 100644
index fcbbfa4..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_resume_changemode.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_resume_emptymode.lua b/Lib/original/snes-usa/resources/scripts/sys_resume_emptymode.lua
deleted file mode 100644
index 18c5952..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_resume_emptymode.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_resume_float_wing.lua b/Lib/original/snes-usa/resources/scripts/sys_resume_float_wing.lua
deleted file mode 100644
index 6696af0..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_resume_float_wing.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_resume_floating_card.lua b/Lib/original/snes-usa/resources/scripts/sys_resume_floating_card.lua
deleted file mode 100644
index 61ea01c..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_resume_floating_card.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_resume_lockmode.lua b/Lib/original/snes-usa/resources/scripts/sys_resume_lockmode.lua
deleted file mode 100644
index 4bd46ad..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_resume_lockmode.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_resumedatalist.lua b/Lib/original/snes-usa/resources/scripts/sys_resumedatalist.lua
deleted file mode 100644
index ba0976f..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_resumedatalist.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_resumedummy.lua b/Lib/original/snes-usa/resources/scripts/sys_resumedummy.lua
deleted file mode 100644
index 2bfdcfc..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_resumedummy.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_resumemenu.lua b/Lib/original/snes-usa/resources/scripts/sys_resumemenu.lua
deleted file mode 100644
index 5dfcf75..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_resumemenu.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_sram_icon.lua b/Lib/original/snes-usa/resources/scripts/sys_sram_icon.lua
deleted file mode 100644
index cfa5825..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_sram_icon.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_thumbnail.lua b/Lib/original/snes-usa/resources/scripts/sys_thumbnail.lua
deleted file mode 100644
index a31940d..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_thumbnail.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/sys_thumbnail_icon.lua b/Lib/original/snes-usa/resources/scripts/sys_thumbnail_icon.lua
deleted file mode 100644
index 4ec9099..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/sys_thumbnail_icon.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/system.lua b/Lib/original/snes-usa/resources/scripts/system.lua
deleted file mode 100644
index 94dcc16..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/system.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/test_program.lua b/Lib/original/snes-usa/resources/scripts/test_program.lua
deleted file mode 100644
index 1a7ab95..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/test_program.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/tween/tween_animate_node.lua b/Lib/original/snes-usa/resources/scripts/tween/tween_animate_node.lua
deleted file mode 100644
index ee43d1a..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/tween/tween_animate_node.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/tween/tween_callback_node.lua b/Lib/original/snes-usa/resources/scripts/tween/tween_callback_node.lua
deleted file mode 100644
index 9bf08a9..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/tween/tween_callback_node.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/tween/tween_coroutine_callback.lua b/Lib/original/snes-usa/resources/scripts/tween/tween_coroutine_callback.lua
deleted file mode 100644
index 1a1cf01..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/tween/tween_coroutine_callback.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/tween/tween_coroutine_node.lua b/Lib/original/snes-usa/resources/scripts/tween/tween_coroutine_node.lua
deleted file mode 100644
index 73fc43d..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/tween/tween_coroutine_node.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/tween/tween_loop_node.lua b/Lib/original/snes-usa/resources/scripts/tween/tween_loop_node.lua
deleted file mode 100644
index 86a4fd2..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/tween/tween_loop_node.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/tween/tween_manager.lua b/Lib/original/snes-usa/resources/scripts/tween/tween_manager.lua
deleted file mode 100644
index dbf0086..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/tween/tween_manager.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/tween/tween_sequence_node.lua b/Lib/original/snes-usa/resources/scripts/tween/tween_sequence_node.lua
deleted file mode 100644
index 4fdaf94..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/tween/tween_sequence_node.lua and /dev/null differ
diff --git a/Lib/original/snes-usa/resources/scripts/tween/tween_wait_condition_node.lua b/Lib/original/snes-usa/resources/scripts/tween/tween_wait_condition_node.lua
deleted file mode 100644
index a6ac810..0000000
Binary files a/Lib/original/snes-usa/resources/scripts/tween/tween_wait_condition_node.lua and /dev/null differ
diff --git a/README.md b/README.md
index bdf389c..e0ad59b 100644
--- a/README.md
+++ b/README.md
@@ -5,20 +5,40 @@ Based on the work from [frostyfire03530](https://github.com/frostyfire03530).
This app decompiles and recompiles the Lua files (LuaJIT bytecode) of the SNES Mini, NES Mini and Famicom Mini, for theme creation.
### **How to use it**
-- Click the icon of your console: the app decodes its Lua files; use **Open folder** to reach the `decoded` folder
+- Click the icon of your console. The first time, the app asks for the console's **original Lua files** (see below);
+ after that it decodes them, and **Open folder** takes you to the `decoded` folder
- Edit the files you need with your favourite Lua/text editor
- Choose `Encode`: only the files you changed are encoded, and **Open folder** takes you to the output folder
- Copy the re-encoded files to your theme
Enjoy
+### **The original files of your console**
+The app does not include the console's Lua files (they are Nintendo's, not part of the open source it publishes).
+You import them once per console, from your own console or backup. Only the Lua files are read, never the images,
+fonts or sounds:
+- **From my console**: over SSH (hakchi); the console connected by USB (`169.254.13.37`) or on the network. It
+ needs the `ssh` client (on Windows: Settings > Apps > Optional features > OpenSSH Client). The app reads the
+ untouched original (`/var/squashfs/...`), not a theme you installed.
+- **From a firmware file**: a squashfs image (`.hsqs`) or a `.tar` / `.tar.gz` of the firmware.
+- **From a folder**: the console's UI folder (the one that has `resources/scripts` inside), or any folder above it.
+
+A firmware file or a folder can hold several consoles (for example a "base UI" folder with `nes`, `hvc`, `snesusa`...
+side by side): the app keeps every console it finds, so it does not ask again for the others. A console is only
+accepted if its files look like that console (a NES is not imported as a SNES).
+
+They are kept in `%AppData%\SNESMiniLuaCompiler\Originals` (Linux: `~/.config/SNESMiniLuaCompiler/Originals`), so
+the app works with the files of your firmware version. Importing again replaces them.
+
### **Requirements**
- **Windows**: nothing to install.
- **Linux (x86-64)**: a distribution with glibc 2.34 or newer (Ubuntu 22.04, Debian 12 or newer) and a desktop session
(X11 or Wayland through XWayland). The Avalonia UI needs `libfontconfig1`, `libx11-6`, `libice6`, `libsm6`,
`libxext6`, `libxcursor1`, `libxrandr2`, `libxi6`, `libgl1` and `libicu` (on Ubuntu 22.04: `libicu70`).
Download the `snes-mini-lua-compiler-linux-x64` artifact from the CI run, then `chmod +x SNESMiniLuaCompiler`.
-- macOS is not supported (nobody has tested it, and LuaJIT 2.0 has no ARM64 support).
+- **macOS (x86-64)**: experimental. Tested only on macOS 13 in a virtual machine. LuaJIT 2.0 has no ARM64 support, so
+ on Apple Silicon the x86-64 build needs Rosetta 2. The app is not signed: remove the quarantine flag with
+ `xattr -cr` on first run.
The app extracts LuaJIT 2.0 (the version the consoles use, bytecode version 1) and the decompiler to the
`lib` folder next to it on first run.
@@ -32,6 +52,9 @@ The app extracts LuaJIT 2.0 (the version the consoles use, bytecode version 1) a
[Linux port](https://github.com/DefKorns/luajit-decompiler-v2/tree/linux-support) (CMake, static), copied to
`Lib/decompiler-linux`. Then `dotnet publish -c Release -r linux-x64 -p:TargetOs=linux`. The `build-linux` job of
the CI does all of it (see `.github/workflows/build.yml`).
+- macOS: `scripts/build-luajit-macos.sh` writes `Lib/luajit-macos`. The decompiler is the same port, built with
+ `clang++ -std=c++20 -O2 -funsigned-char -pthread` and copied to `Lib/decompiler-macos`. Then
+ `dotnet publish -c Release -r osx-x64 -p:TargetOs=macos -p:PublishAot=false`.
### **Development**
- Code follows the [.NET coding conventions](https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions);
diff --git a/TODO.md b/TODO.md
index 98ed1af..dccbb46 100644
--- a/TODO.md
+++ b/TODO.md
@@ -5,6 +5,9 @@ in the CI) and the pre-commit hooks.
## Test before releasing
+- [ ] Import the originals from a real console over SSH, and from a real firmware `.hsqs` / `.tar.gz` (tested
+ here with an image built from the Famicom files, a test host and folders, not with a real console or firmware).
+ Check that the firmware has the Lua files in `/resources/scripts` as assumed.
- [ ] Decode the Lua files of each console (NES, Famicom, SNES, Super Famicom, Shonen Jump) in the app and
compare a few of them with what the Python decompiler gave. Linux: only Famicom Mini was run through
the UI (virtual display); the other consoles were only decompiled/recompiled by a test program.
diff --git a/ViewModels/ImportOriginalsViewModel.cs b/ViewModels/ImportOriginalsViewModel.cs
new file mode 100644
index 0000000..7f2ee4e
--- /dev/null
+++ b/ViewModels/ImportOriginalsViewModel.cs
@@ -0,0 +1,88 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading;
+using System.Threading.Tasks;
+using CommunityToolkit.Mvvm.ComponentModel;
+using CommunityToolkit.Mvvm.Input;
+using SNESMiniLuaCompiler.Firmware;
+using SNESMiniLuaCompiler.Models;
+
+namespace SNESMiniLuaCompiler.ViewModels
+{
+ /// The dialog that imports the original Lua files of one console (from the console, a firmware file or a folder).
+ public partial class ImportOriginalsViewModel(SystemModel system, string consoleName) : ViewModelBase
+ {
+ private CancellationTokenSource? _cancellation;
+
+ public string ConsoleName { get; } = consoleName;
+
+ [ObservableProperty]
+ [NotifyPropertyChangedFor(nameof(CanImport))]
+ private bool _isBusy;
+
+ [ObservableProperty]
+ private string _host = ConsoleSsh.UsbHost;
+
+ [ObservableProperty]
+ private string _message = string.Empty;
+
+ [ObservableProperty]
+ private bool _isError;
+
+ public bool CanImport => !IsBusy;
+
+ /// The consoles the last import kept (a firmware file or a folder can hold several).
+ internal IReadOnlyList ImportedConsoles { get; private set; } = [];
+
+ /// Raised when the originals were imported.
+ public event EventHandler? Imported;
+
+ [RelayCommand]
+ private Task ImportFromConsole() => RunAsync(
+ "Connecting to the console...",
+ cancellationToken => OriginalsImporter.FromConsoleAsync(system, Host.Trim(), cancellationToken));
+
+ public Task ImportFromFileAsync(string path) => RunAsync(
+ "Reading the firmware file...",
+ cancellationToken => OriginalsImporter.FromFirmwareFileAsync(system, path, cancellationToken));
+
+ public Task ImportFromFolderAsync(string path) => RunAsync(
+ "Reading the folder...",
+ cancellationToken => OriginalsImporter.FromFolderAsync(system, path, cancellationToken));
+
+ public void Cancel() => _cancellation?.Cancel();
+
+ private async Task RunAsync(string working, Func>> import)
+ {
+ using var cancellation = new CancellationTokenSource();
+ _cancellation = cancellation;
+ IsBusy = true;
+ IsError = false;
+ Message = working;
+
+ try
+ {
+ ImportedConsoles = await import(cancellation.Token);
+ Message = ImportedConsoles.Count == 1
+ ? $"{ImportedConsoles[0].Result.Files} Lua files imported."
+ : $"Imported {ImportedConsoles.Count} consoles.";
+ Imported?.Invoke(this, EventArgs.Empty);
+ }
+ catch (OperationCanceledException)
+ {
+ Message = "Cancelled.";
+ }
+ catch (Exception exception) when (exception is IOException or InvalidDataException or InvalidOperationException or ArgumentException or UnauthorizedAccessException)
+ {
+ IsError = true;
+ Message = exception.Message;
+ }
+ finally
+ {
+ IsBusy = false;
+ _cancellation = null;
+ }
+ }
+ }
+}
diff --git a/ViewModels/MainWindowViewModel.cs b/ViewModels/MainWindowViewModel.cs
index 5cc882a..e8b9454 100644
--- a/ViewModels/MainWindowViewModel.cs
+++ b/ViewModels/MainWindowViewModel.cs
@@ -8,6 +8,7 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Semi.Avalonia;
+using SNESMiniLuaCompiler.Firmware;
using SNESMiniLuaCompiler.Helpers;
using SNESMiniLuaCompiler.Models;
@@ -94,6 +95,9 @@ public partial class MainWindowViewModel : ViewModelBase
public Func? DecryptFilesAsyncDelegate { get; set; }
+ /// Shows the import dialog for a console (system, console name); true when the originals were imported.
+ public Func>? ImportOriginalsDelegate { get; set; }
+
public MainWindowViewModel()
{
UpdateButtonStates();
@@ -139,6 +143,15 @@ private async Task SelectConsole(SystemModel systemModel)
return;
}
+ if (!OriginalsStore.IsImported(systemModel) && !await ImportOriginalsAsync(systemModel))
+ {
+ // nothing to decode without the originals: undo the selection
+ SelectedConsole = null;
+ foreach (Consoles console in ConsoleList)
+ console.IsChecked = false;
+ return;
+ }
+
AppUtils.SaveConfig("system", Path.GetFileName(AppUtils.GetSystemPath(systemModel)));
AppUtils.EnsureDirectoryExists(AppUtils.DecodedPath);
UpdateButtonStates();
@@ -149,6 +162,10 @@ private async Task SelectConsole(SystemModel systemModel)
await DecryptFilesAsyncDelegate.Invoke();
}
+ private async Task ImportOriginalsAsync(SystemModel systemModel) =>
+ ImportOriginalsDelegate is not null
+ && await ImportOriginalsDelegate(systemModel, ConsoleList.First(c => c.SystemModel == systemModel).FullName);
+
public void UpdateButtonStates()
{
IsRecodeButtonEnabled = FileUtils.SafeFileExists(AppUtils.ConfigFile) &&
diff --git a/Views/ImportOriginalsDialog.axaml b/Views/ImportOriginalsDialog.axaml
new file mode 100644
index 0000000..a48ed3a
--- /dev/null
+++ b/Views/ImportOriginalsDialog.axaml
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Views/ImportOriginalsDialog.axaml.cs b/Views/ImportOriginalsDialog.axaml.cs
new file mode 100644
index 0000000..ad33858
--- /dev/null
+++ b/Views/ImportOriginalsDialog.axaml.cs
@@ -0,0 +1,60 @@
+using System.Collections.Generic;
+using Avalonia.Controls;
+using Avalonia.Interactivity;
+using Avalonia.Platform.Storage;
+using SNESMiniLuaCompiler.ViewModels;
+
+namespace SNESMiniLuaCompiler.Views
+{
+ public partial class ImportOriginalsDialog : Window
+ {
+ public ImportOriginalsDialog()
+ {
+ InitializeComponent();
+ }
+
+ public ImportOriginalsDialog(ImportOriginalsViewModel viewModel)
+ : this()
+ {
+ DataContext = viewModel;
+ viewModel.Imported += (_, _) => Close(true);
+ }
+
+ private ImportOriginalsViewModel? Vm => DataContext as ImportOriginalsViewModel;
+
+ private async void ChooseFile_Click(object? sender, RoutedEventArgs e)
+ {
+ IReadOnlyList files = await StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions
+ {
+ Title = "Choose the firmware file",
+ AllowMultiple = false,
+ FileTypeFilter =
+ [
+ new FilePickerFileType("Firmware (.hsqs, .tar, .tar.gz)") { Patterns = ["*.hsqs", "*.squashfs", "*.tar", "*.gz", "*.tgz"] },
+ FilePickerFileTypes.All,
+ ],
+ });
+
+ if (Vm is { } vm && files.Count == 1 && files[0].TryGetLocalPath() is { } path)
+ await vm.ImportFromFileAsync(path);
+ }
+
+ private async void ChooseFolder_Click(object? sender, RoutedEventArgs e)
+ {
+ IReadOnlyList folders = await StorageProvider.OpenFolderPickerAsync(new FolderPickerOpenOptions
+ {
+ Title = "Choose the console's UI folder",
+ AllowMultiple = false,
+ });
+
+ if (Vm is { } vm && folders.Count == 1 && folders[0].TryGetLocalPath() is { } path)
+ await vm.ImportFromFolderAsync(path);
+ }
+
+ private void Cancel_Click(object? sender, RoutedEventArgs e)
+ {
+ Vm?.Cancel();
+ Close(false);
+ }
+ }
+}
diff --git a/Views/MainWindow.axaml.cs b/Views/MainWindow.axaml.cs
index c1b66a8..5d60b46 100644
--- a/Views/MainWindow.axaml.cs
+++ b/Views/MainWindow.axaml.cs
@@ -1,10 +1,12 @@
using System.IO;
+using System.Linq;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Threading;
+using SNESMiniLuaCompiler.Firmware;
using SNESMiniLuaCompiler.Helpers;
using SNESMiniLuaCompiler.Models;
using SNESMiniLuaCompiler.ViewModels;
@@ -26,11 +28,26 @@ public MainWindow()
if (Vm is { } vm)
{
vm.DecryptFilesAsyncDelegate = DecryptFilesAsync;
+ vm.ImportOriginalsDelegate = ShowImportDialogAsync;
vm.UpdateButtonStates();
}
};
}
+ private async Task ShowImportDialogAsync(SystemModel system, string consoleName)
+ {
+ var viewModel = new ImportOriginalsViewModel(system, consoleName);
+ if (!await new ImportOriginalsDialog(viewModel).ShowDialog(this))
+ return false;
+
+ // a firmware file or a folder can hold several consoles: all are kept, none is asked for again
+ if (viewModel.ImportedConsoles.Count > 1)
+ NotificationHelper.Success($"Kept the original files of {viewModel.ImportedConsoles.Count} consoles: " +
+ string.Join(", ", viewModel.ImportedConsoles.Select(c => ConsoleLayout.For(c.System).DisplayName)), "Light");
+
+ return true;
+ }
+
private async Task DecryptFilesAsync()
{
if (Vm is not { } vm)
diff --git a/scripts/build-luajit-macos.sh b/scripts/build-luajit-macos.sh
new file mode 100644
index 0000000..c92417b
--- /dev/null
+++ b/scripts/build-luajit-macos.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+# Builds LuaJIT 2.0.4 for macOS x86-64 from third_party/luajit (the source Nintendo publishes for the
+# consoles, see third_party/luajit/NINTENDO.md) and copies luajit + jit/bcsave.lua to OUT_DIR
+# (default: Lib/luajit-macos). The consoles use LuaJIT 2.0.x (bytecode version 1), so do NOT use the 2.1 branch.
+# LuaJIT 2.0 has no ARM64 support: on Apple Silicon this x86-64 build runs under Rosetta 2.
+# Needs: make, clang (Xcode Command Line Tools).
+set -euo pipefail
+
+ROOT="$(cd "$(dirname "$0")/.." && pwd)"
+OUT_DIR="${1:-$ROOT/Lib/luajit-macos}"
+WORK_DIR="$(mktemp -d)"
+trap 'rm -rf "$WORK_DIR"' EXIT
+
+cp -R "$ROOT/third_party/luajit/." "$WORK_DIR/"
+cd "$WORK_DIR"
+MACOSX_DEPLOYMENT_TARGET=10.15 make -j"$(sysctl -n hw.ncpu)" >/dev/null
+
+mkdir -p "$OUT_DIR/jit"
+cp src/luajit "$OUT_DIR/luajit"
+cp src/jit/bcsave.lua "$OUT_DIR/jit/"
+echo "LuaJIT built in $OUT_DIR: $("$OUT_DIR/luajit" -v)"