mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Merged in takhlaq/ffxiv-classic-server/null (pull request #38)
added db launch args and improved import time on gamedata_actor_class.sql
This commit is contained in:
		| @@ -70,7 +70,22 @@ namespace FFXIVClassic_Map_Server | ||||
|                     if (UInt16.TryParse(val, out port) && (legit = true)) | ||||
|                         OPTIONS_PORT = val; | ||||
|                 } | ||||
|  | ||||
|                 else if (arg == "user" && (legit = true)) | ||||
|                 { | ||||
|                     DATABASE_USERNAME = val; | ||||
|                 } | ||||
|                 else if (arg == "p" && (legit = true)) | ||||
|                 { | ||||
|                     DATABASE_PASSWORD = val; | ||||
|                 } | ||||
|                 else if (arg == "db" && (legit = true)) | ||||
|                 { | ||||
|                     DATABASE_NAME = val; | ||||
|                 } | ||||
|                 else if (arg == "host" && (legit = true)) | ||||
|                 { | ||||
|                     DATABASE_HOST = val; | ||||
|                 } | ||||
|                 if (!legit) | ||||
|                 { | ||||
|                     Program.Log.Error("Invalid parameter <{0}> for argument: <--{1}> or argument doesnt exist!", val, arg); | ||||
|   | ||||
| @@ -53,7 +53,7 @@ namespace FFXIVClassic_Map_Server | ||||
|             zoneList = new Dictionary<uint, Zone>(); | ||||
|             int count1 = 0; | ||||
|             int count2 = 0; | ||||
|  | ||||
|              | ||||
|             using (MySqlConnection conn = new MySqlConnection(String.Format("Server={0}; Port={1}; Database={2}; UID={3}; Password={4}", ConfigConstants.DATABASE_HOST, ConfigConstants.DATABASE_PORT, ConfigConstants.DATABASE_NAME, ConfigConstants.DATABASE_USERNAME, ConfigConstants.DATABASE_PASSWORD))) | ||||
|             { | ||||
|                 try | ||||
|   | ||||
		Reference in New Issue
	
	Block a user