Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1.         #region File Shit
  2.  
  3.         public static IPAddress IP;
  4.         public static int Port;
  5.         public static string DB;
  6.         public static string DBIP;
  7.         public static string DBUser;
  8.         public static string DBPass;
  9.  
  10.         public static void Load()
  11.         {
  12.             IniReader conf = new IniReader("conf/WorldSvr.ini");
  13.  
  14.             IP = IPAddress.Parse(conf.ReadString("listen", "ip"));
  15.             Port = conf.ReadInteger("listen", "port");
  16.             DB = conf.ReadString("sql", "database");
  17.             DBIP = conf.ReadString("sql", "ip");
  18.             DBUser = conf.ReadString("sql", "user");
  19.             DBPass = conf.ReadString("sql", "password");
  20.         }
  21.  
  22.         #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement