namespace update

This commit is contained in:
georgemoralis 2023-10-30 12:43:39 +02:00
parent 3602864523
commit 51dda8e8a5
4 changed files with 4 additions and 4 deletions

View File

@ -121,7 +121,7 @@ bool FlipQueue::flip(u32 micros) {
m_done_cond.notify_one();
request->cfg->m_flip_status.count++;
request->cfg->m_flip_status.processTime = Core::Libraries::sceKernelGetProcessTime();
request->cfg->m_flip_status.processTime = Core::Libraries::LibKernel::sceKernelGetProcessTime();
request->cfg->m_flip_status.tsc = HLE::Libs::LibKernel::sceKernelReadTsc();
request->cfg->m_flip_status.submitTsc = request->submit_tsc;
request->cfg->m_flip_status.flipArg = request->flip_arg;

View File

@ -4,7 +4,7 @@
#include "emuTimer.h"
namespace Core::Libraries {
namespace Core::Libraries::LibKernel {
u64 sceKernelGetProcessTime() {
return static_cast<u64>(Emulator::emuTimer::getTimeMsec() * 1000.0); // return time in microseconds
}

View File

@ -3,7 +3,7 @@
#include "types.h"
#include "Core/PS4/Loader/SymbolsResolver.h"
namespace Core::Libraries {
namespace Core::Libraries::LibKernel {
u64 sceKernelGetProcessTime();
void timeSymbolsRegister(SymbolsResolver* sym);

View File

@ -40,7 +40,7 @@ void GameController::addState(const State& state) {
void GameController::checKButton(int id, u32 button, bool isPressed) {
std::scoped_lock lock{m_mutex};
auto state = getLastState();
state.time = Core::Libraries::sceKernelGetProcessTime();
state.time = Core::Libraries::LibKernel::sceKernelGetProcessTime();
if (isPressed) {
state.buttonsState |= button;
} else {