fix(fsutils): fix resource finding in AppImage

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x
2025-01-11 00:00:00 +00:00
parent 55556e60a1
commit 774fd4f8c2
6 changed files with 75 additions and 48 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <filesystem>
#include <optional>
#include <string>
namespace video2x {
@@ -20,9 +21,9 @@ typedef std::wstring StringType;
typedef std::string StringType;
#endif
bool filepath_is_readable(const std::filesystem::path& path);
bool file_is_readable(const std::filesystem::path& path);
std::filesystem::path find_resource_file(const std::filesystem::path& path);
std::optional<std::filesystem::path> find_resource(const std::filesystem::path& resource);
std::string path_to_u8string(const std::filesystem::path& path);