public static bool TryGetVrcIdList(string input, out VrcId[] vrcIdList) { try { var mc = assetRegex.Matches(input); vrcIdList = new VrcId[mc.Count]; for (int i = 0; i < mc.Count; i++) { vrcIdList[i] = new VrcId(mc[i].ToString()); } return(true); } catch (Exception) { } vrcIdList = null; return(false); }
public static bool TryGetVrcIdList(string input, out VrcId[] vrcIdList) { try { var mc = assetRegex.Matches(input); vrcIdList = new VrcId[mc.Count]; for (var i = 0; i < mc.Count; ++i) { vrcIdList[i] = new VrcId(mc[i].ToString()); } return(true); } catch (Exception ex) { Debug.LogLine($"Failed get id list:\n{ex.Message}", ConsoleColor.Red); } vrcIdList = null; return(false); }
private static void DisableId(VrcId id, Exception ex) { if (!protector.TryStartSession()) { return; } try { // Inform user Debug.LogLine($"[ERROR ] Failed to get {id}:\tIt has been removed from vrchat servers", ConsoleColor.Red, false, true); database.MarkAsDeleted(id); } catch (Exception) {} finally { protector.EndSession(); } }