mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Fix houses not being read-only in itch.io release
This commit is contained in:
@@ -854,6 +854,10 @@ void YellowAlert (short whichAlert, short identifier)
|
|||||||
|
|
||||||
Boolean IsFileReadOnly (const VFileSpec &spec)
|
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);
|
return PortabilityLayer::FileManager::GetInstance()->FileLocked(spec.m_dir, spec.m_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user