namespace update
This commit is contained in:
parent
3602864523
commit
51dda8e8a5
|
@ -121,7 +121,7 @@ bool FlipQueue::flip(u32 micros) {
|
||||||
m_done_cond.notify_one();
|
m_done_cond.notify_one();
|
||||||
|
|
||||||
request->cfg->m_flip_status.count++;
|
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.tsc = HLE::Libs::LibKernel::sceKernelReadTsc();
|
||||||
request->cfg->m_flip_status.submitTsc = request->submit_tsc;
|
request->cfg->m_flip_status.submitTsc = request->submit_tsc;
|
||||||
request->cfg->m_flip_status.flipArg = request->flip_arg;
|
request->cfg->m_flip_status.flipArg = request->flip_arg;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
#include "emuTimer.h"
|
#include "emuTimer.h"
|
||||||
|
|
||||||
namespace Core::Libraries {
|
namespace Core::Libraries::LibKernel {
|
||||||
u64 sceKernelGetProcessTime() {
|
u64 sceKernelGetProcessTime() {
|
||||||
return static_cast<u64>(Emulator::emuTimer::getTimeMsec() * 1000.0); // return time in microseconds
|
return static_cast<u64>(Emulator::emuTimer::getTimeMsec() * 1000.0); // return time in microseconds
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "Core/PS4/Loader/SymbolsResolver.h"
|
#include "Core/PS4/Loader/SymbolsResolver.h"
|
||||||
|
|
||||||
namespace Core::Libraries {
|
namespace Core::Libraries::LibKernel {
|
||||||
u64 sceKernelGetProcessTime();
|
u64 sceKernelGetProcessTime();
|
||||||
|
|
||||||
void timeSymbolsRegister(SymbolsResolver* sym);
|
void timeSymbolsRegister(SymbolsResolver* sym);
|
||||||
|
|
|
@ -40,7 +40,7 @@ void GameController::addState(const State& state) {
|
||||||
void GameController::checKButton(int id, u32 button, bool isPressed) {
|
void GameController::checKButton(int id, u32 button, bool isPressed) {
|
||||||
std::scoped_lock lock{m_mutex};
|
std::scoped_lock lock{m_mutex};
|
||||||
auto state = getLastState();
|
auto state = getLastState();
|
||||||
state.time = Core::Libraries::sceKernelGetProcessTime();
|
state.time = Core::Libraries::LibKernel::sceKernelGetProcessTime();
|
||||||
if (isPressed) {
|
if (isPressed) {
|
||||||
state.buttonsState |= button;
|
state.buttonsState |= button;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue