protected void registerDevice() { LogDeviceBase logDevice = null; #if ENABLE_WINLOG logDevice = new WinLogDevice(); logDevice.initDevice(); m_logDeviceList.Add(logDevice); m_fightLogDeviceList.Add(logDevice); #endif #if ENABLE_NETLOG logDevice = new NetLogDevice(); logDevice.initDevice(); m_logDeviceList.Add(logDevice); m_fightLogDeviceList.Add(logDevice); #endif }