GetProfileString function get file from inside data.sah

xarel

Member
Joined
Feb 9, 2024
Messages
5
Hey, im wondering is there possible to get and read .ini files from data.sah ?
If its possible i am looking for guide about this.
I am gonna use with GetProfileString and WriteProfileString methods.
 
Hey, im wondering is there possible to get and read .ini files from data.sah ?
If its possible i am looking for guide about this.
I am gonna use with GetProfileString and WriteProfileString methods.
The easiest solution would be to have your code get the ini file data from the data files, and then write it to a temporary file. You could then store that file name and use it in the relevant methods.

You can get the path to an available temporary file using this function: https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettempfilenamea

Store the output path, write the INI data to it, and then use GetProfileString. If you want to be able to mutate the data then you’ll have to store it somewhere consistent that you can lookup, or write your own functionality for storing it back into the data file (which afaik the game client doesn’t natively support)
 
Back
Top