DIRECTOR: Added more debug ouput to quirks

This commit is contained in:
Eugene Sandulenko 2023-02-10 12:49:33 +01:00
parent 2dc4c71f1f
commit 4cc5b9e4d8
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -126,6 +126,8 @@ void DirectorEngine::gameQuirks(const char *target, Common::Platform platform) {
for (auto q = quirks; q->target != nullptr; q++) {
if (q->platform == Common::kPlatformUnknown || q->platform == platform)
if (!strcmp(q->target, target)) {
debugC(1, kDebugLoading, "Applying quirk for the target %s", target);
q->quirk();
break;
}
@ -139,6 +141,8 @@ void DirectorEngine::gameQuirks(const char *target, Common::Platform platform) {
if (size == -1)
size = strlen((const char *)f->data);
list.push_back(CachedArchive::InputEntry(f->fileName, f->data, size));
debugC(1, kDebugLoading, "Added file '%s' of size %d to the file cache", f->fileName, size);
}
}