1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Support for saving sessions on the Mac. This is slightly useful even in the

absence of a config dialogue, since it allows me to get Default Settings out.

[originally from svn r2646]
This commit is contained in:
Ben Harris
2003-01-18 20:09:21 +00:00
parent c66d95c0b1
commit 99c1029649
7 changed files with 95 additions and 26 deletions

View File

@ -127,13 +127,19 @@ static void wprefs(void *sesskey, char *name,
void save_settings(char *section, int do_host, Config * cfg)
{
int i;
char *p;
void *sesskey;
sesskey = open_settings_w(section);
if (!sesskey)
return;
save_open_settings(sesskey, do_host, cfg);
close_settings_w(sesskey);
}
void save_open_settings(void *sesskey, int do_host, Config *cfg)
{
int i;
char *p;
write_setting_i(sesskey, "Present", 1);
if (do_host) {
@ -327,7 +333,6 @@ void save_settings(char *section, int do_host, Config * cfg)
write_setting_i(sesskey, "ScrollbarOnLeft", cfg->scrollbar_on_left);
write_setting_s(sesskey, "BoldFont", cfg->boldfont);
write_setting_i(sesskey, "ShadowBoldOffset", cfg->shadowboldoffset);
close_settings_w(sesskey);
}
void load_settings(char *section, int do_host, Config * cfg)