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.

1205 lines
59 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 ModPrefs
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class ModPrefs
  11. ">
  12. <meta name="generator" content="docfx 2.46.0.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 href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  18. <meta property="docfx:navrel" content="../toc.html">
  19. <meta property="docfx:tocrel" content="toc.html">
  20. <meta property="docfx:rel" content="../">
  21. <meta property="docfx:newtab" content="true">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../index.html">
  35. <img id="logo" class="svg" src="../logo.svg" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list"></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="IPA.Config.ModPrefs">
  74. <h1 id="IPA_Config_ModPrefs" data-uid="IPA.Config.ModPrefs" class="text-break">Class ModPrefs
  75. </h1>
  76. <div class="markdown level0 summary"><p>Allows to get and set preferences for your mod. </p>
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <div class="inheritance">
  80. <h5>Inheritance</h5>
  81. <div class="level0"><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></div>
  82. <div class="level1"><span class="xref">ModPrefs</span></div>
  83. </div>
  84. <div classs="implements">
  85. <h5>Implements</h5>
  86. <div><a class="xref" href="IPA.Config.IModPrefs.html">IModPrefs</a></div>
  87. </div>
  88. <div class="inheritedMembers">
  89. <h5>Inherited Members</h5>
  90. <div>
  91. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.tostring#System_Object_ToString">Object.ToString()</a>
  92. </div>
  93. <div>
  94. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_">Object.Equals(Object)</a>
  95. </div>
  96. <div>
  97. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_System_Object_">Object.Equals(Object, Object)</a>
  98. </div>
  99. <div>
  100. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.referenceequals#System_Object_ReferenceEquals_System_Object_System_Object_">Object.ReferenceEquals(Object, Object)</a>
  101. </div>
  102. <div>
  103. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gethashcode#System_Object_GetHashCode">Object.GetHashCode()</a>
  104. </div>
  105. <div>
  106. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gettype#System_Object_GetType">Object.GetType()</a>
  107. </div>
  108. <div>
  109. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.memberwiseclone#System_Object_MemberwiseClone">Object.MemberwiseClone()</a>
  110. </div>
  111. </div>
  112. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Config.html">IPA.Config</a></h6>
  113. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  114. <h5 id="IPA_Config_ModPrefs_syntax">Syntax</h5>
  115. <div class="codewrapper">
  116. <pre><code class="lang-csharp hljs">[Obsolete(&quot;Uses IniFile, which uses 16 bit system calls. Use BS Utils INI system for now.&quot;)]
  117. public class ModPrefs : IModPrefs</code></pre>
  118. </div>
  119. <h3 id="constructors">Constructors
  120. </h3>
  121. <span class="small pull-right mobile-hide">
  122. <span class="divider">|</span>
  123. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs__ctor_IPA_Loader_PluginLoader_PluginMetadata_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.%23ctor(IPA.Loader.PluginLoader.PluginMetadata)%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>
  124. </span>
  125. <span class="small pull-right mobile-hide">
  126. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L106">View Source</a>
  127. </span>
  128. <a id="IPA_Config_ModPrefs__ctor_" data-uid="IPA.Config.ModPrefs.#ctor*"></a>
  129. <h4 id="IPA_Config_ModPrefs__ctor_IPA_Loader_PluginLoader_PluginMetadata_" data-uid="IPA.Config.ModPrefs.#ctor(IPA.Loader.PluginLoader.PluginMetadata)">ModPrefs(PluginLoader.PluginMetadata)</h4>
  130. <div class="markdown level1 summary"><p>Constructs a ModPrefs object for the provide plugin.</p>
  131. </div>
  132. <div class="markdown level1 conceptual"></div>
  133. <h5 class="decalaration">Declaration</h5>
  134. <div class="codewrapper">
  135. <pre><code class="lang-csharp hljs">public ModPrefs(PluginLoader.PluginMetadata plugin)</code></pre>
  136. </div>
  137. <h5 class="parameters">Parameters</h5>
  138. <table class="table table-bordered table-striped table-condensed">
  139. <thead>
  140. <tr>
  141. <th>Type</th>
  142. <th>Name</th>
  143. <th>Description</th>
  144. </tr>
  145. </thead>
  146. <tbody>
  147. <tr>
  148. <td><a class="xref" href="IPA.Loader.PluginLoader.PluginMetadata.html">PluginLoader.PluginMetadata</a></td>
  149. <td><span class="parametername">plugin</span></td>
  150. <td><p>the plugin to get the preferences file for</p>
  151. </td>
  152. </tr>
  153. </tbody>
  154. </table>
  155. <h3 id="methods">Methods
  156. </h3>
  157. <span class="small pull-right mobile-hide">
  158. <span class="divider">|</span>
  159. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_GetBool_System_String_System_String_System_Boolean_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.GetBool(System.String%2CSystem.String%2CSystem.Boolean%2CSystem.Boolean)%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/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L199">View Source</a>
  163. </span>
  164. <a id="IPA_Config_ModPrefs_GetBool_" data-uid="IPA.Config.ModPrefs.GetBool*"></a>
  165. <h4 id="IPA_Config_ModPrefs_GetBool_System_String_System_String_System_Boolean_System_Boolean_" data-uid="IPA.Config.ModPrefs.GetBool(System.String,System.String,System.Boolean,System.Boolean)">GetBool(String, String, Boolean, Boolean)</h4>
  166. <div class="markdown level1 summary"><p>Gets a bool from the ini.</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 bool GetBool(string section, string name, bool defaultValue = false, bool autoSave = false)</code></pre>
  172. </div>
  173. <h5 class="parameters">Parameters</h5>
  174. <table class="table table-bordered table-striped table-condensed">
  175. <thead>
  176. <tr>
  177. <th>Type</th>
  178. <th>Name</th>
  179. <th>Description</th>
  180. </tr>
  181. </thead>
  182. <tbody>
  183. <tr>
  184. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  185. <td><span class="parametername">section</span></td>
  186. <td><p>Section of the key.</p>
  187. </td>
  188. </tr>
  189. <tr>
  190. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  191. <td><span class="parametername">name</span></td>
  192. <td><p>Name of the key.</p>
  193. </td>
  194. </tr>
  195. <tr>
  196. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  197. <td><span class="parametername">defaultValue</span></td>
  198. <td><p>Value that should be used when no value is found.</p>
  199. </td>
  200. </tr>
  201. <tr>
  202. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  203. <td><span class="parametername">autoSave</span></td>
  204. <td><p>Whether or not the default value should be written if no value is found.</p>
  205. </td>
  206. </tr>
  207. </tbody>
  208. </table>
  209. <h5 class="returns">Returns</h5>
  210. <table class="table table-bordered table-striped table-condensed">
  211. <thead>
  212. <tr>
  213. <th>Type</th>
  214. <th>Description</th>
  215. </tr>
  216. </thead>
  217. <tbody>
  218. <tr>
  219. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  220. <td></td>
  221. </tr>
  222. </tbody>
  223. </table>
  224. <span class="small pull-right mobile-hide">
  225. <span class="divider">|</span>
  226. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_GetFloat_System_String_System_String_System_Single_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.GetFloat(System.String%2CSystem.String%2CSystem.Single%2CSystem.Boolean)%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>
  227. </span>
  228. <span class="small pull-right mobile-hide">
  229. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L174">View Source</a>
  230. </span>
  231. <a id="IPA_Config_ModPrefs_GetFloat_" data-uid="IPA.Config.ModPrefs.GetFloat*"></a>
  232. <h4 id="IPA_Config_ModPrefs_GetFloat_System_String_System_String_System_Single_System_Boolean_" data-uid="IPA.Config.ModPrefs.GetFloat(System.String,System.String,System.Single,System.Boolean)">GetFloat(String, String, Single, Boolean)</h4>
  233. <div class="markdown level1 summary"><p>Gets a float from the ini.</p>
  234. </div>
  235. <div class="markdown level1 conceptual"></div>
  236. <h5 class="decalaration">Declaration</h5>
  237. <div class="codewrapper">
  238. <pre><code class="lang-csharp hljs">public static float GetFloat(string section, string name, float defaultValue = 0F, bool autoSave = false)</code></pre>
  239. </div>
  240. <h5 class="parameters">Parameters</h5>
  241. <table class="table table-bordered table-striped table-condensed">
  242. <thead>
  243. <tr>
  244. <th>Type</th>
  245. <th>Name</th>
  246. <th>Description</th>
  247. </tr>
  248. </thead>
  249. <tbody>
  250. <tr>
  251. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  252. <td><span class="parametername">section</span></td>
  253. <td><p>Section of the key.</p>
  254. </td>
  255. </tr>
  256. <tr>
  257. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  258. <td><span class="parametername">name</span></td>
  259. <td><p>Name of the key.</p>
  260. </td>
  261. </tr>
  262. <tr>
  263. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.single">Single</a></td>
  264. <td><span class="parametername">defaultValue</span></td>
  265. <td><p>Value that should be used when no value is found.</p>
  266. </td>
  267. </tr>
  268. <tr>
  269. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  270. <td><span class="parametername">autoSave</span></td>
  271. <td><p>Whether or not the default value should be written if no value is found.</p>
  272. </td>
  273. </tr>
  274. </tbody>
  275. </table>
  276. <h5 class="returns">Returns</h5>
  277. <table class="table table-bordered table-striped table-condensed">
  278. <thead>
  279. <tr>
  280. <th>Type</th>
  281. <th>Description</th>
  282. </tr>
  283. </thead>
  284. <tbody>
  285. <tr>
  286. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.single">Single</a></td>
  287. <td></td>
  288. </tr>
  289. </tbody>
  290. </table>
  291. <span class="small pull-right mobile-hide">
  292. <span class="divider">|</span>
  293. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_GetInt_System_String_System_String_System_Int32_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.GetInt(System.String%2CSystem.String%2CSystem.Int32%2CSystem.Boolean)%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>
  294. </span>
  295. <span class="small pull-right mobile-hide">
  296. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L154">View Source</a>
  297. </span>
  298. <a id="IPA_Config_ModPrefs_GetInt_" data-uid="IPA.Config.ModPrefs.GetInt*"></a>
  299. <h4 id="IPA_Config_ModPrefs_GetInt_System_String_System_String_System_Int32_System_Boolean_" data-uid="IPA.Config.ModPrefs.GetInt(System.String,System.String,System.Int32,System.Boolean)">GetInt(String, String, Int32, Boolean)</h4>
  300. <div class="markdown level1 summary"><p>Gets an int from the ini.</p>
  301. </div>
  302. <div class="markdown level1 conceptual"></div>
  303. <h5 class="decalaration">Declaration</h5>
  304. <div class="codewrapper">
  305. <pre><code class="lang-csharp hljs">public static int GetInt(string section, string name, int defaultValue = 0, bool autoSave = false)</code></pre>
  306. </div>
  307. <h5 class="parameters">Parameters</h5>
  308. <table class="table table-bordered table-striped table-condensed">
  309. <thead>
  310. <tr>
  311. <th>Type</th>
  312. <th>Name</th>
  313. <th>Description</th>
  314. </tr>
  315. </thead>
  316. <tbody>
  317. <tr>
  318. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  319. <td><span class="parametername">section</span></td>
  320. <td><p>Section of the key.</p>
  321. </td>
  322. </tr>
  323. <tr>
  324. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  325. <td><span class="parametername">name</span></td>
  326. <td><p>Name of the key.</p>
  327. </td>
  328. </tr>
  329. <tr>
  330. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  331. <td><span class="parametername">defaultValue</span></td>
  332. <td><p>Value that should be used when no value is found.</p>
  333. </td>
  334. </tr>
  335. <tr>
  336. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  337. <td><span class="parametername">autoSave</span></td>
  338. <td><p>Whether or not the default value should be written if no value is found.</p>
  339. </td>
  340. </tr>
  341. </tbody>
  342. </table>
  343. <h5 class="returns">Returns</h5>
  344. <table class="table table-bordered table-striped table-condensed">
  345. <thead>
  346. <tr>
  347. <th>Type</th>
  348. <th>Description</th>
  349. </tr>
  350. </thead>
  351. <tbody>
  352. <tr>
  353. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  354. <td></td>
  355. </tr>
  356. </tbody>
  357. </table>
  358. <span class="small pull-right mobile-hide">
  359. <span class="divider">|</span>
  360. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_GetString_System_String_System_String_System_String_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.GetString(System.String%2CSystem.String%2CSystem.String%2CSystem.Boolean)%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>
  361. </span>
  362. <span class="small pull-right mobile-hide">
  363. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L134">View Source</a>
  364. </span>
  365. <a id="IPA_Config_ModPrefs_GetString_" data-uid="IPA.Config.ModPrefs.GetString*"></a>
  366. <h4 id="IPA_Config_ModPrefs_GetString_System_String_System_String_System_String_System_Boolean_" data-uid="IPA.Config.ModPrefs.GetString(System.String,System.String,System.String,System.Boolean)">GetString(String, String, String, Boolean)</h4>
  367. <div class="markdown level1 summary"><p>Gets a string from the ini.</p>
  368. </div>
  369. <div class="markdown level1 conceptual"></div>
  370. <h5 class="decalaration">Declaration</h5>
  371. <div class="codewrapper">
  372. <pre><code class="lang-csharp hljs">public static string GetString(string section, string name, string defaultValue = &quot;&quot;, bool autoSave = false)</code></pre>
  373. </div>
  374. <h5 class="parameters">Parameters</h5>
  375. <table class="table table-bordered table-striped table-condensed">
  376. <thead>
  377. <tr>
  378. <th>Type</th>
  379. <th>Name</th>
  380. <th>Description</th>
  381. </tr>
  382. </thead>
  383. <tbody>
  384. <tr>
  385. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  386. <td><span class="parametername">section</span></td>
  387. <td><p>Section of the key.</p>
  388. </td>
  389. </tr>
  390. <tr>
  391. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  392. <td><span class="parametername">name</span></td>
  393. <td><p>Name of the key.</p>
  394. </td>
  395. </tr>
  396. <tr>
  397. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  398. <td><span class="parametername">defaultValue</span></td>
  399. <td><p>Value that should be used when no value is found.</p>
  400. </td>
  401. </tr>
  402. <tr>
  403. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  404. <td><span class="parametername">autoSave</span></td>
  405. <td><p>Whether or not the default value should be written if no value is found.</p>
  406. </td>
  407. </tr>
  408. </tbody>
  409. </table>
  410. <h5 class="returns">Returns</h5>
  411. <table class="table table-bordered table-striped table-condensed">
  412. <thead>
  413. <tr>
  414. <th>Type</th>
  415. <th>Description</th>
  416. </tr>
  417. </thead>
  418. <tbody>
  419. <tr>
  420. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  421. <td></td>
  422. </tr>
  423. </tbody>
  424. </table>
  425. <span class="small pull-right mobile-hide">
  426. <span class="divider">|</span>
  427. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_HasKey_System_String_System_String_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.HasKey(System.String%2CSystem.String)%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>
  428. </span>
  429. <span class="small pull-right mobile-hide">
  430. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L212">View Source</a>
  431. </span>
  432. <a id="IPA_Config_ModPrefs_HasKey_" data-uid="IPA.Config.ModPrefs.HasKey*"></a>
  433. <h4 id="IPA_Config_ModPrefs_HasKey_System_String_System_String_" data-uid="IPA.Config.ModPrefs.HasKey(System.String,System.String)">HasKey(String, String)</h4>
  434. <div class="markdown level1 summary"><p>Checks whether or not a key exists in the ini.</p>
  435. </div>
  436. <div class="markdown level1 conceptual"></div>
  437. <h5 class="decalaration">Declaration</h5>
  438. <div class="codewrapper">
  439. <pre><code class="lang-csharp hljs">public static bool HasKey(string section, string name)</code></pre>
  440. </div>
  441. <h5 class="parameters">Parameters</h5>
  442. <table class="table table-bordered table-striped table-condensed">
  443. <thead>
  444. <tr>
  445. <th>Type</th>
  446. <th>Name</th>
  447. <th>Description</th>
  448. </tr>
  449. </thead>
  450. <tbody>
  451. <tr>
  452. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  453. <td><span class="parametername">section</span></td>
  454. <td><p>Section of the key.</p>
  455. </td>
  456. </tr>
  457. <tr>
  458. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  459. <td><span class="parametername">name</span></td>
  460. <td><p>Name of the key.</p>
  461. </td>
  462. </tr>
  463. </tbody>
  464. </table>
  465. <h5 class="returns">Returns</h5>
  466. <table class="table table-bordered table-striped table-condensed">
  467. <thead>
  468. <tr>
  469. <th>Type</th>
  470. <th>Description</th>
  471. </tr>
  472. </thead>
  473. <tbody>
  474. <tr>
  475. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  476. <td></td>
  477. </tr>
  478. </tbody>
  479. </table>
  480. <span class="small pull-right mobile-hide">
  481. <span class="divider">|</span>
  482. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_SetBool_System_String_System_String_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.SetBool(System.String%2CSystem.String%2CSystem.Boolean)%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>
  483. </span>
  484. <span class="small pull-right mobile-hide">
  485. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L263">View Source</a>
  486. </span>
  487. <a id="IPA_Config_ModPrefs_SetBool_" data-uid="IPA.Config.ModPrefs.SetBool*"></a>
  488. <h4 id="IPA_Config_ModPrefs_SetBool_System_String_System_String_System_Boolean_" data-uid="IPA.Config.ModPrefs.SetBool(System.String,System.String,System.Boolean)">SetBool(String, String, Boolean)</h4>
  489. <div class="markdown level1 summary"><p>Sets a bool in the ini.</p>
  490. </div>
  491. <div class="markdown level1 conceptual"></div>
  492. <h5 class="decalaration">Declaration</h5>
  493. <div class="codewrapper">
  494. <pre><code class="lang-csharp hljs">public static void SetBool(string section, string name, bool value)</code></pre>
  495. </div>
  496. <h5 class="parameters">Parameters</h5>
  497. <table class="table table-bordered table-striped table-condensed">
  498. <thead>
  499. <tr>
  500. <th>Type</th>
  501. <th>Name</th>
  502. <th>Description</th>
  503. </tr>
  504. </thead>
  505. <tbody>
  506. <tr>
  507. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  508. <td><span class="parametername">section</span></td>
  509. <td><p>Section of the key.</p>
  510. </td>
  511. </tr>
  512. <tr>
  513. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  514. <td><span class="parametername">name</span></td>
  515. <td><p>Name of the key.</p>
  516. </td>
  517. </tr>
  518. <tr>
  519. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  520. <td><span class="parametername">value</span></td>
  521. <td><p>Value that should be written.</p>
  522. </td>
  523. </tr>
  524. </tbody>
  525. </table>
  526. <span class="small pull-right mobile-hide">
  527. <span class="divider">|</span>
  528. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_SetFloat_System_String_System_String_System_Single_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.SetFloat(System.String%2CSystem.String%2CSystem.Single)%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>
  529. </span>
  530. <span class="small pull-right mobile-hide">
  531. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L224">View Source</a>
  532. </span>
  533. <a id="IPA_Config_ModPrefs_SetFloat_" data-uid="IPA.Config.ModPrefs.SetFloat*"></a>
  534. <h4 id="IPA_Config_ModPrefs_SetFloat_System_String_System_String_System_Single_" data-uid="IPA.Config.ModPrefs.SetFloat(System.String,System.String,System.Single)">SetFloat(String, String, Single)</h4>
  535. <div class="markdown level1 summary"><p>Sets a float in the ini.</p>
  536. </div>
  537. <div class="markdown level1 conceptual"></div>
  538. <h5 class="decalaration">Declaration</h5>
  539. <div class="codewrapper">
  540. <pre><code class="lang-csharp hljs">public static void SetFloat(string section, string name, float value)</code></pre>
  541. </div>
  542. <h5 class="parameters">Parameters</h5>
  543. <table class="table table-bordered table-striped table-condensed">
  544. <thead>
  545. <tr>
  546. <th>Type</th>
  547. <th>Name</th>
  548. <th>Description</th>
  549. </tr>
  550. </thead>
  551. <tbody>
  552. <tr>
  553. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  554. <td><span class="parametername">section</span></td>
  555. <td><p>Section of the key.</p>
  556. </td>
  557. </tr>
  558. <tr>
  559. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  560. <td><span class="parametername">name</span></td>
  561. <td><p>Name of the key.</p>
  562. </td>
  563. </tr>
  564. <tr>
  565. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.single">Single</a></td>
  566. <td><span class="parametername">value</span></td>
  567. <td><p>Value that should be written.</p>
  568. </td>
  569. </tr>
  570. </tbody>
  571. </table>
  572. <span class="small pull-right mobile-hide">
  573. <span class="divider">|</span>
  574. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_SetInt_System_String_System_String_System_Int32_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.SetInt(System.String%2CSystem.String%2CSystem.Int32)%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>
  575. </span>
  576. <span class="small pull-right mobile-hide">
  577. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L237">View Source</a>
  578. </span>
  579. <a id="IPA_Config_ModPrefs_SetInt_" data-uid="IPA.Config.ModPrefs.SetInt*"></a>
  580. <h4 id="IPA_Config_ModPrefs_SetInt_System_String_System_String_System_Int32_" data-uid="IPA.Config.ModPrefs.SetInt(System.String,System.String,System.Int32)">SetInt(String, String, Int32)</h4>
  581. <div class="markdown level1 summary"><p>Sets an int in the ini.</p>
  582. </div>
  583. <div class="markdown level1 conceptual"></div>
  584. <h5 class="decalaration">Declaration</h5>
  585. <div class="codewrapper">
  586. <pre><code class="lang-csharp hljs">public static void SetInt(string section, string name, int value)</code></pre>
  587. </div>
  588. <h5 class="parameters">Parameters</h5>
  589. <table class="table table-bordered table-striped table-condensed">
  590. <thead>
  591. <tr>
  592. <th>Type</th>
  593. <th>Name</th>
  594. <th>Description</th>
  595. </tr>
  596. </thead>
  597. <tbody>
  598. <tr>
  599. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  600. <td><span class="parametername">section</span></td>
  601. <td><p>Section of the key.</p>
  602. </td>
  603. </tr>
  604. <tr>
  605. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  606. <td><span class="parametername">name</span></td>
  607. <td><p>Name of the key.</p>
  608. </td>
  609. </tr>
  610. <tr>
  611. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  612. <td><span class="parametername">value</span></td>
  613. <td><p>Value that should be written.</p>
  614. </td>
  615. </tr>
  616. </tbody>
  617. </table>
  618. <span class="small pull-right mobile-hide">
  619. <span class="divider">|</span>
  620. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_SetString_System_String_System_String_System_String_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.SetString(System.String%2CSystem.String%2CSystem.String)%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>
  621. </span>
  622. <span class="small pull-right mobile-hide">
  623. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L250">View Source</a>
  624. </span>
  625. <a id="IPA_Config_ModPrefs_SetString_" data-uid="IPA.Config.ModPrefs.SetString*"></a>
  626. <h4 id="IPA_Config_ModPrefs_SetString_System_String_System_String_System_String_" data-uid="IPA.Config.ModPrefs.SetString(System.String,System.String,System.String)">SetString(String, String, String)</h4>
  627. <div class="markdown level1 summary"><p>Sets a string in the ini.</p>
  628. </div>
  629. <div class="markdown level1 conceptual"></div>
  630. <h5 class="decalaration">Declaration</h5>
  631. <div class="codewrapper">
  632. <pre><code class="lang-csharp hljs">public static void SetString(string section, string name, string value)</code></pre>
  633. </div>
  634. <h5 class="parameters">Parameters</h5>
  635. <table class="table table-bordered table-striped table-condensed">
  636. <thead>
  637. <tr>
  638. <th>Type</th>
  639. <th>Name</th>
  640. <th>Description</th>
  641. </tr>
  642. </thead>
  643. <tbody>
  644. <tr>
  645. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  646. <td><span class="parametername">section</span></td>
  647. <td><p>Section of the key.</p>
  648. </td>
  649. </tr>
  650. <tr>
  651. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  652. <td><span class="parametername">name</span></td>
  653. <td><p>Name of the key.</p>
  654. </td>
  655. </tr>
  656. <tr>
  657. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  658. <td><span class="parametername">value</span></td>
  659. <td><p>Value that should be written.</p>
  660. </td>
  661. </tr>
  662. </tbody>
  663. </table>
  664. <h3 id="eii">Explicit Interface Implementations
  665. </h3>
  666. <span class="small pull-right mobile-hide">
  667. <span class="divider">|</span>
  668. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_IPA_Config_IModPrefs_GetBool_System_String_System_String_System_Boolean_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.IPA%23Config%23IModPrefs%23GetBool(System.String%2CSystem.String%2CSystem.Boolean%2CSystem.Boolean)%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>
  669. </span>
  670. <span class="small pull-right mobile-hide">
  671. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L177">View Source</a>
  672. </span>
  673. <a id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_GetBool_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#GetBool*"></a>
  674. <h4 id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_GetBool_System_String_System_String_System_Boolean_System_Boolean_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#GetBool(System.String,System.String,System.Boolean,System.Boolean)">IModPrefs.GetBool(String, String, Boolean, Boolean)</h4>
  675. <div class="markdown level1 summary"></div>
  676. <div class="markdown level1 conceptual"></div>
  677. <h5 class="decalaration">Declaration</h5>
  678. <div class="codewrapper">
  679. <pre><code class="lang-csharp hljs">bool IModPrefs.GetBool(string section, string name, bool defaultValue, bool autoSave)</code></pre>
  680. </div>
  681. <h5 class="parameters">Parameters</h5>
  682. <table class="table table-bordered table-striped table-condensed">
  683. <thead>
  684. <tr>
  685. <th>Type</th>
  686. <th>Name</th>
  687. <th>Description</th>
  688. </tr>
  689. </thead>
  690. <tbody>
  691. <tr>
  692. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  693. <td><span class="parametername">section</span></td>
  694. <td></td>
  695. </tr>
  696. <tr>
  697. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  698. <td><span class="parametername">name</span></td>
  699. <td></td>
  700. </tr>
  701. <tr>
  702. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  703. <td><span class="parametername">defaultValue</span></td>
  704. <td></td>
  705. </tr>
  706. <tr>
  707. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  708. <td><span class="parametername">autoSave</span></td>
  709. <td></td>
  710. </tr>
  711. </tbody>
  712. </table>
  713. <h5 class="returns">Returns</h5>
  714. <table class="table table-bordered table-striped table-condensed">
  715. <thead>
  716. <tr>
  717. <th>Type</th>
  718. <th>Description</th>
  719. </tr>
  720. </thead>
  721. <tbody>
  722. <tr>
  723. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  724. <td></td>
  725. </tr>
  726. </tbody>
  727. </table>
  728. <span class="small pull-right mobile-hide">
  729. <span class="divider">|</span>
  730. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_IPA_Config_IModPrefs_GetFloat_System_String_System_String_System_Single_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.IPA%23Config%23IModPrefs%23GetFloat(System.String%2CSystem.String%2CSystem.Single%2CSystem.Boolean)%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>
  731. </span>
  732. <span class="small pull-right mobile-hide">
  733. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L157">View Source</a>
  734. </span>
  735. <a id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_GetFloat_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#GetFloat*"></a>
  736. <h4 id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_GetFloat_System_String_System_String_System_Single_System_Boolean_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#GetFloat(System.String,System.String,System.Single,System.Boolean)">IModPrefs.GetFloat(String, String, Single, Boolean)</h4>
  737. <div class="markdown level1 summary"></div>
  738. <div class="markdown level1 conceptual"></div>
  739. <h5 class="decalaration">Declaration</h5>
  740. <div class="codewrapper">
  741. <pre><code class="lang-csharp hljs">float IModPrefs.GetFloat(string section, string name, float defaultValue, bool autoSave)</code></pre>
  742. </div>
  743. <h5 class="parameters">Parameters</h5>
  744. <table class="table table-bordered table-striped table-condensed">
  745. <thead>
  746. <tr>
  747. <th>Type</th>
  748. <th>Name</th>
  749. <th>Description</th>
  750. </tr>
  751. </thead>
  752. <tbody>
  753. <tr>
  754. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  755. <td><span class="parametername">section</span></td>
  756. <td></td>
  757. </tr>
  758. <tr>
  759. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  760. <td><span class="parametername">name</span></td>
  761. <td></td>
  762. </tr>
  763. <tr>
  764. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.single">Single</a></td>
  765. <td><span class="parametername">defaultValue</span></td>
  766. <td></td>
  767. </tr>
  768. <tr>
  769. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  770. <td><span class="parametername">autoSave</span></td>
  771. <td></td>
  772. </tr>
  773. </tbody>
  774. </table>
  775. <h5 class="returns">Returns</h5>
  776. <table class="table table-bordered table-striped table-condensed">
  777. <thead>
  778. <tr>
  779. <th>Type</th>
  780. <th>Description</th>
  781. </tr>
  782. </thead>
  783. <tbody>
  784. <tr>
  785. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.single">Single</a></td>
  786. <td></td>
  787. </tr>
  788. </tbody>
  789. </table>
  790. <span class="small pull-right mobile-hide">
  791. <span class="divider">|</span>
  792. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_IPA_Config_IModPrefs_GetInt_System_String_System_String_System_Int32_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.IPA%23Config%23IModPrefs%23GetInt(System.String%2CSystem.String%2CSystem.Int32%2CSystem.Boolean)%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>
  793. </span>
  794. <span class="small pull-right mobile-hide">
  795. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L137">View Source</a>
  796. </span>
  797. <a id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_GetInt_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#GetInt*"></a>
  798. <h4 id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_GetInt_System_String_System_String_System_Int32_System_Boolean_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#GetInt(System.String,System.String,System.Int32,System.Boolean)">IModPrefs.GetInt(String, String, Int32, Boolean)</h4>
  799. <div class="markdown level1 summary"></div>
  800. <div class="markdown level1 conceptual"></div>
  801. <h5 class="decalaration">Declaration</h5>
  802. <div class="codewrapper">
  803. <pre><code class="lang-csharp hljs">int IModPrefs.GetInt(string section, string name, int defaultValue, bool autoSave)</code></pre>
  804. </div>
  805. <h5 class="parameters">Parameters</h5>
  806. <table class="table table-bordered table-striped table-condensed">
  807. <thead>
  808. <tr>
  809. <th>Type</th>
  810. <th>Name</th>
  811. <th>Description</th>
  812. </tr>
  813. </thead>
  814. <tbody>
  815. <tr>
  816. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  817. <td><span class="parametername">section</span></td>
  818. <td></td>
  819. </tr>
  820. <tr>
  821. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  822. <td><span class="parametername">name</span></td>
  823. <td></td>
  824. </tr>
  825. <tr>
  826. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  827. <td><span class="parametername">defaultValue</span></td>
  828. <td></td>
  829. </tr>
  830. <tr>
  831. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  832. <td><span class="parametername">autoSave</span></td>
  833. <td></td>
  834. </tr>
  835. </tbody>
  836. </table>
  837. <h5 class="returns">Returns</h5>
  838. <table class="table table-bordered table-striped table-condensed">
  839. <thead>
  840. <tr>
  841. <th>Type</th>
  842. <th>Description</th>
  843. </tr>
  844. </thead>
  845. <tbody>
  846. <tr>
  847. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  848. <td></td>
  849. </tr>
  850. </tbody>
  851. </table>
  852. <span class="small pull-right mobile-hide">
  853. <span class="divider">|</span>
  854. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_IPA_Config_IModPrefs_GetString_System_String_System_String_System_String_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.IPA%23Config%23IModPrefs%23GetString(System.String%2CSystem.String%2CSystem.String%2CSystem.Boolean)%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>
  855. </span>
  856. <span class="small pull-right mobile-hide">
  857. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L116">View Source</a>
  858. </span>
  859. <a id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_GetString_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#GetString*"></a>
  860. <h4 id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_GetString_System_String_System_String_System_String_System_Boolean_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#GetString(System.String,System.String,System.String,System.Boolean)">IModPrefs.GetString(String, String, String, Boolean)</h4>
  861. <div class="markdown level1 summary"></div>
  862. <div class="markdown level1 conceptual"></div>
  863. <h5 class="decalaration">Declaration</h5>
  864. <div class="codewrapper">
  865. <pre><code class="lang-csharp hljs">string IModPrefs.GetString(string section, string name, string defaultValue, bool autoSave)</code></pre>
  866. </div>
  867. <h5 class="parameters">Parameters</h5>
  868. <table class="table table-bordered table-striped table-condensed">
  869. <thead>
  870. <tr>
  871. <th>Type</th>
  872. <th>Name</th>
  873. <th>Description</th>
  874. </tr>
  875. </thead>
  876. <tbody>
  877. <tr>
  878. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  879. <td><span class="parametername">section</span></td>
  880. <td></td>
  881. </tr>
  882. <tr>
  883. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  884. <td><span class="parametername">name</span></td>
  885. <td></td>
  886. </tr>
  887. <tr>
  888. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  889. <td><span class="parametername">defaultValue</span></td>
  890. <td></td>
  891. </tr>
  892. <tr>
  893. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  894. <td><span class="parametername">autoSave</span></td>
  895. <td></td>
  896. </tr>
  897. </tbody>
  898. </table>
  899. <h5 class="returns">Returns</h5>
  900. <table class="table table-bordered table-striped table-condensed">
  901. <thead>
  902. <tr>
  903. <th>Type</th>
  904. <th>Description</th>
  905. </tr>
  906. </thead>
  907. <tbody>
  908. <tr>
  909. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  910. <td></td>
  911. </tr>
  912. </tbody>
  913. </table>
  914. <span class="small pull-right mobile-hide">
  915. <span class="divider">|</span>
  916. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_IPA_Config_IModPrefs_HasKey_System_String_System_String_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.IPA%23Config%23IModPrefs%23HasKey(System.String%2CSystem.String)%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>
  917. </span>
  918. <span class="small pull-right mobile-hide">
  919. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L202">View Source</a>
  920. </span>
  921. <a id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_HasKey_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#HasKey*"></a>
  922. <h4 id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_HasKey_System_String_System_String_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#HasKey(System.String,System.String)">IModPrefs.HasKey(String, String)</h4>
  923. <div class="markdown level1 summary"></div>
  924. <div class="markdown level1 conceptual"></div>
  925. <h5 class="decalaration">Declaration</h5>
  926. <div class="codewrapper">
  927. <pre><code class="lang-csharp hljs">bool IModPrefs.HasKey(string section, string name)</code></pre>
  928. </div>
  929. <h5 class="parameters">Parameters</h5>
  930. <table class="table table-bordered table-striped table-condensed">
  931. <thead>
  932. <tr>
  933. <th>Type</th>
  934. <th>Name</th>
  935. <th>Description</th>
  936. </tr>
  937. </thead>
  938. <tbody>
  939. <tr>
  940. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  941. <td><span class="parametername">section</span></td>
  942. <td></td>
  943. </tr>
  944. <tr>
  945. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  946. <td><span class="parametername">name</span></td>
  947. <td></td>
  948. </tr>
  949. </tbody>
  950. </table>
  951. <h5 class="returns">Returns</h5>
  952. <table class="table table-bordered table-striped table-condensed">
  953. <thead>
  954. <tr>
  955. <th>Type</th>
  956. <th>Description</th>
  957. </tr>
  958. </thead>
  959. <tbody>
  960. <tr>
  961. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  962. <td></td>
  963. </tr>
  964. </tbody>
  965. </table>
  966. <span class="small pull-right mobile-hide">
  967. <span class="divider">|</span>
  968. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_IPA_Config_IModPrefs_SetBool_System_String_System_String_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.IPA%23Config%23IModPrefs%23SetBool(System.String%2CSystem.String%2CSystem.Boolean)%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>
  969. </span>
  970. <span class="small pull-right mobile-hide">
  971. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L253">View Source</a>
  972. </span>
  973. <a id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_SetBool_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#SetBool*"></a>
  974. <h4 id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_SetBool_System_String_System_String_System_Boolean_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#SetBool(System.String,System.String,System.Boolean)">IModPrefs.SetBool(String, String, Boolean)</h4>
  975. <div class="markdown level1 summary"></div>
  976. <div class="markdown level1 conceptual"></div>
  977. <h5 class="decalaration">Declaration</h5>
  978. <div class="codewrapper">
  979. <pre><code class="lang-csharp hljs">void IModPrefs.SetBool(string section, string name, bool value)</code></pre>
  980. </div>
  981. <h5 class="parameters">Parameters</h5>
  982. <table class="table table-bordered table-striped table-condensed">
  983. <thead>
  984. <tr>
  985. <th>Type</th>
  986. <th>Name</th>
  987. <th>Description</th>
  988. </tr>
  989. </thead>
  990. <tbody>
  991. <tr>
  992. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  993. <td><span class="parametername">section</span></td>
  994. <td></td>
  995. </tr>
  996. <tr>
  997. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  998. <td><span class="parametername">name</span></td>
  999. <td></td>
  1000. </tr>
  1001. <tr>
  1002. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  1003. <td><span class="parametername">value</span></td>
  1004. <td></td>
  1005. </tr>
  1006. </tbody>
  1007. </table>
  1008. <span class="small pull-right mobile-hide">
  1009. <span class="divider">|</span>
  1010. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_IPA_Config_IModPrefs_SetFloat_System_String_System_String_System_Single_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.IPA%23Config%23IModPrefs%23SetFloat(System.String%2CSystem.String%2CSystem.Single)%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>
  1011. </span>
  1012. <span class="small pull-right mobile-hide">
  1013. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L214">View Source</a>
  1014. </span>
  1015. <a id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_SetFloat_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#SetFloat*"></a>
  1016. <h4 id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_SetFloat_System_String_System_String_System_Single_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#SetFloat(System.String,System.String,System.Single)">IModPrefs.SetFloat(String, String, Single)</h4>
  1017. <div class="markdown level1 summary"></div>
  1018. <div class="markdown level1 conceptual"></div>
  1019. <h5 class="decalaration">Declaration</h5>
  1020. <div class="codewrapper">
  1021. <pre><code class="lang-csharp hljs">void IModPrefs.SetFloat(string section, string name, float value)</code></pre>
  1022. </div>
  1023. <h5 class="parameters">Parameters</h5>
  1024. <table class="table table-bordered table-striped table-condensed">
  1025. <thead>
  1026. <tr>
  1027. <th>Type</th>
  1028. <th>Name</th>
  1029. <th>Description</th>
  1030. </tr>
  1031. </thead>
  1032. <tbody>
  1033. <tr>
  1034. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  1035. <td><span class="parametername">section</span></td>
  1036. <td></td>
  1037. </tr>
  1038. <tr>
  1039. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  1040. <td><span class="parametername">name</span></td>
  1041. <td></td>
  1042. </tr>
  1043. <tr>
  1044. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.single">Single</a></td>
  1045. <td><span class="parametername">value</span></td>
  1046. <td></td>
  1047. </tr>
  1048. </tbody>
  1049. </table>
  1050. <span class="small pull-right mobile-hide">
  1051. <span class="divider">|</span>
  1052. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_IPA_Config_IModPrefs_SetInt_System_String_System_String_System_Int32_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.IPA%23Config%23IModPrefs%23SetInt(System.String%2CSystem.String%2CSystem.Int32)%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>
  1053. </span>
  1054. <span class="small pull-right mobile-hide">
  1055. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L227">View Source</a>
  1056. </span>
  1057. <a id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_SetInt_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#SetInt*"></a>
  1058. <h4 id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_SetInt_System_String_System_String_System_Int32_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#SetInt(System.String,System.String,System.Int32)">IModPrefs.SetInt(String, String, Int32)</h4>
  1059. <div class="markdown level1 summary"></div>
  1060. <div class="markdown level1 conceptual"></div>
  1061. <h5 class="decalaration">Declaration</h5>
  1062. <div class="codewrapper">
  1063. <pre><code class="lang-csharp hljs">void IModPrefs.SetInt(string section, string name, int value)</code></pre>
  1064. </div>
  1065. <h5 class="parameters">Parameters</h5>
  1066. <table class="table table-bordered table-striped table-condensed">
  1067. <thead>
  1068. <tr>
  1069. <th>Type</th>
  1070. <th>Name</th>
  1071. <th>Description</th>
  1072. </tr>
  1073. </thead>
  1074. <tbody>
  1075. <tr>
  1076. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  1077. <td><span class="parametername">section</span></td>
  1078. <td></td>
  1079. </tr>
  1080. <tr>
  1081. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  1082. <td><span class="parametername">name</span></td>
  1083. <td></td>
  1084. </tr>
  1085. <tr>
  1086. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  1087. <td><span class="parametername">value</span></td>
  1088. <td></td>
  1089. </tr>
  1090. </tbody>
  1091. </table>
  1092. <span class="small pull-right mobile-hide">
  1093. <span class="divider">|</span>
  1094. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs_IPA_Config_IModPrefs_SetString_System_String_System_String_System_String_.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs.IPA%23Config%23IModPrefs%23SetString(System.String%2CSystem.String%2CSystem.String)%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>
  1095. </span>
  1096. <span class="small pull-right mobile-hide">
  1097. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L240">View Source</a>
  1098. </span>
  1099. <a id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_SetString_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#SetString*"></a>
  1100. <h4 id="IPA_Config_ModPrefs_IPA_Config_IModPrefs_SetString_System_String_System_String_System_String_" data-uid="IPA.Config.ModPrefs.IPA#Config#IModPrefs#SetString(System.String,System.String,System.String)">IModPrefs.SetString(String, String, String)</h4>
  1101. <div class="markdown level1 summary"></div>
  1102. <div class="markdown level1 conceptual"></div>
  1103. <h5 class="decalaration">Declaration</h5>
  1104. <div class="codewrapper">
  1105. <pre><code class="lang-csharp hljs">void IModPrefs.SetString(string section, string name, string value)</code></pre>
  1106. </div>
  1107. <h5 class="parameters">Parameters</h5>
  1108. <table class="table table-bordered table-striped table-condensed">
  1109. <thead>
  1110. <tr>
  1111. <th>Type</th>
  1112. <th>Name</th>
  1113. <th>Description</th>
  1114. </tr>
  1115. </thead>
  1116. <tbody>
  1117. <tr>
  1118. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  1119. <td><span class="parametername">section</span></td>
  1120. <td></td>
  1121. </tr>
  1122. <tr>
  1123. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  1124. <td><span class="parametername">name</span></td>
  1125. <td></td>
  1126. </tr>
  1127. <tr>
  1128. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  1129. <td><span class="parametername">value</span></td>
  1130. <td></td>
  1131. </tr>
  1132. </tbody>
  1133. </table>
  1134. <h3 id="implements">Implements</h3>
  1135. <div>
  1136. <a class="xref" href="IPA.Config.IModPrefs.html">IModPrefs</a>
  1137. </div>
  1138. <h3 id="extensionmethods">Extension Methods</h3>
  1139. <div>
  1140. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetPrivateField_System_Object_System_String_System_Object_">ReflectionUtil.SetPrivateField(Object, String, Object)</a>
  1141. </div>
  1142. <div>
  1143. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetPrivateField__1_System_Object_System_String_">ReflectionUtil.GetPrivateField&lt;T&gt;(Object, String)</a>
  1144. </div>
  1145. <div>
  1146. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetPrivateProperty_System_Object_System_String_System_Object_">ReflectionUtil.SetPrivateProperty(Object, String, Object)</a>
  1147. </div>
  1148. <div>
  1149. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokePrivateMethod_System_Object_System_String_System_Object___">ReflectionUtil.InvokePrivateMethod(Object, String, Object[])</a>
  1150. </div>
  1151. <div>
  1152. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokePrivateMethod__1_System_Object_System_String_System_Object___">ReflectionUtil.InvokePrivateMethod&lt;T&gt;(Object, String, Object[])</a>
  1153. </div>
  1154. </article>
  1155. </div>
  1156. <div class="hidden-sm col-md-2" role="complementary">
  1157. <div class="sideaffix">
  1158. <div class="contribution">
  1159. <ul class="nav">
  1160. <li>
  1161. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_ModPrefs.md&amp;value=---%0Auid%3A%20IPA.Config.ModPrefs%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>
  1162. </li>
  1163. <li>
  1164. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/07bc652b1a6343c4c8bf394be3da16bff3b0d7b1/IPA.Loader/Config/ModPrefs.cs/#L94" class="contribution-link">View Source</a>
  1165. </li>
  1166. </ul>
  1167. </div>
  1168. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1169. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  1170. </nav>
  1171. </div>
  1172. </div>
  1173. </div>
  1174. </div>
  1175. <footer>
  1176. <div class="grad-bottom"></div>
  1177. <div class="footer">
  1178. <div class="container">
  1179. <span class="pull-right">
  1180. <a href="#top">Back to top</a>
  1181. </span>
  1182. <span>Generated by <strong>DocFX</strong></span>
  1183. </div>
  1184. </div>
  1185. </footer>
  1186. </div>
  1187. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  1188. <script type="text/javascript" src="../styles/docfx.js"></script>
  1189. <script type="text/javascript" src="../styles/main.js"></script>
  1190. </body>
  1191. </html>