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.

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