-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdisk.h
More file actions
27 lines (22 loc) · 805 Bytes
/
disk.h
File metadata and controls
27 lines (22 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef DISK_H_INCLUDED
#define DISK_H_INCLUDED
#include <gctypes.h>
#include "commons.h"
bool loadConfig(const char* filename);
void saveConfig(const char* filename);
/**
* Save highscores into file.
* @param scoreFileName file name to save the scores.
* @param layoutIndex Index number of the layout for which the score is.
* @param score Score that was reached and should be saved.
* @return 1 if save was successfull.
**/
int saveHighscore( const char* scoreFileName, unsigned long scores[]);
/**
* load Highscores from file.
* @param scoreFileName file name to load.
* @param scores Array where the score will get stored.
* @return 1 load was successfull.
**/
int loadHighscores( const char* scoreFileName, unsigned long scores[]);
#endif // DISK_H_INCLUDED