From 9c08013026c5df23dd58d68c115155836ee081cd Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Mon, 20 Nov 2023 20:33:42 -0600 Subject: [PATCH] Some minor framework tweaks. --- CHANGELOG.txt | 6 ++++++ assets/Framework.singe | 2 ++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index f51e7c9f6..33651c14a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -21,6 +21,8 @@ New Features - SINGE_FRAMEWORK_VERSION variable added. +- DIR variable added providing directory to the running script. + - All new Lua library handling. Previously Singe "injected" libraries directly into the script context. Now there is a proper Lua module search handler. Scripts can properly require() modules from the following: @@ -52,6 +54,10 @@ Fixes - PNG files no longer generate warnings on the console. +- Menu system now performs "natural sorting" of game titles instead of brain + dead "computer sorting". It should make a lot more sense paging through + games now. + - Building Singe depended on a lot of undocumented software cobbled together from other projects. This has been vastly improved and should be usable by actual humans now. diff --git a/assets/Framework.singe b/assets/Framework.singe index f916fc7e9..071f300da 100644 --- a/assets/Framework.singe +++ b/assets/Framework.singe @@ -26,6 +26,8 @@ SINGE_FRAMEWORK_VERSION = 2.10 +DIR = singeGetScriptPath():match("(.*[/\\])") or "./" + function utilDeepCopy(orig) local orig_type = type(orig)