Build 0.2 native launcher and portable Classic runtime (by Codex)
This commit is contained in:
1 parent
3a021fc160
commit
2552528176
84 files changed
+5004
-197
No files matched your search
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/setup.hpp"
|
||||
#include "formats/content.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cctype>
|
||||
@@ -30,6 +31,8 @@ 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 (content::find(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)) {
|
||||
|
||||
Reference in new issue
Block a user