VgaGames4

VgaGames4 - miscellaneous man-pages

[.. upper level ..]

# vg4->misc->settings_save()

Return actual settings as allocated string for saving to file.

SYNTAX
char * vg4->misc->settings_save(int settings)
FUNCTION PARAMETERS

settings | Which to include into return-string: VG_SETTINGS bitwise or'ed

RETURN VALUE
Returns an allocated settings-string, must be freed with free()
DESCRIPTION
Return actual settings as allocated string for saving to file.
EXAMPLE

    FILE *ffp;
    char *sstr;

    sstr = vg4->misc->settings_save(VG_SETTING_WINDOWSCALE | VG_SETTING_WINDOWBRIGHTNESS | VG_SETTING_VOLUME | VG_SETTING_KEYS);
    ffp = fopen("settings.save", "w");
    fprintf(ffp, "%s\n", sstr);
    fclose(ffp);
    free(sstr);

SEE ALSO
VG_SETTINGS vg4->misc->settings_load()