diff options
author | rubidium <rubidium@openttd.org> | 2010-12-05 14:43:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-05 14:43:10 +0000 |
commit | 69766049cee33724746efc4806c0ab0563b051b9 (patch) | |
tree | b3ed2de48c4488539418ca54a8e9d98402a9f204 /src/video/dedicated_v.cpp | |
parent | 085c693289a9e132c53145997a91f28d2aa35c58 (diff) | |
download | openttd-69766049cee33724746efc4806c0ab0563b051b9.tar.xz |
(svn r21396) -Codechange: rename SafeSaveOrLoad to SaveLoad (it only did load), and add support for (safe) loading with a LoadFilter
Diffstat (limited to 'src/video/dedicated_v.cpp')
-rw-r--r-- | src/video/dedicated_v.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp index f2ebd0f00..9942a347d 100644 --- a/src/video/dedicated_v.cpp +++ b/src/video/dedicated_v.cpp @@ -137,7 +137,7 @@ static void *_dedicated_video_mem; /* Whether a fork has been done. */ bool _dedicated_forks; -extern bool SafeSaveOrLoad(const char *filename, int mode, GameMode newgm, Subdirectory subdir); +extern bool SafeLoad(const char *filename, int mode, GameMode newgm, Subdirectory subdir, struct LoadFilter *lf = NULL); extern void SwitchToMode(SwitchMode new_mode); static FVideoDriver_Dedicated iFVideoDriver_Dedicated; @@ -279,7 +279,7 @@ void VideoDriver_Dedicated::MainLoop() _switch_mode = SM_NONE; /* First we need to test if the savegame can be loaded, else we will end up playing the * intro game... */ - if (!SafeSaveOrLoad(_file_to_saveload.name, _file_to_saveload.mode, GM_NORMAL, BASE_DIR)) { + if (!SafeLoad(_file_to_saveload.name, _file_to_saveload.mode, GM_NORMAL, BASE_DIR)) { /* Loading failed, pop out.. */ DEBUG(net, 0, "Loading requested map failed, aborting"); _networking = false; |