Fix houses not being read-only in itch.io release

This commit is contained in:
elasota
2020-11-12 19:13:22 -05:00
parent bbd147e1ab
commit 2c073937c3

View File

@@ -854,6 +854,10 @@ void YellowAlert (short whichAlert, short identifier)
Boolean IsFileReadOnly (const VFileSpec &spec)
{
// Kind of annoying, but itch.io doesn't preserve read-only flags and there doesn't seem to be any way around that.
if (spec.m_dir == PortabilityLayer::VirtualDirectories::kApplicationData || spec.m_dir == PortabilityLayer::VirtualDirectories::kGameData)
return true;
return PortabilityLayer::FileManager::GetInstance()->FileLocked(spec.m_dir, spec.m_name);
}