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.

662 lines
31 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>Interface IModPrefs
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Interface IModPrefs
  11. ">
  12. <meta name="generator" content="docfx 2.43.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 href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  18. <meta property="docfx:navrel" content="../toc.html">
  19. <meta property="docfx:tocrel" content="toc.html">
  20. <meta property="docfx:rel" content="../">
  21. <meta property="docfx:newtab" content="true">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../index.html">
  35. <img id="logo" class="svg" src="../logo.svg" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list"></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="IPA.Config.IModPrefs">
  74. <h1 id="IPA_Config_IModPrefs" data-uid="IPA.Config.IModPrefs" class="text-break">Interface IModPrefs
  75. </h1>
  76. <div class="markdown level0 summary"><p>Allows to get and set preferences for your mod. </p>
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Config.html">IPA.Config</a></h6>
  80. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  81. <h5 id="IPA_Config_IModPrefs_syntax">Syntax</h5>
  82. <div class="codewrapper">
  83. <pre><code class="lang-csharp hljs">[Obsolete(&quot;Uses IniFile, which uses 16 bit system calls. Use BS Utils INI system for now.&quot;)]
  84. public interface IModPrefs</code></pre>
  85. </div>
  86. <h3 id="methods">Methods
  87. </h3>
  88. <span class="small pull-right mobile-hide">
  89. <span class="divider">|</span>
  90. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IModPrefs_GetBool_System_String_System_String_System_Boolean_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.IModPrefs.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>
  91. </span>
  92. <span class="small pull-right mobile-hide">
  93. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8ae9c97695264030f76611bc46c84075b857c6b4/IPA.Loader/Config/ModPrefs.cs/#L49">View Source</a>
  94. </span>
  95. <a id="IPA_Config_IModPrefs_GetBool_" data-uid="IPA.Config.IModPrefs.GetBool*"></a>
  96. <h4 id="IPA_Config_IModPrefs_GetBool_System_String_System_String_System_Boolean_System_Boolean_" data-uid="IPA.Config.IModPrefs.GetBool(System.String,System.String,System.Boolean,System.Boolean)">GetBool(String, String, Boolean, Boolean)</h4>
  97. <div class="markdown level1 summary"><p>Gets a bool from the ini.</p>
  98. </div>
  99. <div class="markdown level1 conceptual"></div>
  100. <h5 class="decalaration">Declaration</h5>
  101. <div class="codewrapper">
  102. <pre><code class="lang-csharp hljs">bool GetBool(string section, string name, bool defaultValue = false, bool autoSave = false)</code></pre>
  103. </div>
  104. <h5 class="parameters">Parameters</h5>
  105. <table class="table table-bordered table-striped table-condensed">
  106. <thead>
  107. <tr>
  108. <th>Type</th>
  109. <th>Name</th>
  110. <th>Description</th>
  111. </tr>
  112. </thead>
  113. <tbody>
  114. <tr>
  115. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  116. <td><span class="parametername">section</span></td>
  117. <td><p>Section of the key.</p>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  122. <td><span class="parametername">name</span></td>
  123. <td><p>Name of the key.</p>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  128. <td><span class="parametername">defaultValue</span></td>
  129. <td><p>Value that should be used when no value is found.</p>
  130. </td>
  131. </tr>
  132. <tr>
  133. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  134. <td><span class="parametername">autoSave</span></td>
  135. <td><p>Whether or not the default value should be written if no value is found.</p>
  136. </td>
  137. </tr>
  138. </tbody>
  139. </table>
  140. <h5 class="returns">Returns</h5>
  141. <table class="table table-bordered table-striped table-condensed">
  142. <thead>
  143. <tr>
  144. <th>Type</th>
  145. <th>Description</th>
  146. </tr>
  147. </thead>
  148. <tbody>
  149. <tr>
  150. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  151. <td></td>
  152. </tr>
  153. </tbody>
  154. </table>
  155. <span class="small pull-right mobile-hide">
  156. <span class="divider">|</span>
  157. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IModPrefs_GetFloat_System_String_System_String_System_Single_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.IModPrefs.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>
  158. </span>
  159. <span class="small pull-right mobile-hide">
  160. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8ae9c97695264030f76611bc46c84075b857c6b4/IPA.Loader/Config/ModPrefs.cs/#L40">View Source</a>
  161. </span>
  162. <a id="IPA_Config_IModPrefs_GetFloat_" data-uid="IPA.Config.IModPrefs.GetFloat*"></a>
  163. <h4 id="IPA_Config_IModPrefs_GetFloat_System_String_System_String_System_Single_System_Boolean_" data-uid="IPA.Config.IModPrefs.GetFloat(System.String,System.String,System.Single,System.Boolean)">GetFloat(String, String, Single, Boolean)</h4>
  164. <div class="markdown level1 summary"><p>Gets a float from the ini.</p>
  165. </div>
  166. <div class="markdown level1 conceptual"></div>
  167. <h5 class="decalaration">Declaration</h5>
  168. <div class="codewrapper">
  169. <pre><code class="lang-csharp hljs">float GetFloat(string section, string name, float defaultValue = 0F, bool autoSave = false)</code></pre>
  170. </div>
  171. <h5 class="parameters">Parameters</h5>
  172. <table class="table table-bordered table-striped table-condensed">
  173. <thead>
  174. <tr>
  175. <th>Type</th>
  176. <th>Name</th>
  177. <th>Description</th>
  178. </tr>
  179. </thead>
  180. <tbody>
  181. <tr>
  182. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  183. <td><span class="parametername">section</span></td>
  184. <td><p>Section of the key.</p>
  185. </td>
  186. </tr>
  187. <tr>
  188. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  189. <td><span class="parametername">name</span></td>
  190. <td><p>Name of the key.</p>
  191. </td>
  192. </tr>
  193. <tr>
  194. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.single">Single</a></td>
  195. <td><span class="parametername">defaultValue</span></td>
  196. <td><p>Value that should be used when no value is found.</p>
  197. </td>
  198. </tr>
  199. <tr>
  200. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  201. <td><span class="parametername">autoSave</span></td>
  202. <td><p>Whether or not the default value should be written if no value is found.</p>
  203. </td>
  204. </tr>
  205. </tbody>
  206. </table>
  207. <h5 class="returns">Returns</h5>
  208. <table class="table table-bordered table-striped table-condensed">
  209. <thead>
  210. <tr>
  211. <th>Type</th>
  212. <th>Description</th>
  213. </tr>
  214. </thead>
  215. <tbody>
  216. <tr>
  217. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.single">Single</a></td>
  218. <td></td>
  219. </tr>
  220. </tbody>
  221. </table>
  222. <span class="small pull-right mobile-hide">
  223. <span class="divider">|</span>
  224. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IModPrefs_GetInt_System_String_System_String_System_Int32_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.IModPrefs.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>
  225. </span>
  226. <span class="small pull-right mobile-hide">
  227. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8ae9c97695264030f76611bc46c84075b857c6b4/IPA.Loader/Config/ModPrefs.cs/#L31">View Source</a>
  228. </span>
  229. <a id="IPA_Config_IModPrefs_GetInt_" data-uid="IPA.Config.IModPrefs.GetInt*"></a>
  230. <h4 id="IPA_Config_IModPrefs_GetInt_System_String_System_String_System_Int32_System_Boolean_" data-uid="IPA.Config.IModPrefs.GetInt(System.String,System.String,System.Int32,System.Boolean)">GetInt(String, String, Int32, Boolean)</h4>
  231. <div class="markdown level1 summary"><p>Gets an int from the ini.</p>
  232. </div>
  233. <div class="markdown level1 conceptual"></div>
  234. <h5 class="decalaration">Declaration</h5>
  235. <div class="codewrapper">
  236. <pre><code class="lang-csharp hljs">int GetInt(string section, string name, int defaultValue = 0, bool autoSave = false)</code></pre>
  237. </div>
  238. <h5 class="parameters">Parameters</h5>
  239. <table class="table table-bordered table-striped table-condensed">
  240. <thead>
  241. <tr>
  242. <th>Type</th>
  243. <th>Name</th>
  244. <th>Description</th>
  245. </tr>
  246. </thead>
  247. <tbody>
  248. <tr>
  249. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  250. <td><span class="parametername">section</span></td>
  251. <td><p>Section of the key.</p>
  252. </td>
  253. </tr>
  254. <tr>
  255. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  256. <td><span class="parametername">name</span></td>
  257. <td><p>Name of the key.</p>
  258. </td>
  259. </tr>
  260. <tr>
  261. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  262. <td><span class="parametername">defaultValue</span></td>
  263. <td><p>Value that should be used when no value is found.</p>
  264. </td>
  265. </tr>
  266. <tr>
  267. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  268. <td><span class="parametername">autoSave</span></td>
  269. <td><p>Whether or not the default value should be written if no value is found.</p>
  270. </td>
  271. </tr>
  272. </tbody>
  273. </table>
  274. <h5 class="returns">Returns</h5>
  275. <table class="table table-bordered table-striped table-condensed">
  276. <thead>
  277. <tr>
  278. <th>Type</th>
  279. <th>Description</th>
  280. </tr>
  281. </thead>
  282. <tbody>
  283. <tr>
  284. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  285. <td></td>
  286. </tr>
  287. </tbody>
  288. </table>
  289. <span class="small pull-right mobile-hide">
  290. <span class="divider">|</span>
  291. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IModPrefs_GetString_System_String_System_String_System_String_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.IModPrefs.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>
  292. </span>
  293. <span class="small pull-right mobile-hide">
  294. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8ae9c97695264030f76611bc46c84075b857c6b4/IPA.Loader/Config/ModPrefs.cs/#L22">View Source</a>
  295. </span>
  296. <a id="IPA_Config_IModPrefs_GetString_" data-uid="IPA.Config.IModPrefs.GetString*"></a>
  297. <h4 id="IPA_Config_IModPrefs_GetString_System_String_System_String_System_String_System_Boolean_" data-uid="IPA.Config.IModPrefs.GetString(System.String,System.String,System.String,System.Boolean)">GetString(String, String, String, Boolean)</h4>
  298. <div class="markdown level1 summary"><p>Gets a string from the ini.</p>
  299. </div>
  300. <div class="markdown level1 conceptual"></div>
  301. <h5 class="decalaration">Declaration</h5>
  302. <div class="codewrapper">
  303. <pre><code class="lang-csharp hljs">string GetString(string section, string name, string defaultValue = &quot;&quot;, bool autoSave = false)</code></pre>
  304. </div>
  305. <h5 class="parameters">Parameters</h5>
  306. <table class="table table-bordered table-striped table-condensed">
  307. <thead>
  308. <tr>
  309. <th>Type</th>
  310. <th>Name</th>
  311. <th>Description</th>
  312. </tr>
  313. </thead>
  314. <tbody>
  315. <tr>
  316. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  317. <td><span class="parametername">section</span></td>
  318. <td><p>Section of the key.</p>
  319. </td>
  320. </tr>
  321. <tr>
  322. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  323. <td><span class="parametername">name</span></td>
  324. <td><p>Name of the key.</p>
  325. </td>
  326. </tr>
  327. <tr>
  328. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  329. <td><span class="parametername">defaultValue</span></td>
  330. <td><p>Value that should be used when no value is found.</p>
  331. </td>
  332. </tr>
  333. <tr>
  334. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  335. <td><span class="parametername">autoSave</span></td>
  336. <td><p>Whether or not the default value should be written if no value is found.</p>
  337. </td>
  338. </tr>
  339. </tbody>
  340. </table>
  341. <h5 class="returns">Returns</h5>
  342. <table class="table table-bordered table-striped table-condensed">
  343. <thead>
  344. <tr>
  345. <th>Type</th>
  346. <th>Description</th>
  347. </tr>
  348. </thead>
  349. <tbody>
  350. <tr>
  351. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  352. <td></td>
  353. </tr>
  354. </tbody>
  355. </table>
  356. <span class="small pull-right mobile-hide">
  357. <span class="divider">|</span>
  358. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IModPrefs_HasKey_System_String_System_String_.md&amp;value=---%0Auid%3A%20IPA.Config.IModPrefs.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>
  359. </span>
  360. <span class="small pull-right mobile-hide">
  361. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8ae9c97695264030f76611bc46c84075b857c6b4/IPA.Loader/Config/ModPrefs.cs/#L56">View Source</a>
  362. </span>
  363. <a id="IPA_Config_IModPrefs_HasKey_" data-uid="IPA.Config.IModPrefs.HasKey*"></a>
  364. <h4 id="IPA_Config_IModPrefs_HasKey_System_String_System_String_" data-uid="IPA.Config.IModPrefs.HasKey(System.String,System.String)">HasKey(String, String)</h4>
  365. <div class="markdown level1 summary"><p>Checks whether or not a key exists in the ini.</p>
  366. </div>
  367. <div class="markdown level1 conceptual"></div>
  368. <h5 class="decalaration">Declaration</h5>
  369. <div class="codewrapper">
  370. <pre><code class="lang-csharp hljs">bool HasKey(string section, string name)</code></pre>
  371. </div>
  372. <h5 class="parameters">Parameters</h5>
  373. <table class="table table-bordered table-striped table-condensed">
  374. <thead>
  375. <tr>
  376. <th>Type</th>
  377. <th>Name</th>
  378. <th>Description</th>
  379. </tr>
  380. </thead>
  381. <tbody>
  382. <tr>
  383. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  384. <td><span class="parametername">section</span></td>
  385. <td><p>Section of the key.</p>
  386. </td>
  387. </tr>
  388. <tr>
  389. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  390. <td><span class="parametername">name</span></td>
  391. <td><p>Name of the key.</p>
  392. </td>
  393. </tr>
  394. </tbody>
  395. </table>
  396. <h5 class="returns">Returns</h5>
  397. <table class="table table-bordered table-striped table-condensed">
  398. <thead>
  399. <tr>
  400. <th>Type</th>
  401. <th>Description</th>
  402. </tr>
  403. </thead>
  404. <tbody>
  405. <tr>
  406. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  407. <td></td>
  408. </tr>
  409. </tbody>
  410. </table>
  411. <span class="small pull-right mobile-hide">
  412. <span class="divider">|</span>
  413. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IModPrefs_SetBool_System_String_System_String_System_Boolean_.md&amp;value=---%0Auid%3A%20IPA.Config.IModPrefs.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>
  414. </span>
  415. <span class="small pull-right mobile-hide">
  416. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8ae9c97695264030f76611bc46c84075b857c6b4/IPA.Loader/Config/ModPrefs.cs/#L84">View Source</a>
  417. </span>
  418. <a id="IPA_Config_IModPrefs_SetBool_" data-uid="IPA.Config.IModPrefs.SetBool*"></a>
  419. <h4 id="IPA_Config_IModPrefs_SetBool_System_String_System_String_System_Boolean_" data-uid="IPA.Config.IModPrefs.SetBool(System.String,System.String,System.Boolean)">SetBool(String, String, Boolean)</h4>
  420. <div class="markdown level1 summary"><p>Sets a bool in the ini.</p>
  421. </div>
  422. <div class="markdown level1 conceptual"></div>
  423. <h5 class="decalaration">Declaration</h5>
  424. <div class="codewrapper">
  425. <pre><code class="lang-csharp hljs">void SetBool(string section, string name, bool value)</code></pre>
  426. </div>
  427. <h5 class="parameters">Parameters</h5>
  428. <table class="table table-bordered table-striped table-condensed">
  429. <thead>
  430. <tr>
  431. <th>Type</th>
  432. <th>Name</th>
  433. <th>Description</th>
  434. </tr>
  435. </thead>
  436. <tbody>
  437. <tr>
  438. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  439. <td><span class="parametername">section</span></td>
  440. <td><p>Section of the key.</p>
  441. </td>
  442. </tr>
  443. <tr>
  444. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  445. <td><span class="parametername">name</span></td>
  446. <td><p>Name of the key.</p>
  447. </td>
  448. </tr>
  449. <tr>
  450. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  451. <td><span class="parametername">value</span></td>
  452. <td><p>Value that should be written.</p>
  453. </td>
  454. </tr>
  455. </tbody>
  456. </table>
  457. <span class="small pull-right mobile-hide">
  458. <span class="divider">|</span>
  459. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IModPrefs_SetFloat_System_String_System_String_System_Single_.md&amp;value=---%0Auid%3A%20IPA.Config.IModPrefs.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>
  460. </span>
  461. <span class="small pull-right mobile-hide">
  462. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8ae9c97695264030f76611bc46c84075b857c6b4/IPA.Loader/Config/ModPrefs.cs/#L63">View Source</a>
  463. </span>
  464. <a id="IPA_Config_IModPrefs_SetFloat_" data-uid="IPA.Config.IModPrefs.SetFloat*"></a>
  465. <h4 id="IPA_Config_IModPrefs_SetFloat_System_String_System_String_System_Single_" data-uid="IPA.Config.IModPrefs.SetFloat(System.String,System.String,System.Single)">SetFloat(String, String, Single)</h4>
  466. <div class="markdown level1 summary"><p>Sets a float in the ini.</p>
  467. </div>
  468. <div class="markdown level1 conceptual"></div>
  469. <h5 class="decalaration">Declaration</h5>
  470. <div class="codewrapper">
  471. <pre><code class="lang-csharp hljs">void SetFloat(string section, string name, float value)</code></pre>
  472. </div>
  473. <h5 class="parameters">Parameters</h5>
  474. <table class="table table-bordered table-striped table-condensed">
  475. <thead>
  476. <tr>
  477. <th>Type</th>
  478. <th>Name</th>
  479. <th>Description</th>
  480. </tr>
  481. </thead>
  482. <tbody>
  483. <tr>
  484. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  485. <td><span class="parametername">section</span></td>
  486. <td><p>Section of the key.</p>
  487. </td>
  488. </tr>
  489. <tr>
  490. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  491. <td><span class="parametername">name</span></td>
  492. <td><p>Name of the key.</p>
  493. </td>
  494. </tr>
  495. <tr>
  496. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.single">Single</a></td>
  497. <td><span class="parametername">value</span></td>
  498. <td><p>Value that should be written.</p>
  499. </td>
  500. </tr>
  501. </tbody>
  502. </table>
  503. <span class="small pull-right mobile-hide">
  504. <span class="divider">|</span>
  505. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IModPrefs_SetInt_System_String_System_String_System_Int32_.md&amp;value=---%0Auid%3A%20IPA.Config.IModPrefs.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>
  506. </span>
  507. <span class="small pull-right mobile-hide">
  508. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8ae9c97695264030f76611bc46c84075b857c6b4/IPA.Loader/Config/ModPrefs.cs/#L70">View Source</a>
  509. </span>
  510. <a id="IPA_Config_IModPrefs_SetInt_" data-uid="IPA.Config.IModPrefs.SetInt*"></a>
  511. <h4 id="IPA_Config_IModPrefs_SetInt_System_String_System_String_System_Int32_" data-uid="IPA.Config.IModPrefs.SetInt(System.String,System.String,System.Int32)">SetInt(String, String, Int32)</h4>
  512. <div class="markdown level1 summary"><p>Sets an int in the ini.</p>
  513. </div>
  514. <div class="markdown level1 conceptual"></div>
  515. <h5 class="decalaration">Declaration</h5>
  516. <div class="codewrapper">
  517. <pre><code class="lang-csharp hljs">void SetInt(string section, string name, int value)</code></pre>
  518. </div>
  519. <h5 class="parameters">Parameters</h5>
  520. <table class="table table-bordered table-striped table-condensed">
  521. <thead>
  522. <tr>
  523. <th>Type</th>
  524. <th>Name</th>
  525. <th>Description</th>
  526. </tr>
  527. </thead>
  528. <tbody>
  529. <tr>
  530. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  531. <td><span class="parametername">section</span></td>
  532. <td><p>Section of the key.</p>
  533. </td>
  534. </tr>
  535. <tr>
  536. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  537. <td><span class="parametername">name</span></td>
  538. <td><p>Name of the key.</p>
  539. </td>
  540. </tr>
  541. <tr>
  542. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
  543. <td><span class="parametername">value</span></td>
  544. <td><p>Value that should be written.</p>
  545. </td>
  546. </tr>
  547. </tbody>
  548. </table>
  549. <span class="small pull-right mobile-hide">
  550. <span class="divider">|</span>
  551. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IModPrefs_SetString_System_String_System_String_System_String_.md&amp;value=---%0Auid%3A%20IPA.Config.IModPrefs.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>
  552. </span>
  553. <span class="small pull-right mobile-hide">
  554. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8ae9c97695264030f76611bc46c84075b857c6b4/IPA.Loader/Config/ModPrefs.cs/#L77">View Source</a>
  555. </span>
  556. <a id="IPA_Config_IModPrefs_SetString_" data-uid="IPA.Config.IModPrefs.SetString*"></a>
  557. <h4 id="IPA_Config_IModPrefs_SetString_System_String_System_String_System_String_" data-uid="IPA.Config.IModPrefs.SetString(System.String,System.String,System.String)">SetString(String, String, String)</h4>
  558. <div class="markdown level1 summary"><p>Sets a string in the ini.</p>
  559. </div>
  560. <div class="markdown level1 conceptual"></div>
  561. <h5 class="decalaration">Declaration</h5>
  562. <div class="codewrapper">
  563. <pre><code class="lang-csharp hljs">void SetString(string section, string name, string value)</code></pre>
  564. </div>
  565. <h5 class="parameters">Parameters</h5>
  566. <table class="table table-bordered table-striped table-condensed">
  567. <thead>
  568. <tr>
  569. <th>Type</th>
  570. <th>Name</th>
  571. <th>Description</th>
  572. </tr>
  573. </thead>
  574. <tbody>
  575. <tr>
  576. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  577. <td><span class="parametername">section</span></td>
  578. <td><p>Section of the key.</p>
  579. </td>
  580. </tr>
  581. <tr>
  582. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  583. <td><span class="parametername">name</span></td>
  584. <td><p>Name of the key.</p>
  585. </td>
  586. </tr>
  587. <tr>
  588. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  589. <td><span class="parametername">value</span></td>
  590. <td><p>Value that should be written.</p>
  591. </td>
  592. </tr>
  593. </tbody>
  594. </table>
  595. <h3 id="extensionmethods">Extension Methods</h3>
  596. <div>
  597. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetPrivateField_System_Object_System_String_System_Object_">ReflectionUtil.SetPrivateField(Object, String, Object)</a>
  598. </div>
  599. <div>
  600. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetPrivateField__1_System_Object_System_String_">ReflectionUtil.GetPrivateField&lt;T&gt;(Object, String)</a>
  601. </div>
  602. <div>
  603. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetPrivateProperty_System_Object_System_String_System_Object_">ReflectionUtil.SetPrivateProperty(Object, String, Object)</a>
  604. </div>
  605. <div>
  606. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokePrivateMethod_System_Object_System_String_System_Object___">ReflectionUtil.InvokePrivateMethod(Object, String, Object[])</a>
  607. </div>
  608. <div>
  609. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokePrivateMethod__1_System_Object_System_String_System_Object___">ReflectionUtil.InvokePrivateMethod&lt;T&gt;(Object, String, Object[])</a>
  610. </div>
  611. </article>
  612. </div>
  613. <div class="hidden-sm col-md-2" role="complementary">
  614. <div class="sideaffix">
  615. <div class="contribution">
  616. <ul class="nav">
  617. <li>
  618. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IModPrefs.md&amp;value=---%0Auid%3A%20IPA.Config.IModPrefs%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>
  619. </li>
  620. <li>
  621. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/8ae9c97695264030f76611bc46c84075b857c6b4/IPA.Loader/Config/ModPrefs.cs/#L11" class="contribution-link">View Source</a>
  622. </li>
  623. </ul>
  624. </div>
  625. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  626. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  627. </nav>
  628. </div>
  629. </div>
  630. </div>
  631. </div>
  632. <footer>
  633. <div class="grad-bottom"></div>
  634. <div class="footer">
  635. <div class="container">
  636. <span class="pull-right">
  637. <a href="#top">Back to top</a>
  638. </span>
  639. <span>Generated by <strong>DocFX</strong></span>
  640. </div>
  641. </div>
  642. </footer>
  643. </div>
  644. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  645. <script type="text/javascript" src="../styles/docfx.js"></script>
  646. <script type="text/javascript" src="../styles/main.js"></script>
  647. </body>
  648. </html>