private static void OnLangFailure(object cookie) { Lang lang = Service.Get <Lang>(); string text = "en_US"; if (lang.Locale != text) { lang.Locale = text; Service.Get <ServerPlayerPrefs>().SetPref(ServerPref.Locale, text); LangUtils.AddLocalStringsData(text); lang.UnloadAssets(); LangUtils.LoadStringData((AssetsCompleteDelegate)cookie); return; } LangUtils.OnLangComplete(null, cookie); }
public unsafe static long $Invoke0(long instance, long *args) { LangUtils.AddLocalStringsData(Marshal.PtrToStringUni(*(IntPtr *)args)); return(-1L); }