Dynamic allocation memory c++ Read ini file

closed account (Nw54LyTq)
I am creating a game for steam, and I intend to create a .txt file or .cfg file or something of the genre. Because to change in the interface of the steam application I can not. some help?

Here I leave the code

const char* CSteamApps::GetCurrentGameLanguage()
{
//Box("GetCurrentGameLanguage()", "CSteamApps");
return "english";
}


const char* CSteamApps::GetAvailableGameLanguages()
{
//Box("GetAvailableGameLanguages()", "CSteamApps");
return "english";
}


If I change the language, the game changes language, but for the players they will not have access to be able to make these changes, it would be easier in an easy access to a configuration.

I had this idea because I already saw games that have this configuration.

Is it possible to use malloc, realloc or free or even GetPrivateProfileString?

Thank you.
Last edited on
Topic archived. No new replies allowed.