You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

404 lines
20 KiB

  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class UnityGame
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class UnityGame
  11. ">
  12. <meta name="generator" content="docfx 2.59.3.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <link rel="stylesheet" href="../styles/fix.css">
  18. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  19. <meta property="docfx:navrel" content="../toc.html">
  20. <meta property="docfx:tocrel" content="toc.html">
  21. <meta property="docfx:rel" content="../">
  22. <meta property="docfx:newtab" content="true">
  23. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  24. <div id="wrapper">
  25. <header>
  26. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  27. <div class="container">
  28. <div class="navbar-header">
  29. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  30. <span class="sr-only">Toggle navigation</span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. </button>
  35. <a class="navbar-brand" href="../index.html">
  36. <img id="logo" class="svg" src="../logo.svg" alt="">
  37. </a>
  38. </div>
  39. <div class="collapse navbar-collapse" id="navbar">
  40. <form class="navbar-form navbar-right" role="search" id="search">
  41. <div class="form-group">
  42. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  43. </div>
  44. </form>
  45. </div>
  46. </div>
  47. </nav>
  48. <div class="subnav navbar navbar-default">
  49. <div class="container hide-when-search" id="breadcrumb">
  50. <ul class="breadcrumb">
  51. <li></li>
  52. </ul>
  53. </div>
  54. </div>
  55. </header>
  56. <div class="container body-content">
  57. <div id="search-results">
  58. <div class="search-list">Search Results for <span></span></div>
  59. <div class="sr-items">
  60. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  61. </div>
  62. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  63. </div>
  64. </div>
  65. <div role="main" class="container body-content hide-when-search">
  66. <div class="sidenav hide-when-search">
  67. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  68. <div class="sidetoggle collapse" id="sidetoggle">
  69. <div id="sidetoc"></div>
  70. </div>
  71. </div>
  72. <div class="article row grid-right">
  73. <div class="col-md-10">
  74. <article class="content wrap" id="_content" data-uid="IPA.Utilities.UnityGame">
  75. <h1 id="IPA_Utilities_UnityGame" data-uid="IPA.Utilities.UnityGame" class="text-break">Class UnityGame
  76. </h1>
  77. <div class="markdown level0 summary"><p>Provides some basic utility methods and properties of Beat Saber</p>
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <div class="inheritance">
  81. <h5>Inheritance</h5>
  82. <div class="level0"><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></div>
  83. <div class="level1"><span class="xref">UnityGame</span></div>
  84. </div>
  85. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Utilities.html">IPA.Utilities</a></h6>
  86. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  87. <h5 id="IPA_Utilities_UnityGame_syntax">Syntax</h5>
  88. <div class="codewrapper">
  89. <pre><code class="lang-csharp hljs">public static class UnityGame : object</code></pre>
  90. </div>
  91. <h3 id="properties">Properties
  92. </h3>
  93. <span class="small pull-right mobile-hide">
  94. <span class="divider">|</span>
  95. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_GameVersion.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.GameVersion%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  96. </span>
  97. <span class="small pull-right mobile-hide">
  98. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/UnityGame.cs/#L25">View Source</a>
  99. </span>
  100. <a id="IPA_Utilities_UnityGame_GameVersion_" data-uid="IPA.Utilities.UnityGame.GameVersion*"></a>
  101. <h4 id="IPA_Utilities_UnityGame_GameVersion" data-uid="IPA.Utilities.UnityGame.GameVersion">GameVersion</h4>
  102. <div class="markdown level1 summary"><p>Provides the current game version.</p>
  103. </div>
  104. <div class="markdown level1 conceptual"></div>
  105. <h5 class="decalaration">Declaration</h5>
  106. <div class="codewrapper">
  107. <pre><code class="lang-csharp hljs">public static AlmostVersion GameVersion { get; }</code></pre>
  108. </div>
  109. <h5 class="propertyValue">Property Value</h5>
  110. <table class="table table-bordered table-striped table-condensed">
  111. <thead>
  112. <tr>
  113. <th>Type</th>
  114. <th>Description</th>
  115. </tr>
  116. </thead>
  117. <tbody>
  118. <tr>
  119. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  120. <td><p>the SemVer version of the game</p>
  121. </td>
  122. </tr>
  123. </tbody>
  124. </table>
  125. <span class="small pull-right mobile-hide">
  126. <span class="divider">|</span>
  127. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_InstallPath.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.InstallPath%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  128. </span>
  129. <span class="small pull-right mobile-hide">
  130. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/UnityGame.cs/#L130">View Source</a>
  131. </span>
  132. <a id="IPA_Utilities_UnityGame_InstallPath_" data-uid="IPA.Utilities.UnityGame.InstallPath*"></a>
  133. <h4 id="IPA_Utilities_UnityGame_InstallPath" data-uid="IPA.Utilities.UnityGame.InstallPath">InstallPath</h4>
  134. <div class="markdown level1 summary"><p>Gets the path to the game&apos;s install directory.</p>
  135. </div>
  136. <div class="markdown level1 conceptual"></div>
  137. <h5 class="decalaration">Declaration</h5>
  138. <div class="codewrapper">
  139. <pre><code class="lang-csharp hljs">public static string InstallPath { get; }</code></pre>
  140. </div>
  141. <h5 class="propertyValue">Property Value</h5>
  142. <table class="table table-bordered table-striped table-condensed">
  143. <thead>
  144. <tr>
  145. <th>Type</th>
  146. <th>Description</th>
  147. </tr>
  148. </thead>
  149. <tbody>
  150. <tr>
  151. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  152. <td><p>the path of the game install directory</p>
  153. </td>
  154. </tr>
  155. </tbody>
  156. </table>
  157. <span class="small pull-right mobile-hide">
  158. <span class="divider">|</span>
  159. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_LibraryPath.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.LibraryPath%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  160. </span>
  161. <span class="small pull-right mobile-hide">
  162. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/UnityGame.cs/#L144">View Source</a>
  163. </span>
  164. <a id="IPA_Utilities_UnityGame_LibraryPath_" data-uid="IPA.Utilities.UnityGame.LibraryPath*"></a>
  165. <h4 id="IPA_Utilities_UnityGame_LibraryPath" data-uid="IPA.Utilities.UnityGame.LibraryPath">LibraryPath</h4>
  166. <div class="markdown level1 summary"><p>The path to the <code>Libs</code> folder. Use only if necessary.</p>
  167. </div>
  168. <div class="markdown level1 conceptual"></div>
  169. <h5 class="decalaration">Declaration</h5>
  170. <div class="codewrapper">
  171. <pre><code class="lang-csharp hljs">public static string LibraryPath { get; }</code></pre>
  172. </div>
  173. <h5 class="propertyValue">Property Value</h5>
  174. <table class="table table-bordered table-striped table-condensed">
  175. <thead>
  176. <tr>
  177. <th>Type</th>
  178. <th>Description</th>
  179. </tr>
  180. </thead>
  181. <tbody>
  182. <tr>
  183. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  184. <td><p>the path to the library directory</p>
  185. </td>
  186. </tr>
  187. </tbody>
  188. </table>
  189. <span class="small pull-right mobile-hide">
  190. <span class="divider">|</span>
  191. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_NativeLibraryPath.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.NativeLibraryPath%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  192. </span>
  193. <span class="small pull-right mobile-hide">
  194. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/UnityGame.cs/#L149">View Source</a>
  195. </span>
  196. <a id="IPA_Utilities_UnityGame_NativeLibraryPath_" data-uid="IPA.Utilities.UnityGame.NativeLibraryPath*"></a>
  197. <h4 id="IPA_Utilities_UnityGame_NativeLibraryPath" data-uid="IPA.Utilities.UnityGame.NativeLibraryPath">NativeLibraryPath</h4>
  198. <div class="markdown level1 summary"><p>The path to the <code>Libs\Native</code> folder. Use only if necessary.</p>
  199. </div>
  200. <div class="markdown level1 conceptual"></div>
  201. <h5 class="decalaration">Declaration</h5>
  202. <div class="codewrapper">
  203. <pre><code class="lang-csharp hljs">public static string NativeLibraryPath { get; }</code></pre>
  204. </div>
  205. <h5 class="propertyValue">Property Value</h5>
  206. <table class="table table-bordered table-striped table-condensed">
  207. <thead>
  208. <tr>
  209. <th>Type</th>
  210. <th>Description</th>
  211. </tr>
  212. </thead>
  213. <tbody>
  214. <tr>
  215. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  216. <td><p>the path to the native library directory</p>
  217. </td>
  218. </tr>
  219. </tbody>
  220. </table>
  221. <span class="small pull-right mobile-hide">
  222. <span class="divider">|</span>
  223. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_OnMainThread.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.OnMainThread%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  224. </span>
  225. <span class="small pull-right mobile-hide">
  226. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/UnityGame.cs/#L96">View Source</a>
  227. </span>
  228. <a id="IPA_Utilities_UnityGame_OnMainThread_" data-uid="IPA.Utilities.UnityGame.OnMainThread*"></a>
  229. <h4 id="IPA_Utilities_UnityGame_OnMainThread" data-uid="IPA.Utilities.UnityGame.OnMainThread">OnMainThread</h4>
  230. <div class="markdown level1 summary"><p>Checks if the currently running code is running on the Unity main thread.</p>
  231. </div>
  232. <div class="markdown level1 conceptual"></div>
  233. <h5 class="decalaration">Declaration</h5>
  234. <div class="codewrapper">
  235. <pre><code class="lang-csharp hljs">public static bool OnMainThread { get; }</code></pre>
  236. </div>
  237. <h5 class="propertyValue">Property Value</h5>
  238. <table class="table table-bordered table-striped table-condensed">
  239. <thead>
  240. <tr>
  241. <th>Type</th>
  242. <th>Description</th>
  243. </tr>
  244. </thead>
  245. <tbody>
  246. <tr>
  247. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  248. <td><p><span class="xref">true</span> if the curent thread is the Unity main thread, <span class="xref">false</span> otherwise</p>
  249. </td>
  250. </tr>
  251. </tbody>
  252. </table>
  253. <span class="small pull-right mobile-hide">
  254. <span class="divider">|</span>
  255. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_PluginsPath.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.PluginsPath%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  256. </span>
  257. <span class="small pull-right mobile-hide">
  258. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/UnityGame.cs/#L154">View Source</a>
  259. </span>
  260. <a id="IPA_Utilities_UnityGame_PluginsPath_" data-uid="IPA.Utilities.UnityGame.PluginsPath*"></a>
  261. <h4 id="IPA_Utilities_UnityGame_PluginsPath" data-uid="IPA.Utilities.UnityGame.PluginsPath">PluginsPath</h4>
  262. <div class="markdown level1 summary"><p>The directory to load plugins from.</p>
  263. </div>
  264. <div class="markdown level1 conceptual"></div>
  265. <h5 class="decalaration">Declaration</h5>
  266. <div class="codewrapper">
  267. <pre><code class="lang-csharp hljs">public static string PluginsPath { get; }</code></pre>
  268. </div>
  269. <h5 class="propertyValue">Property Value</h5>
  270. <table class="table table-bordered table-striped table-condensed">
  271. <thead>
  272. <tr>
  273. <th>Type</th>
  274. <th>Description</th>
  275. </tr>
  276. </thead>
  277. <tbody>
  278. <tr>
  279. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  280. <td><p>the path to the plugin directory</p>
  281. </td>
  282. </tr>
  283. </tbody>
  284. </table>
  285. <span class="small pull-right mobile-hide">
  286. <span class="divider">|</span>
  287. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_ReleaseType.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.ReleaseType%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  288. </span>
  289. <span class="small pull-right mobile-hide">
  290. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/UnityGame.cs/#L123">View Source</a>
  291. </span>
  292. <a id="IPA_Utilities_UnityGame_ReleaseType_" data-uid="IPA.Utilities.UnityGame.ReleaseType*"></a>
  293. <h4 id="IPA_Utilities_UnityGame_ReleaseType" data-uid="IPA.Utilities.UnityGame.ReleaseType">ReleaseType</h4>
  294. <div class="markdown level1 summary"><p>Gets the <a class="xref" href="IPA.Utilities.UnityGame.Release.html">UnityGame.Release</a> type of this installation of Beat Saber</p>
  295. </div>
  296. <div class="markdown level1 conceptual"></div>
  297. <h5 class="decalaration">Declaration</h5>
  298. <div class="codewrapper">
  299. <pre><code class="lang-csharp hljs">public static UnityGame.Release ReleaseType { get; }</code></pre>
  300. </div>
  301. <h5 class="propertyValue">Property Value</h5>
  302. <table class="table table-bordered table-striped table-condensed">
  303. <thead>
  304. <tr>
  305. <th>Type</th>
  306. <th>Description</th>
  307. </tr>
  308. </thead>
  309. <tbody>
  310. <tr>
  311. <td><a class="xref" href="IPA.Utilities.UnityGame.Release.html">UnityGame.Release</a></td>
  312. <td><p>the type of release this is</p>
  313. </td>
  314. </tr>
  315. </tbody>
  316. </table>
  317. <h5 id="IPA_Utilities_UnityGame_ReleaseType_remarks">Remarks</h5>
  318. <div class="markdown level1 remarks"><p>This only gives a</p>
  319. </div>
  320. <span class="small pull-right mobile-hide">
  321. <span class="divider">|</span>
  322. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_UserDataPath.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.UserDataPath%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  323. </span>
  324. <span class="small pull-right mobile-hide">
  325. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/UnityGame.cs/#L159">View Source</a>
  326. </span>
  327. <a id="IPA_Utilities_UnityGame_UserDataPath_" data-uid="IPA.Utilities.UnityGame.UserDataPath*"></a>
  328. <h4 id="IPA_Utilities_UnityGame_UserDataPath" data-uid="IPA.Utilities.UnityGame.UserDataPath">UserDataPath</h4>
  329. <div class="markdown level1 summary"><p>The path to the <code>UserData</code> folder.</p>
  330. </div>
  331. <div class="markdown level1 conceptual"></div>
  332. <h5 class="decalaration">Declaration</h5>
  333. <div class="codewrapper">
  334. <pre><code class="lang-csharp hljs">public static string UserDataPath { get; }</code></pre>
  335. </div>
  336. <h5 class="propertyValue">Property Value</h5>
  337. <table class="table table-bordered table-striped table-condensed">
  338. <thead>
  339. <tr>
  340. <th>Type</th>
  341. <th>Description</th>
  342. </tr>
  343. </thead>
  344. <tbody>
  345. <tr>
  346. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  347. <td><p>the path to the user data directory</p>
  348. </td>
  349. </tr>
  350. </tbody>
  351. </table>
  352. </article>
  353. </div>
  354. <div class="hidden-sm col-md-2" role="complementary">
  355. <div class="sideaffix">
  356. <div class="contribution">
  357. <ul class="nav">
  358. <li>
  359. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  360. </li>
  361. <li>
  362. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Utilities/UnityGame.cs/#L18" class="contribution-link">View Source</a>
  363. </li>
  364. </ul>
  365. </div>
  366. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  367. <h5>In This Article</h5>
  368. <div></div>
  369. </nav>
  370. </div>
  371. </div>
  372. </div>
  373. </div>
  374. <footer>
  375. <div class="grad-bottom"></div>
  376. <div class="footer">
  377. <div class="container">
  378. <span class="pull-right">
  379. <a href="#top">Back to top</a>
  380. </span>
  381. <span>Generated by <strong>DocFX</strong></span>
  382. </div>
  383. </div>
  384. </footer>
  385. </div>
  386. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  387. <script type="text/javascript" src="../styles/docfx.js"></script>
  388. <script type="text/javascript" src="../styles/main.js"></script>
  389. </body>
  390. </html>