Exemplo n.º 1
0
        public void Intialize(ClientCheck config)
        {
            Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

            try {
                Version = config.Version;

                m_list      = OJNListDecoder.Decode(AppDomain.CurrentDomain.BaseDirectory + $"\\Image\\{config.OJNList}");
                m_musiclist = new(AppDomain.CurrentDomain.BaseDirectory + $"\\Image\\{config.OJNList}");
                m_server    = new TCPServer(m_config.ServerPort);
                m_server.OnServerMessage += ServerMessage;
                m_server.Intialize();

                Ready = true;
            } catch (Exception e) {
                Log.Write("::Initialize -> {0}", e.Message);
                OnError?.Invoke(this, e);
            }
        }
Exemplo n.º 2
0
 public void LoadOJNlist()
 {
     ojnlist = OJNListDecoder.Decode(AppDomain.CurrentDomain.BaseDirectory + @"\Image\OJNList.dat", true);
 }