2016-01-07 17:00:59 +01:00
|
|
|
char ini_path[4096];
|
|
|
|
char config_section[] = "Config";
|
|
|
|
int encoding;
|
|
|
|
|
|
|
|
void LoadIniSettings()
|
|
|
|
{
|
2016-12-21 20:50:13 +01:00
|
|
|
kfont.size.pt = 14;
|
2016-01-07 17:00:59 +01:00
|
|
|
encoding = CH_CP866;
|
|
|
|
Form.left = 150;
|
|
|
|
Form.top = 50;
|
|
|
|
Form.width = 640;
|
|
|
|
Form.height = 560;
|
|
|
|
/*
|
|
|
|
strcpy(#ini_path, "/sys/settings/treader.ini");
|
2016-12-21 20:50:13 +01:00
|
|
|
ini_get_int stdcall (#ini_path, #config_section, "FontSize", 14); kfont.size.pt = EAX;
|
2016-01-07 17:00:59 +01:00
|
|
|
ini_get_int stdcall (#ini_path, #config_section, "Encoding", CH_CP866); encoding = EAX;
|
|
|
|
ini_get_int stdcall (#ini_path, #config_section, "WinX", 150); Form.left = EAX;
|
|
|
|
ini_get_int stdcall (#ini_path, #config_section, "WinY", 50); Form.top = EAX;
|
|
|
|
ini_get_int stdcall (#ini_path, #config_section, "WinW", 640); Form.width = EAX;
|
|
|
|
ini_get_int stdcall (#ini_path, #config_section, "WinH", 560); Form.height = EAX;
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
|
|
|
void SaveIniSettings()
|
|
|
|
{
|
|
|
|
/*
|
2016-12-21 20:50:13 +01:00
|
|
|
ini_set_int stdcall (#ini_path, #config_section, "FontSize", kfont.size.pt);
|
2016-01-07 17:00:59 +01:00
|
|
|
ini_set_int stdcall (#ini_path, #config_section, "Encoding", encoding);
|
|
|
|
ini_set_int stdcall (#ini_path, #config_section, "WinX", Form.left);
|
|
|
|
ini_set_int stdcall (#ini_path, #config_section, "WinY", Form.top);
|
|
|
|
ini_set_int stdcall (#ini_path, #config_section, "WinW", Form.width);
|
|
|
|
ini_set_int stdcall (#ini_path, #config_section, "WinH", Form.height);
|
|
|
|
*/
|
|
|
|
}
|