updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / tuxboy / savedir.diff
blob246cb82d0e4515a78924e56d794e46b11eb3f2ed
1 --- save.c.orig 2009-01-26 14:02:54.630783832 +0100
2 +++ save.c 2009-01-26 14:12:20.944908215 +0100
3 @@ -252,7 +252,7 @@
6 void SaveSettings() {
7 - FILE *f=fopen("system/settings.txt","w");
8 + FILE *f=fopen("./tuxboy.cfg","w");
9 fprintf(f,"%d\n",scale);
10 fprintf(f,"%d\n",CustomW);
11 fprintf(f,"%d\n",CustomH);
12 @@ -268,9 +268,11 @@
15 void LoadSettings() {
16 - FILE *f=fopen("system/settings.txt","r");
17 + FILE *f=fopen("./tuxboy.cfg","r");
19 if(!f) {
20 + printf("Unable to open ./tuxboy.cfg, trying /etc/tuxboy/tuxboy.cfg\n");
21 + FILE *f=fopen("/etc/tuxboy/tuxboy.cfg","r");
22 SaveSettings();
23 return;