Load standalone community data without DOS programs and match Original crest backgrounds (by Codex)
Prepare verified release / draft (push) Canceled after 0s

This commit is contained in:
Codex committed 2026-10-31 11:43:25 +01:00
1 parent 3044b95b44
commit 1771cb5599
22 files changed
+454 -19

No files matched your search

+2
View File
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
#include "formats/executable_layout.hpp"
#include "formats/resource_bundle.hpp"
#include "ui/setup.hpp"
#include <algorithm>
@@ -30,6 +31,7 @@ void copy_rect(Image& dst, const Image& src, int sx, int sy, int dx, int dy,
} // namespace
std::filesystem::path asset_path(const std::filesystem::path& directory, const std::string& name) {
if (!std::filesystem::exists(directory / name) && resource_exists(directory / name)) return directory / name;
std::filesystem::path found;
for (const auto& e : std::filesystem::directory_iterator(directory)) {
if (e.is_regular_file() && folded(e.path().filename().string()) == folded(name)) {