Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/base
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-25 08:40:02 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-25 08:40:02 +1100
commit5981880a99b62b52c74619ea535abd24b6b132cf (patch)
tree1c15395c792dd7e2d01b32770753ab3e93f349a1 /source/base
parent8899a1d27016880708783f9452cb010d8111fe82 (diff)
title changes (moved quit button away) + better compressed all the pngs
Diffstat (limited to 'source/base')
-rw-r--r--source/base/StarAssets.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/base/StarAssets.cpp b/source/base/StarAssets.cpp
index f1c1009..01a6001 100644
--- a/source/base/StarAssets.cpp
+++ b/source/base/StarAssets.cpp
@@ -103,7 +103,8 @@ Maybe<RectU> FramesSpecification::getRect(String const& frame) const {
}
Assets::Assets(Settings settings, StringList assetSources) {
- const char* const AssetsPatchSuffix = ".patch";
+ const char* AssetsPatchSuffix = ".patch";
+ const char* AssetsLuaPatchSuffix = ".patch.lua";
m_settings = std::move(settings);
m_stopThreads = false;
@@ -190,6 +191,10 @@ Assets::Assets(Settings settings, StringList assetSources) {
auto targetPatchFile = filename.substr(0, filename.size() - strlen(AssetsPatchSuffix));
if (auto p = m_files.ptr(targetPatchFile))
p->patchSources.append({filename, source});
+ } else if (filename.endsWith(AssetsLuaPatchSuffix, String::CaseInsensitive)) {
+ auto targetPatchFile = filename.substr(0, filename.size() - strlen(AssetsLuaPatchSuffix));
+ if (auto p = m_files.ptr(targetPatchFile))
+ p->patchSources.append({filename, source});
} else {
for (int i = 0; i < 10; i++) {
if (filename.endsWith(AssetsPatchSuffix + toString(i), String::CaseInsensitive)) {