Merge pull request #4267 from zhaowenlan1779/movie
movie: Add clock init time to CTM header
This commit is contained in:
commit
2a90426cb8
5 changed files with 96 additions and 20 deletions
|
@ -7,6 +7,7 @@
|
|||
#include "core/core_timing.h"
|
||||
#include "core/hle/service/ptm/ptm.h"
|
||||
#include "core/hle/shared_page.h"
|
||||
#include "core/movie.h"
|
||||
#include "core/settings.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -14,6 +15,12 @@
|
|||
namespace SharedPage {
|
||||
|
||||
static std::chrono::seconds GetInitTime() {
|
||||
u64 override_init_time = Core::Movie::GetInstance().GetOverrideInitTime();
|
||||
if (override_init_time) {
|
||||
// Override the clock init time with the one in the movie
|
||||
return std::chrono::seconds(override_init_time);
|
||||
}
|
||||
|
||||
switch (Settings::values.init_clock) {
|
||||
case Settings::InitClock::SystemTime: {
|
||||
auto now = std::chrono::system_clock::now();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue