File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change 1
1
#include " saveSystem.h"
2
- #include < TFE_Input/inputMapping.h>
3
- #include < TFE_System/system.h>
4
- #include < TFE_Settings/gameSourceData.h>
2
+ #include < TFE_Asset/imageAsset.h>
3
+ #include < TFE_DarkForces/hud.h>
5
4
#include < TFE_FileSystem/fileutil.h>
6
-
5
+ # include < TFE_Input/inputMapping.h >
7
6
#include < TFE_RenderBackend/renderBackend.h>
8
- #include < TFE_Asset/imageAsset.h>
7
+ #include < TFE_Settings/gameSourceData.h>
8
+ #include < TFE_System/system.h>
9
9
#include < cassert>
10
10
#include < cstring>
11
11
@@ -370,8 +370,18 @@ namespace TFE_SaveSystem
370
370
}
371
371
else if (inputMapping_getActionState (IAS_QUICK_LOAD) == STATE_PRESSED && !lastState)
372
372
{
373
- postLoadRequest (c_quickSaveName);
374
- lastState = 1 ;
373
+ char filePath[TFE_MAX_PATH];
374
+ sprintf (filePath, " %s%s" , s_gameSavePath, c_quickSaveName);
375
+ if (FileUtil::exists (filePath))
376
+ {
377
+ postLoadRequest (c_quickSaveName);
378
+ lastState = 1 ;
379
+ }
380
+ else
381
+ {
382
+ TFE_DarkForces::hud_sendTextMessage (" No Quicksave Found" , 0 , false );
383
+ lastState = 0 ;
384
+ }
375
385
}
376
386
else
377
387
{
You can’t perform that action at this time.
0 commit comments