akaaafk commited on
Commit
42b61bf
·
verified ·
1 Parent(s): 95f48cf

Add files using upload-large-folder tool

Browse files
Files changed (20) hide show
  1. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Messaging.meta +8 -0
  2. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Plugins.meta +8 -0
  3. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/ProjectGeneration.meta +8 -0
  4. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Solution.cs +12 -0
  5. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Solution.cs.meta +11 -0
  6. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/SolutionParser.cs +80 -0
  7. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/SolutionParser.cs.meta +11 -0
  8. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/SolutionProjectEntry.cs +22 -0
  9. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/SolutionProjectEntry.cs.meta +11 -0
  10. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/SolutionProperties.cs +15 -0
  11. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/SolutionProperties.cs.meta +11 -0
  12. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Symbols.cs +30 -0
  13. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Symbols.cs.meta +11 -0
  14. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Testing.meta +8 -0
  15. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/UnityInstallation.cs +27 -0
  16. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/UnityInstallation.cs.meta +11 -0
  17. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/UsageUtility.cs +118 -0
  18. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/UsageUtility.cs.meta +11 -0
  19. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/VersionPair.cs +16 -0
  20. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/VersionPair.cs.meta +11 -0
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Messaging.meta ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: 2f820130c86c28547a0f1a2f4c73155b
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Plugins.meta ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: 1e5abb64fdd0542b38f4dc1b60343e8a
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/ProjectGeneration.meta ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: 8beeeeebc0857854d8b4e2c2895dd7a9
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Solution.cs ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ namespace Microsoft.Unity.VisualStudio.Editor
6
+ {
7
+ internal class Solution
8
+ {
9
+ public SolutionProjectEntry[] Projects { get; set; }
10
+ public SolutionProperties[] Properties { get; set; }
11
+ }
12
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Solution.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: af4c2c762e1d8e949a6bc458973df6e7
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/SolutionParser.cs ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ using System.Collections.Generic;
6
+ using System.Text.RegularExpressions;
7
+
8
+ namespace Microsoft.Unity.VisualStudio.Editor
9
+ {
10
+ internal static class SolutionParser
11
+ {
12
+ // Compared to the bridge implementation, we are not returning "{" "}" from Guids
13
+ private static readonly Regex ProjectDeclaration = new Regex(@"Project\(\""{(?<projectFactoryGuid>.*?)}\""\)\s+=\s+\""(?<name>.*?)\"",\s+\""(?<fileName>.*?)\"",\s+\""{(?<projectGuid>.*?)}\""(?<metadata>.*?)\bEndProject\b", RegexOptions.Singleline | RegexOptions.ExplicitCapture);
14
+ private static readonly Regex PropertiesDeclaration = new Regex(@"GlobalSection\((?<name>([\w]+Properties|NestedProjects))\)\s+=\s+(?<type>(?:post|pre)Solution)(?<entries>.*?)EndGlobalSection", RegexOptions.Singleline | RegexOptions.ExplicitCapture);
15
+ private static readonly Regex PropertiesEntryDeclaration = new Regex(@"^\s*(?<key>.*?)=(?<value>.*?)$", RegexOptions.Multiline | RegexOptions.ExplicitCapture);
16
+
17
+ public static Solution ParseSolutionFile(string filename, IFileIO fileIO)
18
+ {
19
+ return ParseSolutionContent(fileIO.ReadAllText(filename));
20
+ }
21
+
22
+ public static Solution ParseSolutionContent(string content)
23
+ {
24
+ return new Solution
25
+ {
26
+ Projects = ParseSolutionProjects(content),
27
+ Properties = ParseSolutionProperties(content)
28
+ };
29
+ }
30
+
31
+ private static SolutionProjectEntry[] ParseSolutionProjects(string content)
32
+ {
33
+ var projects = new List<SolutionProjectEntry>();
34
+ var mc = ProjectDeclaration.Matches(content);
35
+
36
+ foreach (Match match in mc)
37
+ {
38
+ projects.Add(new SolutionProjectEntry
39
+ {
40
+ ProjectFactoryGuid = match.Groups["projectFactoryGuid"].Value,
41
+ Name = match.Groups["name"].Value,
42
+ FileName = match.Groups["fileName"].Value,
43
+ ProjectGuid = match.Groups["projectGuid"].Value,
44
+ Metadata = match.Groups["metadata"].Value
45
+ });
46
+ }
47
+
48
+ return projects.ToArray();
49
+ }
50
+
51
+ private static SolutionProperties[] ParseSolutionProperties(string content)
52
+ {
53
+ var properties = new List<SolutionProperties>();
54
+ var mc = PropertiesDeclaration.Matches(content);
55
+
56
+ foreach (Match match in mc)
57
+ {
58
+ var sp = new SolutionProperties
59
+ {
60
+ Entries = new List<KeyValuePair<string, string>>(),
61
+ Name = match.Groups["name"].Value,
62
+ Type = match.Groups["type"].Value
63
+ };
64
+
65
+ var entries = match.Groups["entries"].Value;
66
+ var mec = PropertiesEntryDeclaration.Matches(entries);
67
+ foreach (Match entry in mec)
68
+ {
69
+ var key = entry.Groups["key"].Value.Trim();
70
+ var value = entry.Groups["value"].Value.Trim();
71
+ sp.Entries.Add(new KeyValuePair<string, string>(key, value));
72
+ }
73
+
74
+ properties.Add(sp);
75
+ }
76
+
77
+ return properties.ToArray();
78
+ }
79
+ }
80
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/SolutionParser.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: fbbb1ee655846b043baf6c3502b5ce49
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/SolutionProjectEntry.cs ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ using System;
6
+
7
+ namespace Microsoft.Unity.VisualStudio.Editor
8
+ {
9
+ internal class SolutionProjectEntry
10
+ {
11
+ public string ProjectFactoryGuid { get; set; }
12
+ public string Name { get; set; }
13
+ public string FileName { get; set; }
14
+ public string ProjectGuid { get; set; }
15
+ public string Metadata { get; set; }
16
+
17
+ public bool IsSolutionFolderProjectFactory()
18
+ {
19
+ return ProjectFactoryGuid != null && ProjectFactoryGuid.Equals("2150E333-8FDC-42A3-9474-1A3956D46DE8", StringComparison.OrdinalIgnoreCase);
20
+ }
21
+ }
22
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/SolutionProjectEntry.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: 5c1b8a755d2c97640bbb207c43f4cf61
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/SolutionProperties.cs ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ using System.Collections.Generic;
6
+
7
+ namespace Microsoft.Unity.VisualStudio.Editor
8
+ {
9
+ internal class SolutionProperties
10
+ {
11
+ public string Name { get; set; }
12
+ public IList<KeyValuePair<string, string>> Entries { get; set; }
13
+ public string Type { get; set; }
14
+ }
15
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/SolutionProperties.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: 829d4d6bc39fd1044ba4c5fc2a9c911f
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Symbols.cs ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ using System;
6
+ using System.IO;
7
+
8
+ namespace Microsoft.Unity.VisualStudio.Editor
9
+ {
10
+ internal static class Symbols
11
+ {
12
+ public static bool IsPortableSymbolFile(string pdbFile)
13
+ {
14
+ try
15
+ {
16
+ using (var stream = File.OpenRead(pdbFile))
17
+ {
18
+ return stream.ReadByte() == 'B'
19
+ && stream.ReadByte() == 'S'
20
+ && stream.ReadByte() == 'J'
21
+ && stream.ReadByte() == 'B';
22
+ }
23
+ }
24
+ catch (Exception)
25
+ {
26
+ return false;
27
+ }
28
+ }
29
+ }
30
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Symbols.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: b9308b762484008498bb5cd1886aa491
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/Testing.meta ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: 7f9f1d015d7a8ba46b7d71acfcda3ae7
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/UnityInstallation.cs ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ using System;
7
+ using UnityEditor.Compilation;
8
+
9
+ namespace Microsoft.Unity.VisualStudio.Editor
10
+ {
11
+ internal static class UnityInstallation
12
+ {
13
+ public static Version LatestLanguageVersionSupported(Assembly assembly)
14
+ {
15
+ #if UNITY_2020_2_OR_NEWER
16
+ if (assembly?.compilerOptions != null && Version.TryParse(assembly.compilerOptions.LanguageVersion, out var result))
17
+ return result;
18
+
19
+ // if parsing fails, we know at least we have support for 8.0
20
+ return new Version(8, 0);
21
+ #else
22
+ return new Version(7, 3);
23
+ #endif
24
+ }
25
+
26
+ }
27
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/UnityInstallation.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: a8c76505bcc613640ade706bdb0f1cba
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/UsageUtility.cs ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ using System;
6
+ using System.IO;
7
+ using System.Linq;
8
+
9
+ using UnityEngine;
10
+ using UnityEditor;
11
+ using UnityEditor.SceneManagement;
12
+ using UnityEngine.SceneManagement;
13
+
14
+ namespace Microsoft.Unity.VisualStudio.Editor
15
+ {
16
+ [Serializable]
17
+ internal class FileUsage
18
+ {
19
+ public string Path;
20
+ public string[] GameObjectPath;
21
+ }
22
+
23
+ internal static class UsageUtility
24
+ {
25
+ internal static void ShowUsage(string json)
26
+ {
27
+ try
28
+ {
29
+ var usage = JsonUtility.FromJson<FileUsage>(json);
30
+ ShowUsage(usage.Path, usage.GameObjectPath);
31
+ }
32
+ catch (Exception)
33
+ {
34
+ // ignore malformed request
35
+ }
36
+ }
37
+
38
+ internal static void ShowUsage(string path, string[] gameObjectPath)
39
+ {
40
+ path = FileUtility.MakeRelativeToProjectPath(path);
41
+ if (path == null)
42
+ return;
43
+
44
+ path = FileUtility.NormalizeWindowsToUnix(path);
45
+ var extension = Path.GetExtension(path).ToLower();
46
+
47
+ EditorUtility.FocusProjectWindow();
48
+
49
+ switch (extension)
50
+ {
51
+ case ".unity":
52
+ ShowSceneUsage(path, gameObjectPath);
53
+ break;
54
+ default:
55
+ var asset = AssetDatabase.LoadMainAssetAtPath(path);
56
+ Selection.activeObject = asset;
57
+ EditorGUIUtility.PingObject(asset);
58
+ break;
59
+ }
60
+ }
61
+
62
+ private static void ShowSceneUsage(string scenePath, string[] gameObjectPath)
63
+ {
64
+ var scene = SceneManager.GetSceneByPath(scenePath.Replace(Path.DirectorySeparatorChar, '/'));
65
+ if (!scene.isLoaded)
66
+ {
67
+ var result = UnityEditor.EditorUtility.DisplayDialogComplex("Show Usage",
68
+ $"Do you want to open \"{Path.GetFileName(scenePath)}\"?",
69
+ "Open Scene",
70
+ "Cancel",
71
+ "Open Scene (additive)");
72
+
73
+ switch (result)
74
+ {
75
+ case 0:
76
+ EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo();
77
+ scene = EditorSceneManager.OpenScene(scenePath, OpenSceneMode.Single);
78
+ break;
79
+ case 1:
80
+ return;
81
+ case 2:
82
+ scene = EditorSceneManager.OpenScene(scenePath, OpenSceneMode.Additive);
83
+ break;
84
+ }
85
+ }
86
+
87
+ ShowSceneUsage(scene, gameObjectPath);
88
+ }
89
+
90
+ private static void ShowSceneUsage(Scene scene, string[] gameObjectPath)
91
+ {
92
+ if (gameObjectPath == null || gameObjectPath.Length == 0)
93
+ return;
94
+
95
+ var go = scene.GetRootGameObjects().FirstOrDefault(g => g.name == gameObjectPath[0]);
96
+ if (go == null)
97
+ return;
98
+
99
+ for (var ni = 1; ni < gameObjectPath.Length; ni++)
100
+ {
101
+ var transform = go.transform;
102
+ for (var i = 0; i < transform.childCount; i++)
103
+ {
104
+ var child = transform.GetChild(i);
105
+ var childgo = child.gameObject;
106
+ if (childgo.name == gameObjectPath[ni])
107
+ {
108
+ go = childgo;
109
+ break;
110
+ }
111
+ }
112
+ }
113
+
114
+ Selection.activeObject = go;
115
+ EditorGUIUtility.PingObject(go);
116
+ }
117
+ }
118
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/UsageUtility.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: 5a7aba2d3d458e04eb4210c0303fbf64
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/VersionPair.cs ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using System;
2
+
3
+ namespace Microsoft.Unity.VisualStudio.Editor
4
+ {
5
+ internal struct VersionPair
6
+ {
7
+ public Version IdeVersion;
8
+ public Version LanguageVersion;
9
+
10
+ public VersionPair(int idemajor, int ideminor, int languageMajor, int languageMinor)
11
+ {
12
+ IdeVersion = new Version(idemajor, ideminor);
13
+ LanguageVersion = new Version(languageMajor, languageMinor);
14
+ }
15
+ }
16
+ }
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.ide.visualstudio@2.0.7/Editor/VersionPair.cs.meta ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fileFormatVersion: 2
2
+ guid: ffe1bdf971d321f4db593c4c6ebd6e47
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: