Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

(RPH C#) How to add INI to code

Featured Replies

So I have been developing a mod for RPH, I wanted to post something on the RPH forums but I tried registering and it wouldn't work. Anyway, I'm coding in C# in visual studio. I was wondering how I could add an INI to my code because I know RPH has support for that, read an INI for what button the user wants to press,  and implement it in this string of code:

if (Game.IsKeyDown(Keys.Pause))

 

I want to replace the "Keys.Pause" with the string gotten from the INI. I have been trying to do this forever and I cannot figure out how. I can't find any good forums, videos, or documentation to explain this to me.

 

I also have this string of code to:

 

            iniFile = new InitializationFile("Plugns/My Mod.ini");
            iniFile.Create();

            string menuKey1 = iniFile.ReadString("openKey", "Pause", "Pause");

 

But came someone explain to me what the 3 strings in the parenthesis mean?

Edited by BlockBa5her

  • Author
3 minutes ago, SuperNish35 said:
 

Thank you so much, I couldn't find this for some reason but this will do. Thank you for helping me out with my crappy coding skills.

Just now, BlockBa5her said:

Thank you so much, I couldn't find this for some reason but this will do. Thank you for helping me out with my crappy coding skills.

np, glad I could help you out :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Similar Content

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.