-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stick setting & latest level saved as config file...
... on disk (ATR) version
- Loading branch information
1 parent
686adca
commit b1e6ef6
Showing
6 changed files
with
73 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
Firefighting game for the Atari 8-bit | ||
Bill Kendrick <bill@newbreedsoftware.com> | ||
http://www.newbreedsoftware.com/firefighter/ | ||
2023-08-22 - 2023-08-22 | ||
*/ | ||
|
||
#include <atari.h> | ||
#include <string.h> | ||
#include <stdio.h> | ||
#include "config.h" | ||
|
||
extern char level; | ||
extern char main_stick; | ||
|
||
/* FIXME */ | ||
void load_config() { | ||
FILE * fi; | ||
|
||
fi = fopen("FIREFITE.CFG", "rb"); | ||
if (fi != NULL) { | ||
level = (char) fgetc(fi); | ||
main_stick = (char) fgetc(fi); | ||
fclose(fi); | ||
} | ||
} | ||
|
||
/* FIXME */ | ||
void save_config() { | ||
FILE * fi; | ||
|
||
fi = fopen("FIREFITE.CFG", "wb"); | ||
if (fi != NULL) { | ||
fputc((int) level, fi); | ||
fputc((int) main_stick, fi); | ||
fclose(fi); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
Firefighting game for the Atari 8-bit | ||
Bill Kendrick <bill@newbreedsoftware.com> | ||
http://www.newbreedsoftware.com/firefighter/ | ||
2023-08-22 - 2023-08-22 | ||
*/ | ||
|
||
void load_config(void); | ||
void save_config(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters