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.

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