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.

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