fCraft.Paths.Paths C# (CSharp) Method

Paths() static private method

static private Paths ( ) : System
return System
        static Paths()
        {
            string assemblyDir = Path.GetDirectoryName( Assembly.GetExecutingAssembly().Location );
            if ( assemblyDir != null ) {
                WorkingPathDefault = Path.GetFullPath( assemblyDir );
            } else {
                WorkingPathDefault = Path.GetPathRoot( assemblyDir );
            }

            WorkingPath = WorkingPathDefault;
            MapPath = MapPathDefault;
            LogPath = LogPathDefault;
            ConfigFileName = ConfigFileNameDefault;

            ProtectedFiles = new[]{
                "ConfigGUI.exe",
                "ConfigCLI.exe",
                "fCraft.dll",
                "fCraftGUI.dll",
                "ServerCLI.exe",
                "ServerGUI.exe",
                "ServerWinService.exe",
                UpdaterFileName,
                ConfigFileNameDefault,
                PlayerDBFileName,
                IPBanListFileName,
                RulesFileName,
                AnnouncementsFileName,
                GreetingFileName,
                HeartbeatDataFileName,
                WorldListFileName,
                AutoRankFileName,
                BasscannonFileName,
                ReqFileName,
                SwearWordsFileName
            };

            DataFilesToBackup = new[]{
                PlayerDBFileName,
                IPBanListFileName,
                WorldListFileName,
                ConfigFileName
            };
        }