mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Use date and sequential ID for replay-directorynames, fixes #3255.
Save replays in userdata (screenshots, savegames) and create one subdirectory for every release. This was SVN commit r17761.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2015 Wildfire Games.
|
||||
/* Copyright (C) 2016 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -27,8 +27,11 @@
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/Filesystem.h"
|
||||
#include "ps/Game.h"
|
||||
#include "ps/GameSetup/Paths.h"
|
||||
#include "ps/Mod.h"
|
||||
#include "ps/Pyrogenesis.h"
|
||||
#include "ps/Replay.h"
|
||||
#include "ps/Util.h"
|
||||
#include "scriptinterface/ScriptInterface.h"
|
||||
|
||||
/**
|
||||
@@ -38,7 +41,8 @@ const u8 minimumReplayDuration = 3;
|
||||
|
||||
OsPath VisualReplay::GetDirectoryName()
|
||||
{
|
||||
return OsPath(psLogDir() / L"sim_log");
|
||||
const Paths paths(g_args);
|
||||
return OsPath(paths.UserData() / "replays" / engine_version);
|
||||
}
|
||||
|
||||
void VisualReplay::StartVisualReplay(const CStrW& directory)
|
||||
|
||||
Reference in New Issue
Block a user