1 |
|
/* |
2 |
|
* Prefs.cpp - Global preferences |
3 |
|
* |
4 |
< |
* Frodo (C) 1994-1997,2002-2005 Christian Bauer |
4 |
> |
* Frodo Copyright (C) Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
165 |
|
* Load preferences from file |
166 |
|
*/ |
167 |
|
|
168 |
< |
void Prefs::Load(char *filename) |
168 |
> |
void Prefs::Load(const char *filename) |
169 |
|
{ |
170 |
|
FILE *file; |
171 |
|
char line[256], keyword[256], value[256]; |
279 |
|
* true: success, false: error |
280 |
|
*/ |
281 |
|
|
282 |
< |
bool Prefs::Save(char *filename) |
282 |
> |
bool Prefs::Save(const char *filename) |
283 |
|
{ |
284 |
|
FILE *file; |
285 |
|
|
368 |
|
#include "Prefs_WIN32.h" |
369 |
|
#endif |
370 |
|
|
371 |
+ |
#ifdef __unix |
372 |
|
#ifdef HAVE_GLADE |
373 |
|
#include "Prefs_glade.h" |
374 |
+ |
#else |
375 |
+ |
#include "Prefs_x.h" |
376 |
+ |
#endif |
377 |
|
#endif |