mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
save name in exts
git-svn-id: https://svn.eduke32.com/eduke32@7924 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
03b63470b9
commit
ca8f8c0dbd
3 changed files with 4 additions and 3 deletions
|
@ -5640,7 +5640,7 @@ HORIZONLY:;
|
||||||
#define SJSON_IMPLEMENT
|
#define SJSON_IMPLEMENT
|
||||||
#include "sjson.h"
|
#include "sjson.h"
|
||||||
|
|
||||||
int portableBackupSave(const char * path, int volume, int level)
|
int portableBackupSave(const char * path, const char * name, int volume, int level)
|
||||||
{
|
{
|
||||||
if (!FURY)
|
if (!FURY)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -5661,6 +5661,7 @@ int portableBackupSave(const char * path, int volume, int level)
|
||||||
|
|
||||||
sjson_node * root = sjson_mkobject(ctx);
|
sjson_node * root = sjson_mkobject(ctx);
|
||||||
|
|
||||||
|
sjson_put_string(ctx, root, "name", name);
|
||||||
// sjson_put_string(ctx, root, "map", currentboardfilename);
|
// sjson_put_string(ctx, root, "map", currentboardfilename);
|
||||||
sjson_put_int(ctx, root, "volume", volume);
|
sjson_put_int(ctx, root, "volume", volume);
|
||||||
sjson_put_int(ctx, root, "level", level);
|
sjson_put_int(ctx, root, "level", level);
|
||||||
|
|
|
@ -417,6 +417,6 @@ static inline int P_Get(int32_t spriteNum) { return P_GetP((uspriteptr_t)&sprite
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int portableBackupSave(const char *, int, int);
|
extern int portableBackupSave(const char *, const char *, int, int);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -822,7 +822,7 @@ int32_t G_SavePlayer(savebrief_t & sv, bool isAutoSave)
|
||||||
|
|
||||||
VM_OnEvent(EVENT_SAVEGAME, g_player[screenpeek].ps->i, screenpeek);
|
VM_OnEvent(EVENT_SAVEGAME, g_player[screenpeek].ps->i, screenpeek);
|
||||||
|
|
||||||
portableBackupSave(sv.path, ud.last_stateless_volume, ud.last_stateless_level);
|
portableBackupSave(sv.path, sv.name, ud.last_stateless_volume, ud.last_stateless_level);
|
||||||
|
|
||||||
// SAVE!
|
// SAVE!
|
||||||
sv_saveandmakesnapshot(fil, sv.name, 0, 0, 0, 0, isAutoSave);
|
sv_saveandmakesnapshot(fil, sv.name, 0, 0, 0, 0, isAutoSave);
|
||||||
|
|
Loading…
Reference in a new issue