Hand written so some parts prob wrong
class PresetList
{
public:
static char Preset[256];
static float Points;
};
void PresetList()
{
char Dir[64];
char Preset_[256];
float Points_;
GetCurrentDirectory(64, Dir);
strcat(Dir, "\\Presets.ini");
INIClass *ini = Get_INI(Dir);
if(!ini)
{
return 0;
}
ini->Get_String("Presets", "Preset", "ERR", Preset_, 256);
ini->Get_Float("Presets", "Points", "ERR", Points_, 256);
strcpy(Preset,Preset_);
Points = Points_;
Release_INI(ini);
}
[Updated on: Wed, 18 November 2009 08:08]
Report message to a moderator