static bool Prefix(ref int __result, int voiceId, int voiceLineId = 0) { if (!enabled) { return(true); } Language voiceLanguage = Singleton <OptionsMgr> .Instance.VoiceLanguage; if (LanguageUtils.IsChinese(voiceLanguage)) { return(true); } if (voiceId == 0 || voiceLineId == 0) { __result = 0; return(false); } Item item2 = list.Find(delegate(Item item) { if (voiceLineId <= 0) { return(item.voiceId == voiceId); } return(item.voiceId == voiceId && item.voiceLineId == voiceLineId); }); if (item2 == null) { __result = 0; return(false); } if (item2.audioId <= 0 || settings.AlwaysChinese) { __result = item2.audioIdCN; } else { __result = item2.audioId; } return(false); }