mirror of
https://github.com/jeremysrand/a2sudoku.git
synced 2024-06-05 21:29:28 +00:00
Change the filename of the game options file.
This commit is contained in:
parent
8d4120db21
commit
cde0c38070
|
@ -147,7 +147,7 @@ void loadOptions(void)
|
||||||
if (optionsLoaded)
|
if (optionsLoaded)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
optionsFile = fopen("a2sudokuopts", "rb");
|
optionsFile = fopen("a2sudoku.opts", "rb");
|
||||||
if (optionsFile != NULL) {
|
if (optionsFile != NULL) {
|
||||||
fread(&gameOptions, sizeof(gameOptions), 1, optionsFile);
|
fread(&gameOptions, sizeof(gameOptions), 1, optionsFile);
|
||||||
fclose(optionsFile);
|
fclose(optionsFile);
|
||||||
|
@ -159,7 +159,7 @@ void loadOptions(void)
|
||||||
void shutdownUI(void)
|
void shutdownUI(void)
|
||||||
{
|
{
|
||||||
FILE *optionsFile;
|
FILE *optionsFile;
|
||||||
optionsFile = fopen("a2sudokuopts", "wb");
|
optionsFile = fopen("a2sudoku.opts", "wb");
|
||||||
if (optionsFile != NULL) {
|
if (optionsFile != NULL) {
|
||||||
fwrite(&gameOptions, sizeof(gameOptions), 1, optionsFile);
|
fwrite(&gameOptions, sizeof(gameOptions), 1, optionsFile);
|
||||||
fclose(optionsFile);
|
fclose(optionsFile);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user