Configuration dialog box, on the GTK front end only as yet.

[originally from svn r4182]
This commit is contained in:
Simon Tatham
2004-05-01 11:32:12 +00:00
parent b1bfb378f4
commit 44ff00665b
8 changed files with 623 additions and 10 deletions

View File

@ -299,3 +299,27 @@ int midend_wants_statusbar(midend_data *me)
{
return game_wants_statusbar();
}
config_item *midend_get_config(midend_data *me)
{
return game_configure(me->params);
}
char *midend_set_config(midend_data *me, config_item *cfg)
{
char *error;
game_params *params;
params = custom_params(cfg);
error = validate_params(params);
if (error) {
free_params(params);
return error;
}
free_params(me->params);
me->params = params;
return NULL;
}