mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-11-28 17:51:08 +01:00
fix(libplacebo): fixed wide char string path support for GLSL shader path
This commit is contained in:
parent
fb0e3a040d
commit
d6f27b3f22
@ -43,7 +43,11 @@ int LibplaceboFilter::init(AVCodecContext *dec_ctx, AVCodecContext *enc_ctx, AVB
|
|||||||
} else {
|
} else {
|
||||||
// Construct the fallback path using std::filesystem
|
// Construct the fallback path using std::filesystem
|
||||||
shader_full_path = find_resource_file(
|
shader_full_path = find_resource_file(
|
||||||
|
#ifdef _WIN32
|
||||||
|
std::filesystem::path("models") / L"libplacebo" / (shader_path.wstring() + L".glsl")
|
||||||
|
#else
|
||||||
std::filesystem::path("models") / "libplacebo" / (shader_path.string() + ".glsl")
|
std::filesystem::path("models") / "libplacebo" / (shader_path.string() + ".glsl")
|
||||||
|
#endif
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user