PostProcessing/FX: Support reading shaders from resources

This commit is contained in:
Stenzek
2023-11-23 19:52:28 +10:00
parent 1a79a2f196
commit 7bbf04ab99
7 changed files with 116 additions and 23 deletions

View File

@@ -350,6 +350,12 @@ s32 Host::Internal::GetTranslatedStringImpl(const std::string_view& context, con
return static_cast<s32>(msg.size());
}
bool Host::ResourceFileExists(const char* filename)
{
const std::string path(Path::Combine(EmuFolders::Resources, filename));
return FileSystem::FileExists(path.c_str());
}
std::optional<std::vector<u8>> Host::ReadResourceFile(const char* filename)
{
const std::string path(Path::Combine(EmuFolders::Resources, filename));