BurkusCat / flotilla-non-terminal-adventures

Modded source code of tactical space game Flotilla (2010).
zlib License
0 stars 0 forks source link

Interesting anti piracy check! #20

Open BurkusCat opened 4 years ago

BurkusCat commented 4 years ago

It puts the game into trial mode if it doesn't have these files. This was disabled in the 2019 FNA update! :)

        /// <summary>
        /// returns TRUE if the system is missing files pertinent to the full version.
        /// </summary>
        /// <returns></returns>
        private bool IsMissingFiles()
        {
            //BC 3-25-2019 Remove the pirate file check.
            return false;

            if (!System.IO.File.Exists(@"WindowsContent/splash.bmp"))
                return true;

            if (!System.IO.File.Exists(@"Content/textures/cloudbump.xnb"))
                return true;

            if (!System.IO.File.Exists(@"Content/particles/glow.xnb"))
                return true;

            return false;
        }