mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
check all shaders are loaded early
This commit is contained in:
parent
b5ca50d3d8
commit
34da212a74
1 changed files with 5 additions and 0 deletions
|
|
@ -125,6 +125,11 @@ void Extract::extractShaders() {
|
|||
throw std::runtime_error("Unable to read Lossless.dll, is it installed?");
|
||||
peparse::IterRsrc(dll, on_resource, nullptr);
|
||||
peparse::DestructParsedPE(dll);
|
||||
|
||||
// ensure all shaders are present
|
||||
for (const auto& [name, idx] : nameIdxTable)
|
||||
if (shaders().find(idx) == shaders().end())
|
||||
throw std::runtime_error("Shader not found: " + name + ".\nIs Lossless Scaling up to date?");
|
||||
}
|
||||
|
||||
std::vector<uint8_t> Extract::getShader(const std::string& name) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue