コード例 #1
0
ファイル: Program.cs プロジェクト: VRCMG/VRChat-Ripper
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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();
            }
        }