Reading multiple ini files from userdata profile with one rF2 install

Discussion in 'Plugins' started by B1K3R, Apr 25, 2015.

  1. B1K3R

    B1K3R Registered

    Joined:
    Apr 6, 2012
    Messages:
    1,605
    Likes Received:
    88
    hello :)

    If I have one rF2 install but with multiple profiles, is it possible to read an ini file from each profile?

    So I know that the UserData\ can be retrieved from the EnvironmentInfoV01 mPath[0] , so that gives me for example C:\BlahBlah\rFactorProduct\UserData\

    But if I have player1 and player2 folders, that is 2 profiles, how can I get player1 or player2 according to which profile is chosen?

    Wonder if its possible?

    Thanks!
     
    Last edited by a moderator: Apr 25, 2015
  2. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,388
    Likes Received:
    6,602
    mPath[1] I think. Points to the 'CustomPluginVariables.ini' file. Just knock off the bit after the last / (or \\) and put your ini name in there.
     
  3. B1K3R

    B1K3R Registered

    Joined:
    Apr 6, 2012
    Messages:
    1,605
    Likes Received:
    88

    Not sure how I missed that! :p Worked perfectly mate, thanks! :)
     

Share This Page