equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
|
2 |
|
3 /** @file saveload.h */ |
2 |
4 |
3 #ifndef SAVELOAD_H |
5 #ifndef SAVELOAD_H |
4 #define SAVELOAD_H |
6 #define SAVELOAD_H |
5 |
7 |
6 #ifdef SIZE_MAX |
8 #ifdef SIZE_MAX |
8 #endif |
10 #endif |
9 |
11 |
10 #define SIZE_MAX ((size_t)-1) |
12 #define SIZE_MAX ((size_t)-1) |
11 |
13 |
12 enum SaveOrLoadResult { |
14 enum SaveOrLoadResult { |
13 SL_OK = 0, // completed successfully |
15 SL_OK = 0, ///< completed successfully |
14 SL_ERROR = 1, // error that was caught before internal structures were modified |
16 SL_ERROR = 1, ///< error that was caught before internal structures were modified |
15 SL_REINIT = 2, // error that was caught in the middle of updating game state, need to clear it. (can only happen during load) |
17 SL_REINIT = 2, ///< error that was caught in the middle of updating game state, need to clear it. (can only happen during load) |
16 }; |
18 }; |
17 |
19 |
18 enum SaveOrLoadMode { |
20 enum SaveOrLoadMode { |
19 SL_INVALID = -1, |
21 SL_INVALID = -1, |
20 SL_LOAD = 0, |
22 SL_LOAD = 0, |