AantCoder/OnlineCity

Reliance on kernel32

velddev opened this issue · 2 comments

Logging in on a savegame on the mac version of rimworld causes the game to crash due to a reliance on CpuID, which in turn is a windows-only dependency.

Exception filling window for RimWorldOnlineCity.Dialog_LoginForm: System.DllNotFoundException: kernel32
  at (wrapper managed-to-native) RimWorldOnlineCity.Lib.CpuID.VirtualProtect(byte[],intptr,int,int&)
  at RimWorldOnlineCity.Lib.CpuID.ExecuteCode (System.Byte[]& result) [0x0003d] in <fecc4d80e6c4478087a3eab476014145>:0 
  at RimWorldOnlineCity.Lib.CpuID.ProcessorId () [0x00007] in <fecc4d80e6c4478087a3eab476014145>:0 
  at RimWorldOnlineCity.SessionClientController.GetSaffix () [0x000d1] in <fecc4d80e6c4478087a3eab476014145>:0 
  at RimWorldOnlineCity.SessionClientController.Login (System.String addr, System.String login, System.String password, System.Action LoginOK) [0x0004d] in <fecc4d80e6c4478087a3eab476014145>:0 
  at RimWorldOnlineCity.Dialog_LoginForm.DoWindowContents (UnityEngine.Rect inRect) [0x0008d] in <fecc4d80e6c4478087a3eab476014145>:0 
  at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <0feb66f0236b4f2faa0d13d3d46f45b1>:0 
Verse.Log:Error(String, Boolean)
Verse.Window:InnerWindowOnGUI(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

I ran into this issue as well on Linux

Check out the latest release (0.4.74a). This error should not be, but it may be something else. Unfortunately I don't test on Linux.