Esempio n. 1
0
        static void ReadArguments(string[] args)
        {
            for (int i = 1; i < args.Length; i += 2)
            {
                switch (args[i - 1])
                {
                case "-config":
                    CharacterConfig.Initialize(args[i]);
                    break;

                default:
                    Log.Error($"'{args[i - 1]}' isn't a valid argument.");
                    break;
                }
            }

            if (!CharacterConfig.IsInitialized)
            {
                CharacterConfig.Initialize($"./Configs/{serverName}.conf");
            }
        }
Esempio n. 2
0
        static void ReadArguments(string[] args)
        {
            for (int i = 1; i < args.Length; i += 2)
            {
                switch (args[i - 1])
                {
                case "-config":
                    CharacterConfig.Initialize(args[i]);
                    break;

                default:
                    Log.Message(LogType.Error, "'{0}' isn't a valid argument.", args[i - 1]);
                    break;
                }
            }

            if (!CharacterConfig.IsInitialized)
            {
                CharacterConfig.Initialize("./Configs/CharacterServer.conf");
            }
        }