mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Merge pull request #19689 from hrydgard/sceGe-refactor
Add new core states for GE execution/stepping
This commit is contained in:
86 files changed
+281
-111
No files matched your search
@@ -1875,7 +1875,7 @@ void VulkanRenderManager::SanityCheckPassesOnAdd() {
|
||||
// Check that we don't have any previous passes that write to the backbuffer, that must ALWAYS be the last one.
|
||||
for (int i = 0; i < steps_.size(); i++) {
|
||||
if (steps_[i]->stepType == VKRStepType::RENDER) {
|
||||
_dbg_assert_(steps_[i]->render.framebuffer != nullptr);
|
||||
_dbg_assert_msg_(steps_[i]->render.framebuffer != nullptr, "Adding second backbuffer pass? Not good!");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
+21
-11
@@ -133,15 +133,15 @@ bool Core_MustRunBehind() {
|
||||
}
|
||||
|
||||
bool Core_IsStepping() {
|
||||
return coreState == CORE_STEPPING || coreState == CORE_POWERDOWN;
|
||||
return coreState == CORE_STEPPING_CPU || coreState == CORE_POWERDOWN;
|
||||
}
|
||||
|
||||
bool Core_IsActive() {
|
||||
return coreState == CORE_RUNNING || coreState == CORE_NEXTFRAME || coreStatePending;
|
||||
return coreState == CORE_RUNNING_CPU || coreState == CORE_NEXTFRAME || coreStatePending;
|
||||
}
|
||||
|
||||
bool Core_IsInactive() {
|
||||
return coreState != CORE_RUNNING && coreState != CORE_NEXTFRAME && !coreStatePending;
|
||||
return coreState != CORE_RUNNING_CPU && coreState != CORE_NEXTFRAME && !coreStatePending;
|
||||
}
|
||||
|
||||
static inline void Core_StateProcessed() {
|
||||
@@ -226,7 +226,7 @@ bool UpdateScreenScale(int width, int height) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Used by Windows, SDL, Qt.
|
||||
// Used by Windows, SDL, Qt. Doesn't belong in this file.
|
||||
void Core_RunLoop(GraphicsContext *ctx) {
|
||||
if (windowHidden && g_Config.bPauseWhenMinimized) {
|
||||
sleep_ms(16, "window-hidden");
|
||||
@@ -335,12 +335,22 @@ static void Core_PerformStep(MIPSDebugInterface *cpu, CPUStepType stepType, int
|
||||
}
|
||||
}
|
||||
|
||||
void Core_SwitchToGe() {
|
||||
coreState = CORE_RUNNING_GE;
|
||||
}
|
||||
|
||||
void Core_ProcessStepping(MIPSDebugInterface *cpu) {
|
||||
Core_StateProcessed();
|
||||
|
||||
// Check if there's any pending save state actions.
|
||||
SaveState::Process();
|
||||
if (coreState != CORE_STEPPING) {
|
||||
|
||||
switch (coreState) {
|
||||
case CORE_STEPPING_CPU:
|
||||
// All good
|
||||
break;
|
||||
default:
|
||||
// Nothing to do.
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -359,7 +369,7 @@ void Core_ProcessStepping(MIPSDebugInterface *cpu) {
|
||||
// Need to check inside the lock to avoid races.
|
||||
std::lock_guard<std::mutex> guard(g_stepMutex);
|
||||
|
||||
if (coreState != CORE_STEPPING || g_stepCommand.empty()) {
|
||||
if (coreState != CORE_STEPPING_CPU || g_stepCommand.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -396,8 +406,8 @@ bool Core_Run(GraphicsContext *ctx) {
|
||||
}
|
||||
|
||||
switch (coreState) {
|
||||
case CORE_RUNNING:
|
||||
case CORE_STEPPING:
|
||||
case CORE_RUNNING_CPU:
|
||||
case CORE_STEPPING_CPU:
|
||||
// enter a fast runloop
|
||||
Core_RunLoop(ctx);
|
||||
if (coreState == CORE_POWERDOWN) {
|
||||
@@ -444,7 +454,7 @@ void Core_Break(const char *reason, u32 relatedAddress) {
|
||||
g_stepCommand.relatedAddr = relatedAddress;
|
||||
steppingCounter++;
|
||||
_assert_msg_(reason != nullptr, "No reason specified for break");
|
||||
Core_UpdateState(CORE_STEPPING);
|
||||
Core_UpdateState(CORE_STEPPING_CPU);
|
||||
}
|
||||
System_Notify(SystemNotification::DEBUG_MODE_CHANGE);
|
||||
}
|
||||
@@ -453,13 +463,13 @@ void Core_Break(const char *reason, u32 relatedAddress) {
|
||||
void Core_Resume() {
|
||||
// Clear the exception if we resume.
|
||||
Core_ResetException();
|
||||
coreState = CORE_RUNNING;
|
||||
coreState = CORE_RUNNING_CPU;
|
||||
System_Notify(SystemNotification::DEBUG_MODE_CHANGE);
|
||||
}
|
||||
|
||||
// Should be called from the EmuThread.
|
||||
bool Core_NextFrame() {
|
||||
if (coreState == CORE_RUNNING) {
|
||||
if (coreState == CORE_RUNNING_CPU) {
|
||||
coreState = CORE_NEXTFRAME;
|
||||
return true;
|
||||
} else {
|
||||
|
||||
@@ -59,6 +59,7 @@ bool Core_ShouldRunBehind();
|
||||
bool Core_MustRunBehind();
|
||||
|
||||
bool Core_NextFrame();
|
||||
void Core_SwitchToGe(); // Switches from CPU emulation to GE display list execution.
|
||||
|
||||
// Changes every time we enter stepping.
|
||||
int Core_GetSteppingCounter();
|
||||
|
||||
@@ -227,7 +227,7 @@ static void GenericStreamBuffer(DebuggerRequest &req, std::function<bool(const G
|
||||
if (!currentDebugMIPS->isAlive()) {
|
||||
return req.Fail("CPU not started");
|
||||
}
|
||||
if (coreState != CORE_STEPPING && !GPUStepping::IsStepping()) {
|
||||
if (coreState != CORE_STEPPING_CPU && !GPUStepping::IsStepping()) {
|
||||
return req.Fail("Neither CPU or GPU is stepping");
|
||||
}
|
||||
|
||||
|
||||
@@ -60,9 +60,9 @@ void SteppingBroadcaster::Broadcast(net::WebSocketServer *ws) {
|
||||
if (PSP_IsInited()) {
|
||||
int steppingCounter = Core_GetSteppingCounter();
|
||||
// We ignore CORE_POWERDOWN as a stepping state.
|
||||
if (coreState == CORE_STEPPING && steppingCounter != lastCounter_) {
|
||||
if (coreState == CORE_STEPPING_CPU && steppingCounter != lastCounter_) {
|
||||
ws->Send(CPUSteppingEvent(Core_GetSteppingReason()));
|
||||
} else if (prevState_ == CORE_STEPPING && coreState != CORE_STEPPING && Core_IsActive()) {
|
||||
} else if (prevState_ == CORE_STEPPING_CPU && coreState != CORE_STEPPING_CPU && Core_IsActive()) {
|
||||
ws->Send(R"({"event":"cpu.resume"})");
|
||||
}
|
||||
lastCounter_ = steppingCounter;
|
||||
|
||||
+1
-1
@@ -397,7 +397,7 @@ static u32 sceGeDrawSync(u32 mode) {
|
||||
return gpu->DrawSync(mode);
|
||||
}
|
||||
|
||||
int sceGeContinue() {
|
||||
static int sceGeContinue() {
|
||||
DEBUG_LOG(Log::sceGe, "sceGeContinue");
|
||||
int ret = gpu->Continue();
|
||||
hleEatCycles(220);
|
||||
|
||||
@@ -56,13 +56,6 @@ bool __GeTriggerInterrupt(int listid, u32 pc, u64 atTicks);
|
||||
void __GeWaitCurrentThread(GPUSyncType type, SceUID waitId, const char *reason);
|
||||
bool __GeTriggerWait(GPUSyncType type, SceUID waitId);
|
||||
|
||||
|
||||
// Export functions for use by Util/PPGe
|
||||
u32 sceGeRestoreContext(u32 ctxAddr);
|
||||
u32 sceGeSaveContext(u32 ctxAddr);
|
||||
int sceGeBreak(u32 mode);
|
||||
int sceGeContinue();
|
||||
int sceGeListSync(u32 displayListID, u32 mode);
|
||||
|
||||
u32 sceGeListEnQueue(u32 listAddress, u32 stallAddress, int callbackId, u32 optParamAddr);
|
||||
u32 sceGeListEnQueueHead(u32 listAddress, u32 stallAddress, int callbackId, u32 optParamAddr);
|
||||
@@ -97,7 +97,7 @@ static u32 JitMemCheck(u32 pc) {
|
||||
u32 addr = currentMIPS->r[MIPS_GET_RS(op)] + offset;
|
||||
|
||||
g_breakpoints.ExecOpMemCheck(addr, pc);
|
||||
return coreState == CORE_RUNNING || coreState == CORE_NEXTFRAME ? 0 : 1;
|
||||
return coreState == CORE_RUNNING_CPU || coreState == CORE_NEXTFRAME ? 0 : 1;
|
||||
}
|
||||
|
||||
namespace MIPSComp
|
||||
|
||||
@@ -88,7 +88,7 @@ static u32 JitMemCheck(u32 pc) {
|
||||
u32 addr = currentMIPS->r[MIPS_GET_RS(op)] + offset;
|
||||
|
||||
g_breakpoints.ExecOpMemCheck(addr, pc);
|
||||
return coreState == CORE_RUNNING || coreState == CORE_NEXTFRAME ? 0 : 1;
|
||||
return coreState == CORE_RUNNING_CPU || coreState == CORE_NEXTFRAME ? 0 : 1;
|
||||
}
|
||||
|
||||
namespace MIPSComp
|
||||
|
||||
@@ -69,11 +69,11 @@ u32 IRRunBreakpoint(u32 pc) {
|
||||
return 0;
|
||||
|
||||
// Did we already hit one?
|
||||
if (coreState != CORE_RUNNING && coreState != CORE_NEXTFRAME)
|
||||
if (coreState != CORE_RUNNING_CPU && coreState != CORE_NEXTFRAME)
|
||||
return 1;
|
||||
|
||||
g_breakpoints.ExecBreakPoint(pc);
|
||||
return coreState != CORE_RUNNING ? 1 : 0;
|
||||
return coreState != CORE_RUNNING_CPU ? 1 : 0;
|
||||
}
|
||||
|
||||
u32 IRRunMemCheck(u32 pc, u32 addr) {
|
||||
@@ -83,11 +83,11 @@ u32 IRRunMemCheck(u32 pc, u32 addr) {
|
||||
return 0;
|
||||
|
||||
// Did we already hit one?
|
||||
if (coreState != CORE_RUNNING && coreState != CORE_NEXTFRAME)
|
||||
if (coreState != CORE_RUNNING_CPU && coreState != CORE_NEXTFRAME)
|
||||
return 1;
|
||||
|
||||
g_breakpoints.ExecOpMemCheck(addr, pc);
|
||||
return coreState != CORE_RUNNING ? 1 : 0;
|
||||
return coreState != CORE_RUNNING_CPU ? 1 : 0;
|
||||
}
|
||||
|
||||
void IRApplyRounding(MIPSState *mips) {
|
||||
@@ -1148,7 +1148,7 @@ u32 IRInterpret(MIPSState *mips, const IRInst *inst) {
|
||||
{
|
||||
MIPSOpcode op(inst->constant);
|
||||
CallSyscall(op);
|
||||
if (coreState != CORE_RUNNING)
|
||||
if (coreState != CORE_RUNNING_CPU)
|
||||
CoreTiming::ForceCheck();
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ template <uint32_t alignment>
|
||||
u32 RunValidateAddress(u32 pc, u32 addr, u32 isWrite) {
|
||||
const auto toss = [&](MemoryExceptionType t) {
|
||||
Core_MemoryException(addr, alignment, pc, t);
|
||||
return coreState != CORE_RUNNING ? 1 : 0;
|
||||
return coreState != CORE_RUNNING_CPU ? 1 : 0;
|
||||
};
|
||||
|
||||
if (!Memory::IsValidRange(addr, alignment)) {
|
||||
|
||||
@@ -167,7 +167,7 @@ uint32_t IRNativeBackend::DoIRInst(uint64_t value) {
|
||||
int IRNativeBackend::ReportBadAddress(uint32_t addr, uint32_t alignment, uint32_t isWrite) {
|
||||
const auto toss = [&](MemoryExceptionType t) {
|
||||
Core_MemoryException(addr, alignment, currentMIPS->pc, t);
|
||||
return coreState != CORE_RUNNING ? 1 : 0;
|
||||
return coreState != CORE_RUNNING_CPU ? 1 : 0;
|
||||
};
|
||||
|
||||
if (!Memory::IsValidRange(addr, alignment)) {
|
||||
|
||||
+1
-1
@@ -378,7 +378,7 @@ void MIPSState::InvalidateICache(u32 address, int length) {
|
||||
void MIPSState::ClearJitCache() {
|
||||
std::lock_guard<std::recursive_mutex> guard(MIPSComp::jitLock);
|
||||
if (MIPSComp::jit) {
|
||||
if (coreState == CORE_RUNNING || insideJit) {
|
||||
if (coreState == CORE_RUNNING_CPU || insideJit) {
|
||||
pendingClears.emplace_back(0, 0);
|
||||
hasPendingClears = true;
|
||||
CoreTiming::ForceCheck();
|
||||
|
||||
@@ -970,7 +970,7 @@ void MIPSInterpret(MIPSOpcode op) {
|
||||
static inline void RunUntilFast() {
|
||||
MIPSState *curMips = currentMIPS;
|
||||
// NEVER stop in a delay slot!
|
||||
while (curMips->downcount >= 0 && coreState == CORE_RUNNING) {
|
||||
while (curMips->downcount >= 0 && coreState == CORE_RUNNING_CPU) {
|
||||
do {
|
||||
// Replacements and similar are processed here, intentionally.
|
||||
MIPSOpcode op = MIPSOpcode(Memory::Read_U32(curMips->pc));
|
||||
@@ -994,7 +994,7 @@ static void RunUntilWithChecks(u64 globalTicks) {
|
||||
// NEVER stop in a delay slot!
|
||||
bool hasBPs = g_breakpoints.HasBreakPoints();
|
||||
bool hasMCs = g_breakpoints.HasMemChecks();
|
||||
while (curMips->downcount >= 0 && coreState == CORE_RUNNING) {
|
||||
while (curMips->downcount >= 0 && coreState == CORE_RUNNING_CPU) {
|
||||
do {
|
||||
// Replacements and similar are processed here, intentionally.
|
||||
MIPSOpcode op = MIPSOpcode(Memory::Read_U32(curMips->pc));
|
||||
@@ -1022,7 +1022,7 @@ static void RunUntilWithChecks(u64 globalTicks) {
|
||||
g_breakpoints.ExecMemCheck(addr, true, sz, curMips->pc, "interpret");
|
||||
|
||||
// If it tripped, bail without running.
|
||||
if (coreState == CORE_STEPPING)
|
||||
if (coreState == CORE_STEPPING_CPU)
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1044,7 +1044,7 @@ static void RunUntilWithChecks(u64 globalTicks) {
|
||||
|
||||
int MIPSInterpret_RunUntil(u64 globalTicks) {
|
||||
MIPSState *curMips = currentMIPS;
|
||||
while (coreState == CORE_RUNNING) {
|
||||
while (coreState == CORE_RUNNING_CPU) {
|
||||
CoreTiming::Advance();
|
||||
|
||||
uint64_t ticksLeft = globalTicks - CoreTiming::GetTicks();
|
||||
|
||||
@@ -97,12 +97,12 @@ static u32 JitMemCheck(u32 addr, u32 pc) {
|
||||
return 0;
|
||||
|
||||
// Did we already hit one?
|
||||
if (coreState != CORE_RUNNING && coreState != CORE_NEXTFRAME)
|
||||
if (coreState != CORE_RUNNING_CPU && coreState != CORE_NEXTFRAME)
|
||||
return 1;
|
||||
|
||||
// Note: pc may be the delay slot.
|
||||
g_breakpoints.ExecOpMemCheck(addr, pc);
|
||||
return coreState == CORE_RUNNING || coreState == CORE_NEXTFRAME ? 0 : 1;
|
||||
return coreState == CORE_RUNNING_CPU || coreState == CORE_NEXTFRAME ? 0 : 1;
|
||||
}
|
||||
|
||||
static void JitLogMiss(MIPSOpcode op)
|
||||
|
||||
+3
-3
@@ -328,7 +328,7 @@ bool Load_PSP_ISO(FileLoader *fileLoader, std::string *error_string) {
|
||||
if (PSP_CoreParameter().startBreak) {
|
||||
Core_Break("start-break");
|
||||
} else {
|
||||
coreState = CORE_RUNNING;
|
||||
coreState = CORE_RUNNING_CPU;
|
||||
}
|
||||
} else {
|
||||
coreState = CORE_BOOT_ERROR;
|
||||
@@ -489,7 +489,7 @@ bool Load_PSP_ELF_PBP(FileLoader *fileLoader, std::string *error_string) {
|
||||
if (PSP_CoreParameter().startBreak) {
|
||||
Core_Break("start-break");
|
||||
} else {
|
||||
coreState = CORE_RUNNING;
|
||||
coreState = CORE_RUNNING_CPU;
|
||||
}
|
||||
} else {
|
||||
coreState = CORE_BOOT_ERROR;
|
||||
@@ -519,7 +519,7 @@ bool Load_PSP_GE_Dump(FileLoader *fileLoader, std::string *error_string) {
|
||||
if (PSP_CoreParameter().startBreak) {
|
||||
Core_Break("start-break");
|
||||
} else {
|
||||
coreState = CORE_RUNNING;
|
||||
coreState = CORE_RUNNING_CPU;
|
||||
}
|
||||
} else {
|
||||
coreState = CORE_BOOT_ERROR;
|
||||
|
||||
+1
-1
@@ -275,7 +275,7 @@ namespace SaveState
|
||||
if (g_Config.iRewindSnapshotInterval <= 0) {
|
||||
return;
|
||||
}
|
||||
if (coreState != CORE_RUNNING) {
|
||||
if (coreState != CORE_RUNNING_CPU) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
+25
-20
@@ -105,7 +105,7 @@ bool coreCollectDebugStats = false;
|
||||
static int coreCollectDebugStatsCounter = 0;
|
||||
|
||||
// This can be read and written from ANYWHERE.
|
||||
volatile CoreState coreState = CORE_STEPPING;
|
||||
volatile CoreState coreState = CORE_STEPPING_CPU;
|
||||
// If true, core state has been changed, but JIT has probably not noticed yet.
|
||||
volatile bool coreStatePending = false;
|
||||
|
||||
@@ -388,7 +388,7 @@ void UpdateLoadedFile(FileLoader *fileLoader) {
|
||||
}
|
||||
|
||||
void Core_UpdateState(CoreState newState) {
|
||||
if ((coreState == CORE_RUNNING || coreState == CORE_NEXTFRAME) && newState != CORE_RUNNING)
|
||||
if ((coreState == CORE_RUNNING_CPU || coreState == CORE_NEXTFRAME) && newState != CORE_RUNNING_CPU)
|
||||
coreStatePending = true;
|
||||
coreState = newState;
|
||||
}
|
||||
@@ -569,7 +569,7 @@ void PSP_Shutdown() {
|
||||
|
||||
// Make sure things know right away that PSP memory, etc. is going away.
|
||||
pspIsQuitting = !pspIsRebooting;
|
||||
if (coreState == CORE_RUNNING)
|
||||
if (coreState == CORE_RUNNING_CPU)
|
||||
Core_Stop();
|
||||
|
||||
if (g_Config.bFuncHashMap) {
|
||||
@@ -620,27 +620,32 @@ void PSP_RunLoopWhileState() {
|
||||
// We just run the CPU until we get to vblank. This will quickly sync up pretty nicely.
|
||||
// The actual number of cycles doesn't matter so much here as we will break due to CORE_NEXTFRAME, most of the time hopefully...
|
||||
int blockTicks = usToCycles(1000000 / 10);
|
||||
|
||||
// Run until CORE_NEXTFRAME
|
||||
while (coreState == CORE_RUNNING || coreState == CORE_STEPPING) {
|
||||
PSP_RunLoopFor(blockTicks);
|
||||
if (coreState == CORE_STEPPING) {
|
||||
// Keep the UI responsive.
|
||||
break;
|
||||
}
|
||||
}
|
||||
PSP_RunLoopFor(blockTicks);
|
||||
}
|
||||
|
||||
void PSP_RunLoopUntil(u64 globalticks) {
|
||||
if (coreState == CORE_POWERDOWN || coreState == CORE_BOOT_ERROR || coreState == CORE_RUNTIME_ERROR) {
|
||||
return;
|
||||
} else if (coreState == CORE_STEPPING) {
|
||||
Core_ProcessStepping(currentDebugMIPS);
|
||||
return;
|
||||
}
|
||||
|
||||
if (coreState != CORE_NEXTFRAME) { // Can be set by SaveState as well as by sceDisplay
|
||||
mipsr4k.RunLoopUntil(globalticks);
|
||||
while (true) {
|
||||
switch (coreState) {
|
||||
case CORE_POWERDOWN:
|
||||
case CORE_BOOT_ERROR:
|
||||
case CORE_RUNTIME_ERROR:
|
||||
case CORE_NEXTFRAME:
|
||||
return;
|
||||
case CORE_STEPPING_CPU:
|
||||
Core_ProcessStepping(currentDebugMIPS);
|
||||
return;
|
||||
case CORE_RUNNING_CPU:
|
||||
mipsr4k.RunLoopUntil(globalticks);
|
||||
break; // Will loop around to go to RUNNING_GE or NEXTFRAME, which will exit.
|
||||
case CORE_STEPPING_GE:
|
||||
_dbg_assert_(false);
|
||||
break;
|
||||
case CORE_RUNNING_GE:
|
||||
gpu->ProcessDLQueue();
|
||||
coreState = CORE_RUNNING_CPU;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+6
-2
@@ -111,11 +111,11 @@ bool CreateSysDirectories();
|
||||
// RUNNING must be at 0, NEXTFRAME must be at 1.
|
||||
enum CoreState {
|
||||
// Emulation is running normally.
|
||||
CORE_RUNNING = 0,
|
||||
CORE_RUNNING_CPU = 0,
|
||||
// Emulation was running normally, just reached the end of a frame.
|
||||
CORE_NEXTFRAME = 1,
|
||||
// Emulation is paused, CPU thread is sleeping.
|
||||
CORE_STEPPING, // Can be used for recoverable runtime errors (ignored memory exceptions)
|
||||
CORE_STEPPING_CPU, // Can be used for recoverable runtime errors (ignored memory exceptions)
|
||||
// Core is being powered up.
|
||||
CORE_POWERUP,
|
||||
// Core is being powered down.
|
||||
@@ -124,6 +124,10 @@ enum CoreState {
|
||||
CORE_BOOT_ERROR,
|
||||
// Unrecoverable runtime error. Recoverable errors should use CORE_STEPPING.
|
||||
CORE_RUNTIME_ERROR,
|
||||
// Stepping the GPU. When done, will switch over to STEPPING_CPU.
|
||||
CORE_STEPPING_GE,
|
||||
// Running the GPU. When done, will switch over to RUNNING_CPU.
|
||||
CORE_RUNNING_GE,
|
||||
};
|
||||
|
||||
extern bool coreCollectDebugStats;
|
||||
|
||||
@@ -136,7 +136,7 @@ struct ThreadEventQueue : public B {
|
||||
inline bool ShouldSyncThread(bool force) {
|
||||
if (!HasEvents())
|
||||
return false;
|
||||
if (coreState != CORE_RUNNING && !force)
|
||||
if (coreState != CORE_RUNNING_CPU && !force)
|
||||
return false;
|
||||
|
||||
// Don't run if it's not running, but wait for startup.
|
||||
|
||||
@@ -207,7 +207,7 @@ static Path WriteRecording() {
|
||||
|
||||
FILE *fp = File::OpenCFile(filename, "wb");
|
||||
Header header{};
|
||||
strncpy(header.magic, HEADER_MAGIC, sizeof(header.magic));
|
||||
memcpy(header.magic, HEADER_MAGIC, sizeof(header.magic));
|
||||
header.version = VERSION;
|
||||
strncpy(header.gameID, g_paramSFO.GetDiscID().c_str(), sizeof(header.gameID));
|
||||
fwrite(&header, sizeof(header), 1, fp);
|
||||
|
||||
@@ -154,7 +154,7 @@ static void StopStepping() {
|
||||
|
||||
bool SingleStep() {
|
||||
std::unique_lock<std::mutex> guard(pauseLock);
|
||||
if (coreState != CORE_RUNNING && coreState != CORE_NEXTFRAME && coreState != CORE_STEPPING) {
|
||||
if (coreState != CORE_RUNNING_CPU && coreState != CORE_NEXTFRAME && coreState != CORE_STEPPING_CPU) {
|
||||
// Shutting down, don't try to step.
|
||||
actionComplete = true;
|
||||
actionWait.notify_all();
|
||||
@@ -174,7 +174,7 @@ bool SingleStep() {
|
||||
|
||||
bool EnterStepping() {
|
||||
std::unique_lock<std::mutex> guard(pauseLock);
|
||||
if (coreState != CORE_RUNNING && coreState != CORE_NEXTFRAME && coreState != CORE_STEPPING) {
|
||||
if (coreState != CORE_RUNNING_CPU && coreState != CORE_NEXTFRAME && coreState != CORE_STEPPING_CPU) {
|
||||
// Shutting down, don't try to step.
|
||||
actionComplete = true;
|
||||
actionWait.notify_all();
|
||||
@@ -212,7 +212,7 @@ int GetSteppingCounter() {
|
||||
}
|
||||
|
||||
static bool GetBuffer(const GPUDebugBuffer *&buffer, PauseAction type, const GPUDebugBuffer &resultBuffer) {
|
||||
if (!isStepping && coreState != CORE_STEPPING) {
|
||||
if (!isStepping && coreState != CORE_STEPPING_CPU) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ bool GPU_GetCurrentClut(const GPUDebugBuffer *&buffer) {
|
||||
}
|
||||
|
||||
bool GPU_SetCmdValue(u32 op) {
|
||||
if (!isStepping && coreState != CORE_STEPPING) {
|
||||
if (!isStepping && coreState != CORE_STEPPING_CPU) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -260,7 +260,7 @@ bool GPU_SetCmdValue(u32 op) {
|
||||
}
|
||||
|
||||
bool GPU_FlushDrawing() {
|
||||
if (!isStepping && coreState != CORE_STEPPING) {
|
||||
if (!isStepping && coreState != CORE_STEPPING_CPU) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ void GPU_GLES::BeginHostFrame() {
|
||||
// Save the cache from time to time. TODO: How often? We save on exit, so shouldn't need to do this all that often.
|
||||
|
||||
const int saveShaderCacheFrameInterval = 32767; // power of 2 - 1. About every 10 minutes at 60fps.
|
||||
if (shaderCachePath_.Valid() && !(gpuStats.numFlips & saveShaderCacheFrameInterval) && coreState == CORE_RUNNING) {
|
||||
if (shaderCachePath_.Valid() && !(gpuStats.numFlips & saveShaderCacheFrameInterval) && coreState == CORE_RUNNING_CPU) {
|
||||
shaderManagerGL_->SaveCache(shaderCachePath_, &drawEngine_);
|
||||
}
|
||||
shaderManagerGL_->DirtyLastShader();
|
||||
|
||||
+31
-7
@@ -13,6 +13,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "ext/imgui/imgui.h"
|
||||
#include "Common/Profiler/Profiler.h"
|
||||
|
||||
#include "Common/GraphicsContext.h"
|
||||
@@ -26,6 +27,7 @@
|
||||
#include "GPU/GPUCommon.h"
|
||||
#include "GPU/GPUState.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "Core/Debugger/MemBlockInfo.h"
|
||||
#include "Core/MemMap.h"
|
||||
@@ -465,7 +467,7 @@ u32 GPUCommon::EnqueueList(u32 listpc, u32 stall, int subIntrBase, PSPPointer<Ps
|
||||
drawCompleteTicks = (u64)-1;
|
||||
|
||||
// TODO save context when starting the list if param is set
|
||||
ProcessDLQueue();
|
||||
SwitchToGe();
|
||||
}
|
||||
|
||||
return id;
|
||||
@@ -490,7 +492,6 @@ u32 GPUCommon::DequeueList(int listid) {
|
||||
__GeTriggerWait(GPU_SYNC_LIST, listid);
|
||||
|
||||
CheckDrawSync();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -503,8 +504,7 @@ u32 GPUCommon::UpdateStall(int listid, u32 newstall) {
|
||||
|
||||
dl.stall = newstall & 0x0FFFFFFF;
|
||||
|
||||
ProcessDLQueue();
|
||||
|
||||
SwitchToGe();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -544,10 +544,20 @@ u32 GPUCommon::Continue() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
ProcessDLQueue();
|
||||
SwitchToGe();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void GPUCommon::SwitchToGe() {
|
||||
// Old method, although may make sense for performance if the ImDebugger isn't active.
|
||||
#if 1
|
||||
ProcessDLQueue();
|
||||
#else
|
||||
// New method, will allow ImDebugger to step the GPU
|
||||
Core_SwitchToGe();
|
||||
#endif
|
||||
}
|
||||
|
||||
u32 GPUCommon::Break(int mode) {
|
||||
if (mode < 0 || mode > 1)
|
||||
return SCE_KERNEL_ERROR_INVALID_MODE;
|
||||
@@ -829,6 +839,8 @@ int GPUCommon::GetNextListIndex() {
|
||||
}
|
||||
}
|
||||
|
||||
// This is now called when coreState == CORE_RUNNING_GE.
|
||||
// TODO: It should return the next action.. (break into debugger or continue running)
|
||||
void GPUCommon::ProcessDLQueue() {
|
||||
startingTicks = CoreTiming::GetTicks();
|
||||
cyclesExecuted = 0;
|
||||
@@ -861,6 +873,7 @@ void GPUCommon::ProcessDLQueue() {
|
||||
|
||||
drawCompleteTicks = startingTicks + cyclesExecuted;
|
||||
busyTicks = std::max(busyTicks, drawCompleteTicks);
|
||||
|
||||
__GeTriggerSync(GPU_SYNC_DRAW, 1, drawCompleteTicks);
|
||||
// Since the event is in CoreTiming, we're in sync. Just set 0 now.
|
||||
}
|
||||
@@ -1528,7 +1541,7 @@ void GPUCommon::InterruptEnd(int listid) {
|
||||
}
|
||||
}
|
||||
|
||||
ProcessDLQueue();
|
||||
SwitchToGe();
|
||||
}
|
||||
|
||||
// TODO: Maybe cleaner to keep this in GE and trigger the clear directly?
|
||||
@@ -1697,7 +1710,7 @@ void GPUCommon::DoBlockTransfer(u32 skipDrawReason) {
|
||||
bool dstWraps = Memory::IsVRAMAddress(dstBasePtr) && !dstValid;
|
||||
|
||||
char tag[128];
|
||||
size_t tagSize;
|
||||
size_t tagSize = 0;
|
||||
|
||||
// Tell the framebuffer manager to take action if possible. If it does the entire thing, let's just return.
|
||||
if (!framebufferManager_ || !framebufferManager_->NotifyBlockTransferBefore(dstBasePtr, dstStride, dstX, dstY, srcBasePtr, srcStride, srcX, srcY, width, height, bpp, skipDrawReason)) {
|
||||
@@ -1963,3 +1976,14 @@ bool GPUCommon::DescribeCodePtr(const u8 *ptr, std::string &name) {
|
||||
// which is owned by the drawengine.
|
||||
return drawEngineCommon_->DescribeCodePtr(ptr, name);
|
||||
}
|
||||
|
||||
void GPUCommon::DrawImGuiDebugger() {
|
||||
// First, let's list any active display lists.
|
||||
ImGui::Text("Next list ID: %d", nextListID);
|
||||
for (auto index : dlQueue) {
|
||||
const auto &list = dls[index];
|
||||
ImGui::Text("List %d", list.id);
|
||||
ImGui::Text("pc: %08x (start: %08x)", list.pc, list.startpc);
|
||||
ImGui::Text("bbox: %d", (int)list.bboxResult);
|
||||
}
|
||||
}
|
||||
+6
-1
@@ -114,7 +114,7 @@ public:
|
||||
virtual void PreExecuteOp(u32 op, u32 diff) {}
|
||||
|
||||
bool InterpretList(DisplayList &list);
|
||||
void ProcessDLQueue();
|
||||
void ProcessDLQueue() override;
|
||||
u32 UpdateStall(int listid, u32 newstall) override;
|
||||
u32 EnqueueList(u32 listpc, u32 stall, int subIntrBase, PSPPointer<PspGeListArgs> args, bool head) override;
|
||||
u32 DequeueList(int listid) override;
|
||||
@@ -128,6 +128,11 @@ public:
|
||||
u32 Continue() override;
|
||||
u32 Break(int mode) override;
|
||||
void ReapplyGfxState() override;
|
||||
|
||||
void SwitchToGe();
|
||||
|
||||
void DrawImGuiDebugger() override;
|
||||
|
||||
uint32_t SetAddrTranslation(uint32_t value) override;
|
||||
uint32_t GetAddrTranslation() override;
|
||||
|
||||
|
||||
@@ -197,6 +197,8 @@ public:
|
||||
virtual u32 EnqueueList(u32 listpc, u32 stall, int subIntrBase, PSPPointer<PspGeListArgs> args, bool head) = 0;
|
||||
virtual u32 DequeueList(int listid) = 0;
|
||||
virtual u32 UpdateStall(int listid, u32 newstall) = 0;
|
||||
virtual void ProcessDLQueue() = 0;
|
||||
|
||||
virtual u32 DrawSync(int mode) = 0;
|
||||
virtual int ListSync(int listid, int mode) = 0;
|
||||
virtual u32 Continue() = 0;
|
||||
@@ -219,6 +221,7 @@ public:
|
||||
|
||||
// Tells the GPU to update the gpuStats structure.
|
||||
virtual void GetStats(char *buffer, size_t bufsize) = 0;
|
||||
virtual void DrawImGuiDebugger() = 0;
|
||||
|
||||
// Invalidate any cached content sourced from the specified range.
|
||||
// If size = -1, invalidate everything.
|
||||
|
||||
+1
-1
@@ -117,7 +117,7 @@ void MainWindow::updateMenus()
|
||||
|
||||
void MainWindow::bootDone()
|
||||
{
|
||||
if (nextState == CORE_RUNNING)
|
||||
if (nextState == CORE_RUNNING_CPU)
|
||||
runAct();
|
||||
updateMenus();
|
||||
}
|
||||
|
||||
Generated
+5
-5
@@ -1,6 +1,6 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "anstream"
|
||||
@@ -118,9 +118,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.91"
|
||||
version = "1.0.92"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "307e3004becf10f5a6e0d59d20f3cd28231b0e0827a96cd3e0ce6d14bc1e4bb3"
|
||||
checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"
|
||||
dependencies = [
|
||||
"unicode-ident",
|
||||
]
|
||||
@@ -142,9 +142,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
|
||||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "2.0.89"
|
||||
version = "2.0.90"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "44d46482f1c1c87acd84dea20c1bf5ebff4c757009ed6bf19cfd36fb10e92c4e"
|
||||
checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
||||
@@ -42,6 +42,11 @@ enum Command {
|
||||
new: String,
|
||||
key: String,
|
||||
},
|
||||
DupeKey {
|
||||
section: String,
|
||||
old: String,
|
||||
new: String,
|
||||
},
|
||||
RenameKey {
|
||||
section: String,
|
||||
old: String,
|
||||
@@ -161,6 +166,15 @@ fn rename_key(target_ini: &mut IniFile, section: &str, old: &str, new: &str) ->
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn dupe_key(target_ini: &mut IniFile, section: &str, old: &str, new: &str) -> io::Result<()> {
|
||||
if let Some(section) = target_ini.get_section_mut(section) {
|
||||
section.dupe_key(old, new);
|
||||
} else {
|
||||
println!("No section {}", section);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn sort_section(target_ini: &mut IniFile, section: &str) -> io::Result<()> {
|
||||
if let Some(section) = target_ini.get_section_mut(section) {
|
||||
section.sort();
|
||||
@@ -247,12 +261,20 @@ fn main() {
|
||||
move_key(&mut target_ini, old, new, key).unwrap();
|
||||
}
|
||||
Command::CopyKey {
|
||||
// Copies between sections
|
||||
ref old,
|
||||
ref new,
|
||||
ref key,
|
||||
} => {
|
||||
copy_key(&mut target_ini, old, new, key).unwrap();
|
||||
}
|
||||
Command::DupeKey {
|
||||
ref section,
|
||||
ref old,
|
||||
ref new,
|
||||
} => {
|
||||
dupe_key(&mut target_ini, section, old, new).unwrap();
|
||||
}
|
||||
Command::RemoveKey {
|
||||
ref section,
|
||||
ref key,
|
||||
@@ -302,12 +324,21 @@ fn main() {
|
||||
move_key(&mut reference_ini, old, new, key).unwrap();
|
||||
}
|
||||
Command::CopyKey {
|
||||
// between sections
|
||||
ref old,
|
||||
ref new,
|
||||
ref key,
|
||||
} => {
|
||||
copy_key(&mut reference_ini, old, new, key).unwrap();
|
||||
}
|
||||
Command::DupeKey {
|
||||
// Inside a section, preserving a value
|
||||
ref section,
|
||||
ref old,
|
||||
ref new,
|
||||
} => {
|
||||
dupe_key(&mut reference_ini, section, old, new).unwrap();
|
||||
}
|
||||
Command::RemoveKey {
|
||||
ref section,
|
||||
ref key,
|
||||
|
||||
@@ -116,7 +116,30 @@ impl Section {
|
||||
self.insert_line_if_missing(&line);
|
||||
} else {
|
||||
let name = &self.name;
|
||||
println!("didn't find a line starting with {prefix} in section {name}");
|
||||
println!("rename_key: didn't find a line starting with {prefix} in section {name}");
|
||||
}
|
||||
}
|
||||
|
||||
pub fn dupe_key(&mut self, old: &str, new: &str) {
|
||||
let prefix = old.to_owned() + " =";
|
||||
let mut found_index = None;
|
||||
for (index, line) in self.lines.iter().enumerate() {
|
||||
if line.starts_with(&prefix) {
|
||||
found_index = Some(index);
|
||||
}
|
||||
}
|
||||
if let Some(index) = found_index {
|
||||
let line = self.lines.get(index).unwrap();
|
||||
let mut right_part = line.strip_prefix(&prefix).unwrap().to_string();
|
||||
if right_part.trim() == old.trim() {
|
||||
// Was still untranslated - replace the translation too.
|
||||
right_part = format!(" {}", new);
|
||||
}
|
||||
let line = new.to_owned() + " =" + &right_part;
|
||||
self.insert_line_if_missing(&line);
|
||||
} else {
|
||||
let name = &self.name;
|
||||
println!("dupe_key: didn't find a line starting with {prefix} in section {name}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+7
-7
@@ -195,7 +195,7 @@ EmuScreen::EmuScreen(const Path &filename)
|
||||
// Make sure we don't leave it at powerdown after the last game.
|
||||
// TODO: This really should be handled elsewhere if it isn't.
|
||||
if (coreState == CORE_POWERDOWN)
|
||||
coreState = CORE_STEPPING;
|
||||
coreState = CORE_STEPPING_CPU;
|
||||
|
||||
OnDevMenu.Handle(this, &EmuScreen::OnDevTools);
|
||||
OnChatMenu.Handle(this, &EmuScreen::OnChat);
|
||||
@@ -678,7 +678,7 @@ void EmuScreen::onVKey(int virtualKeyCode, bool down) {
|
||||
break;
|
||||
case VIRTKEY_FASTFORWARD:
|
||||
if (down) {
|
||||
if (coreState == CORE_STEPPING) {
|
||||
if (coreState == CORE_STEPPING_CPU) {
|
||||
Core_Resume();
|
||||
}
|
||||
PSP_CoreParameter().fastForward = true;
|
||||
@@ -1261,7 +1261,7 @@ UI::EventReturn EmuScreen::OnResume(UI::EventParams ¶ms) {
|
||||
if (coreState == CoreState::CORE_RUNTIME_ERROR) {
|
||||
// Force it!
|
||||
Memory::MemFault_IgnoreLastCrash();
|
||||
coreState = CoreState::CORE_RUNNING;
|
||||
coreState = CoreState::CORE_RUNNING_CPU;
|
||||
}
|
||||
return UI::EVENT_DONE;
|
||||
}
|
||||
@@ -1566,10 +1566,10 @@ ScreenRenderFlags EmuScreen::render(ScreenRenderMode mode) {
|
||||
switch (coreState) {
|
||||
case CORE_NEXTFRAME:
|
||||
// Reached the end of the frame, all good. Set back to running for the next frame
|
||||
coreState = CORE_RUNNING;
|
||||
coreState = CORE_RUNNING_CPU;
|
||||
flags |= ScreenRenderFlags::HANDLED_THROTTLING;
|
||||
break;
|
||||
case CORE_STEPPING:
|
||||
case CORE_STEPPING_CPU:
|
||||
case CORE_RUNTIME_ERROR:
|
||||
{
|
||||
// If there's an exception, display information.
|
||||
@@ -1719,7 +1719,7 @@ bool EmuScreen::hasVisibleUI() {
|
||||
return true;
|
||||
|
||||
// Exception information.
|
||||
if (coreState == CORE_RUNTIME_ERROR || coreState == CORE_STEPPING) {
|
||||
if (coreState == CORE_RUNTIME_ERROR || coreState == CORE_STEPPING_CPU) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1784,7 +1784,7 @@ void EmuScreen::renderUI() {
|
||||
ctx->Flush();
|
||||
}
|
||||
|
||||
if (coreState == CORE_RUNTIME_ERROR || coreState == CORE_STEPPING) {
|
||||
if (coreState == CORE_RUNTIME_ERROR || coreState == CORE_STEPPING_CPU) {
|
||||
const MIPSExceptionInfo &info = Core_GetExceptionInfo();
|
||||
if (info.type != MIPSExceptionType::NONE) {
|
||||
DrawCrashDump(ctx, gamePath_);
|
||||
|
||||
+2
-2
@@ -47,7 +47,7 @@ void GamepadUpdateOpacity(float force) {
|
||||
g_gamepadOpacity = force;
|
||||
return;
|
||||
}
|
||||
if (coreState != CORE_RUNNING) {
|
||||
if (coreState != CORE_RUNNING_CPU) {
|
||||
g_gamepadOpacity = 0.0f;
|
||||
return;
|
||||
}
|
||||
@@ -921,7 +921,7 @@ UI::ViewGroup *CreatePadLayout(float xres, float yres, bool *pause, bool showPau
|
||||
if (fastForward) {
|
||||
fastForward->SetAngle(180.0f);
|
||||
fastForward->OnChange.Add([](UI::EventParams &e) {
|
||||
if (e.a && coreState == CORE_STEPPING) {
|
||||
if (e.a && coreState == CORE_STEPPING_CPU) {
|
||||
Core_Resume();
|
||||
}
|
||||
return UI::EVENT_DONE;
|
||||
|
||||
@@ -753,7 +753,7 @@ void ImDebugger::Frame(MIPSDebugInterface *mipsDebug, GPUDebugInterface *gpuDebu
|
||||
|
||||
if (ImGui::BeginMainMenuBar()) {
|
||||
if (ImGui::BeginMenu("Debug")) {
|
||||
if (coreState == CoreState::CORE_STEPPING) {
|
||||
if (coreState == CoreState::CORE_STEPPING_CPU) {
|
||||
if (ImGui::MenuItem("Run")) {
|
||||
Core_Resume();
|
||||
}
|
||||
@@ -821,6 +821,7 @@ void ImDebugger::Frame(MIPSDebugInterface *mipsDebug, GPUDebugInterface *gpuDebu
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
if (ImGui::BeginMenu("Graphics")) {
|
||||
ImGui::MenuItem("Ge Debugger", nullptr, &cfg_.geDebuggerOpen);
|
||||
ImGui::MenuItem("Display Output", nullptr, &cfg_.displayOpen);
|
||||
ImGui::MenuItem("Textures", nullptr, &cfg_.texturesOpen);
|
||||
ImGui::MenuItem("Framebuffers", nullptr, &cfg_.framebuffersOpen);
|
||||
@@ -919,6 +920,10 @@ void ImDebugger::Frame(MIPSDebugInterface *mipsDebug, GPUDebugInterface *gpuDebu
|
||||
if (cfg_.structViewerOpen) {
|
||||
structViewer_.Draw(mipsDebug, &cfg_.structViewerOpen);
|
||||
}
|
||||
|
||||
if (cfg_.geDebuggerOpen) {
|
||||
DrawGeDebuggerWindow(cfg_);
|
||||
}
|
||||
}
|
||||
|
||||
void ImDisasmWindow::Draw(MIPSDebugInterface *mipsDebug, bool *open, CoreState coreState) {
|
||||
@@ -945,19 +950,25 @@ void ImDisasmWindow::Draw(MIPSDebugInterface *mipsDebug, bool *open, CoreState c
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::BeginDisabled(coreState != CORE_STEPPING);
|
||||
if (coreState == CORE_STEPPING_GE || coreState == CORE_RUNNING_GE) {
|
||||
ImGui::Text("!!! Currently stepping the Ge. See that window (when implemented)");
|
||||
}
|
||||
|
||||
ImGui::BeginDisabled(coreState != CORE_STEPPING_CPU);
|
||||
if (ImGui::SmallButton("Run")) {
|
||||
Core_Resume();
|
||||
}
|
||||
ImGui::EndDisabled();
|
||||
|
||||
ImGui::SameLine();
|
||||
ImGui::BeginDisabled(coreState != CORE_RUNNING);
|
||||
ImGui::BeginDisabled(coreState != CORE_RUNNING_CPU);
|
||||
if (ImGui::SmallButton("Pause")) {
|
||||
Core_Break("Pause");
|
||||
}
|
||||
ImGui::EndDisabled();
|
||||
|
||||
ImGui::BeginDisabled(coreState != CORE_STEPPING_CPU);
|
||||
|
||||
ImGui::SameLine();
|
||||
if (ImGui::SmallButton("Step Into")) {
|
||||
u32 stepSize = disasmView_.getInstructionSizeAt(mipsDebug->GetPC());
|
||||
@@ -975,6 +986,8 @@ void ImDisasmWindow::Draw(MIPSDebugInterface *mipsDebug, bool *open, CoreState c
|
||||
Core_RequestSingleStep(CPUStepType::Out, 0);
|
||||
}
|
||||
|
||||
ImGui::EndDisabled();
|
||||
|
||||
ImGui::SameLine();
|
||||
if (ImGui::SmallButton("Goto PC")) {
|
||||
disasmView_.gotoPC();
|
||||
|
||||
@@ -78,6 +78,7 @@ struct ImConfig {
|
||||
bool kernelObjectsOpen;
|
||||
bool audioChannelsOpen;
|
||||
bool debugStatsOpen;
|
||||
bool geDebuggerOpen;
|
||||
|
||||
// HLE explorer settings
|
||||
// bool filterByUsed = true;
|
||||
|
||||
@@ -68,3 +68,15 @@ void DrawDebugStatsWindow(ImConfig &cfg) {
|
||||
ImGui::TextUnformatted(statbuf);
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
// Stub
|
||||
void DrawGeDebuggerWindow(ImConfig &cfg) {
|
||||
if (!ImGui::Begin("Debug Stats", &cfg.geDebuggerOpen)) {
|
||||
ImGui::End();
|
||||
return;
|
||||
}
|
||||
|
||||
gpu->DrawImGuiDebugger();
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
@@ -11,6 +11,7 @@ void DrawFramebuffersWindow(ImConfig &cfg, FramebufferManagerCommon *framebuffer
|
||||
void DrawTexturesWindow(ImConfig &cfg, TextureCacheCommon *textureCache);
|
||||
void DrawDisplayWindow(ImConfig &cfg, FramebufferManagerCommon *framebufferManager);
|
||||
void DrawDebugStatsWindow(ImConfig &cfg);
|
||||
void DrawGeDebuggerWindow(ImConfig &cfg);
|
||||
|
||||
class ImGeDebugger {
|
||||
public:
|
||||
|
||||
@@ -164,7 +164,7 @@ void InstallZipScreen::CreateViews() {
|
||||
leftColumn->Add(new TextView(iz->T("Zip file does not contain PSP software"), ALIGN_LEFT, false, new AnchorLayoutParams(10, 10, NONE, NONE)));
|
||||
}
|
||||
} else {
|
||||
leftColumn->Add(new TextView(er->T("Error reading file"), ALIGN_LEFT, false, new AnchorLayoutParams(10, 10, NONE, NONE)));
|
||||
leftColumn->Add(new TextView(er->T("The file is not a valid zip file"), ALIGN_LEFT, false, new AnchorLayoutParams(10, 10, NONE, NONE)));
|
||||
}
|
||||
|
||||
if (destFolders_.size() > 1) {
|
||||
|
||||
+1
-1
@@ -993,7 +993,7 @@ static void TakeScreenshot(Draw::DrawContext *draw) {
|
||||
|
||||
bool success = TakeGameScreenshot(draw, filename, g_Config.bScreenshotsAsPNG ? ScreenshotFormat::PNG : ScreenshotFormat::JPG, SCREENSHOT_OUTPUT);
|
||||
if (success) {
|
||||
g_OSD.Show(OSDType::MESSAGE_FILE_LINK, filename.ToString(), 0.0f, "screenshot_link");
|
||||
g_OSD.Show(OSDType::MESSAGE_FILE_LINK, filename.ToVisualString(), 0.0f, "screenshot_link");
|
||||
if (System_GetPropertyBool(SYSPROP_CAN_SHOW_FILE)) {
|
||||
g_OSD.SetClickCallback("screenshot_link", [](bool clicked, void *data) -> void {
|
||||
Path *path = reinterpret_cast<Path *>(data);
|
||||
|
||||
@@ -133,13 +133,13 @@ bool RunTests() {
|
||||
INFO_LOG(Log::System, "Test: Entering runloop.");
|
||||
while (true) {
|
||||
int blockTicks = (int)usToCycles(1000000 / 10);
|
||||
while (coreState == CORE_RUNNING) {
|
||||
while (coreState == CORE_RUNNING_CPU) {
|
||||
PSP_RunLoopFor(blockTicks);
|
||||
}
|
||||
// Hopefully coreState is now CORE_NEXTFRAME
|
||||
if (coreState == CORE_NEXTFRAME) {
|
||||
// set back to running for the next frame
|
||||
coreState = CORE_RUNNING;
|
||||
coreState = CORE_RUNNING_CPU;
|
||||
} else if (coreState == CORE_POWERDOWN) {
|
||||
INFO_LOG(Log::System, "Finished running test %s", testName.c_str());
|
||||
break;
|
||||
|
||||
@@ -517,6 +517,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = خطأ في قرأة الملف.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = هذا ملف التخزين،ليست لعبة.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = The file is not a valid zip file
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = Грешка при четенето на файла.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = error reading file.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Zašifrování uložené hry selhalo. Tato uložená hra nebude fungovat na skutečném PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = Chyba při čtení souboru.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Nelze vytvořit soubor s cheaty, disk může být plný.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Kører langsomt: prøv
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = Fejl ved læsning af fil.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Ikke muligt at oprette snydefil, disken kan være fuld.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Schlechte Bildrate: Ben
|
||||
Running slow: Try turning off Software Rendering = Schlechte Bildrate: Versuchen Sie "Software Rendering" auszuschalten
|
||||
Save encryption failed. This save won't work on real PSP = Speicherstand-Verschlüsselung fehlgeschlagen. Diese Speicherstand wird nicht auf einer echten PSP funktionieren.
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" Dateinamen sind eventuell nicht plattformübergreifend.
|
||||
The file is not a valid zip file = Fehler beim Lesen der Datei.
|
||||
This is a saved state, not a game. = Dies ist kein Spiel sondern ein Speicherstand.
|
||||
This is save data, not a game. = Dies ist kein Spiel sondern Speicherdaten.
|
||||
Unable to create cheat file, disk may be full = Cheatdatei konnte nicht geschrieben werden, eventuell volle Festplatte.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = erormi te' fail mane.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -533,6 +533,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = Error reading file.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Funcionando lento: prue
|
||||
Running slow: Try turning off Software Rendering = Funcionando lento: prueba a desactivar el renderizado por software.
|
||||
Save encryption failed. This save won't work on real PSP = Error al cifrar los datos guardados. No funcionarán en una PSP real.
|
||||
textures.ini filenames may not be cross-platform = Los nombres del archivo textures.ini no pueden ser multiplataforma.
|
||||
The file is not a valid zip file = Error al leer el archivo.
|
||||
This is a saved state, not a game. = Esto es un estado de guardado, no un juego.
|
||||
This is save data, not a game. = Esto es un dato de guardado, no un juego.
|
||||
Unable to create cheat file, disk may be full = No se pudo crear el archivo de trucos, el dico podría estar lleno.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Se ejecuta lento: Inten
|
||||
Running slow: Try turning off Software Rendering = Se ejecuta lento: Intenta desactivar renderizado por software.
|
||||
Save encryption failed. This save won't work on real PSP = Falló al encriptar los datos guardados. No funcionarán en una PSP real.
|
||||
textures.ini filenames may not be cross-platform = Los nombres del archivo textures.ini pueden no ser multiplataforma.
|
||||
The file is not a valid zip file = Error al leer el archivo.
|
||||
This is a saved state, not a game. = Este es un estado guardado en vez de un juego.
|
||||
This is save data, not a game. = Esta es una carpeta de datos guardado en vez de un juego.
|
||||
Unable to create cheat file, disk may be full = No se pudo crear el archivo de trucos, el disco podría estar lleno.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = اجرای آهسته:
|
||||
Running slow: Try turning off Software Rendering = اجرای آهسته: خاموش کردن «رندر نرمافزاری» را امتحان کنید
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = .خطا در خواندن فایل
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = The file is not a valid zip file
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Exécution lente : Essa
|
||||
Running slow: Try turning off Software Rendering = Exécution lente : Essayez de désactiver "rendu logiciel"
|
||||
Save encryption failed. This save won't work on real PSP = Chiffrement de la sauvegarde échoué. Cette sauvegarde ne fonctionnera pas sur une PSP.
|
||||
textures.ini filenames may not be cross-platform = Les noms des fichiers "textures.ini" peuvent ne pas être multiplateformes.
|
||||
The file is not a valid zip file = Erreur lors de la lecture du fichier.
|
||||
This is a saved state, not a game. = Ceci est un état sauvegardé, pas un jeu.
|
||||
This is save data, not a game. = Ceci est une sauvegarde, pas un jeu.
|
||||
Unable to create cheat file, disk may be full = Impossible de créer le fichier de codes de triche, le disque dur est peut-être plein.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Erro ó cifrar os datos gardados. Non funcionarán nunha PSP real.
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = Erro o ler o arquivo
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Non se puido crear o arquivo de trucos, o disco podería estar cheo.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Αργή εξομοίω
|
||||
Running slow: Try turning off Software Rendering = Αργή εξομοίωση: δοκιμάστε να απενεργοποιήσετε την "απόδοση λογισμικού"
|
||||
Save encryption failed. This save won't work on real PSP = Αποτυχία κρυπτογράφησης του αρχείου αποθήκευσης. Αυτό το αρχείο δέν θα δουλέψει σε ένα πραγματικό PSP
|
||||
textures.ini filenames may not be cross-platform = Τα όνοματα αρχείων "textures.ini" ενδέχεται να μην είναι cross-platform.
|
||||
The file is not a valid zip file = Σφάλμα ανάγνωσης αρχείου.
|
||||
This is a saved state, not a game. = Αυτό είναι ένα σημείου αποθήκευσης, όχι παιχνίδι.
|
||||
This is save data, not a game. = Αυτό είναι ένα αρχείο αποθήκευσης, όχι παιχνίδι.
|
||||
Unable to create cheat file, disk may be full = Αδυναμία δημιουργίας αρχείου cheat, Ο δίσκος ενδέχεται να είναι γεμάτος.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = קריאת קובץ נכשלה.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = .הלשכנ ץבוק תאירק
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Trenutno sporo: probaj
|
||||
Running slow: Try turning off Software Rendering = Trenutno sporo: probaj isključiti "žbukanje softvera"
|
||||
Save encryption failed. This save won't work on real PSP = Greška u šifriranju save-a. Ovaj save nece raditi na pravom PSP-u
|
||||
textures.ini filenames may not be cross-platform = Nazivi "textures.ini" datoteke možda neće biti cross-platform.
|
||||
The file is not a valid zip file = Greška tijekom čitanja datoteke.
|
||||
This is a saved state, not a game. = Ovo je spremljen state, ne igra.
|
||||
This is save data, not a game. = Ovo je save data, ne igra.
|
||||
Unable to create cheat file, disk may be full = Nije moguće kreirati cheat datoteku, disk je možda pun.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Lassú futás észlelve
|
||||
Running slow: Try turning off Software Rendering = Lassú futás észlelve: próbáld kikapcoslni a "Szoftveres Renderelést"!
|
||||
Save encryption failed. This save won't work on real PSP = Mentés titkosítás sikertelen. A mentés nem fog működni egy valódi PSP-n.
|
||||
textures.ini filenames may not be cross-platform = A "textures.ini" fájlnevek nem lehetnek platformfüggetlenek.
|
||||
The file is not a valid zip file = Fájl olvasási hiba.
|
||||
This is a saved state, not a game. = Ez egy állapotmentés, nem egy játék.
|
||||
This is save data, not a game. = Ez egy mentés, nem egy játék.
|
||||
Unable to create cheat file, disk may be full = Csalás fájl létrehozása sikertelen, talán megtelt a lemez.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Berjalan lambat: coba l
|
||||
Running slow: Try turning off Software Rendering = Berjalan lambat: coba matikan "Pelukisan perangkat lunak"
|
||||
Save encryption failed. This save won't work on real PSP = Enkripsi simpanan gagal. Simpanan ini tidak akan bekerja pada PSP asli.
|
||||
textures.ini filenames may not be cross-platform = Nama berkas "textures.ini" tidak boleh lintas platform.
|
||||
The file is not a valid zip file = Kesalahan saat membaca berkas.
|
||||
This is a saved state, not a game. = Ini adalah status yang disimpan, bukan permainan.
|
||||
This is save data, not a game. = Ini adalah simpanan data, bukan permainan.
|
||||
Unable to create cheat file, disk may be full = Tidak dapat membuat berkas pengecoh, penyimpanan mungkin penuh.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Emulazione lenta: prova
|
||||
Running slow: Try turning off Software Rendering = Emulazione lenta: prova a disattivare "rendering software"
|
||||
Save encryption failed. This save won't work on real PSP = Criptazione salvataggio fallita. Questo salvataggio non funzionerà su una PSP reale
|
||||
textures.ini filenames may not be cross-platform = I nomi dei file "textures.ini" potrebbero non essere multi-piattaforma.
|
||||
The file is not a valid zip file = Errore nella Lettura del File.
|
||||
This is a saved state, not a game. = Questo è uno stato salvato, non un gioco.
|
||||
This is save data, not a game. = Questi sono dati salvati, non un gioco.
|
||||
Unable to create cheat file, disk may be full = Impossibile creare il file cheat, il disco potrebbe essere pieno.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = 低速です: フレー
|
||||
Running slow: Try turning off Software Rendering = 低速です: 「ソフトウェアレンダリング」を無効にしてみてください
|
||||
Save encryption failed. This save won't work on real PSP = 暗号化セーブに失敗しました。このセーブはPSP実機では使えません
|
||||
textures.ini filenames may not be cross-platform = textures.ini のファイル名がクロスプラットフォーム向けではないかもしれません
|
||||
The file is not a valid zip file = ファイルを読み込めません。
|
||||
This is a saved state, not a game. = これはセーブステートです。ゲームではありません。
|
||||
This is save data, not a game. = これはセーブデータです。ゲームではありません。
|
||||
Unable to create cheat file, disk may be full = チートファイルを作成できません。ディスクが一杯のようです。
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Simpenan terenkripsi gagal. Simpenan iki ora dapat berfungsi ing PSP asli.
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = Galat nalika maca berkas.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = ora dapat ngawe berkas cheat, penyimpenan lengkap.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = 느리게 실행: 프
|
||||
Running slow: Try turning off Software Rendering = 느리게 실행: "소프트웨어 렌더링" 끄기 시도
|
||||
Save encryption failed. This save won't work on real PSP = 저장 암호화에 실패했습니다. 이 저장은 실제 PSP에서 작동하지 않습니다.
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" 파일 이름은 크로스 플랫폼이 아닐 수 있습니다.
|
||||
The file is not a valid zip file = 파일 읽기 오류입니다.
|
||||
This is a saved state, not a game. = 이것은 게임이 아닌 저장된 상태입니다.
|
||||
This is save data, not a game. = 이것은 게임이 아닌 세이브 데이터입니다.
|
||||
Unable to create cheat file, disk may be full = 치트 파일을 생성할 수 없습니다. 디스크가 가득 찼을 수 있습니다.
|
||||
|
||||
@@ -523,6 +523,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = The file is not a valid zip file
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = ເກມເປີດ
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = ການບັນທຶກແບບເຂົ້າລະຫັດລົ້ມເຫຼວ. ເຊບນີ້ບໍ່ສາມາດນຳໄປໃຊ້ກັບເຄື່ອງ PSP ແທ້ໆໄດ້
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = ເກີດຂໍ້ຜິດພາດໃນການອ່ານໄຟລ໌
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = ບໍ່ສາມາດສ້າງໄຟລ໌ສູດໂກງ, ພື້ນທີ່ອາດຈະເຕັມ.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = Klaida skaitant failą.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = Pembacaan fail bermasalah.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Trage prestaties: probe
|
||||
Running slow: Try turning off Software Rendering = Trage prestaties: probeer "Renderen via software" uit te schakelen
|
||||
Save encryption failed. This save won't work on real PSP = Versleutelen van savedata mislukt. De savedata zal\nniet werken op echte PSP-systemen.
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = Kan het bestand niet lezen.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Kon het cheatbestand niet aanmaken, wellicht is de schijf vol.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = The file is not a valid zip file
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Unable to create cheat file, disk may be full.
|
||||
|
||||
@@ -511,6 +511,7 @@ Running slow: Wolne działanie: spróbuj pomijania klatek, dźwięk zacina przy
|
||||
Running slow: Wolne działanie: spróbuj wyłączyć "Renderowanie programowe"
|
||||
Save encryption failed. This save won't work on real PSP = Nie można zaszyfrować pliku zapisu gry. Ten zapis gry nie zadziała na prawdziwym PSP.
|
||||
textures.ini filenames may not be cross-platform = Nazwy plików w "textures.ini" mogą nie być kompatybilne między platformami.
|
||||
The file is not a valid zip file = Błąd podczas odczytywania pliku.
|
||||
This is a saved state, not a game. = To jest zapis stanu, a nie gra.
|
||||
This is save data, not a game. = To jest zapis gry, a nie gra.
|
||||
Unable to create cheat file, disk may be full = Nie można utworzyć pliku kodów, dysk może być już zapełniony.
|
||||
|
||||
@@ -533,6 +533,7 @@ Running slow: try frameskip, sound is choppy when slow = Rodando lento: tente o
|
||||
Running slow: Try turning off Software Rendering = Rodando lento: Tente desligar a "renderização por software"
|
||||
Save encryption failed. This save won't work on real PSP = Falhou em encriptar o save. Este save não funcionará num PSP de verdade
|
||||
textures.ini filenames may not be cross-platform = Os nomes dos arquivos em "textures.ini" podem não ser multi-plataforma.
|
||||
The file is not a valid zip file = Erro ao ler o arquivo.
|
||||
This is a saved state, not a game. = Este é um state salvo, não um jogo.
|
||||
This is save data, not a game. = Isto são dados do save, não um jogo.
|
||||
Unable to create cheat file, disk may be full = Incapaz de criar arquivo de trapaça. O disco pode estar cheio.
|
||||
|
||||
@@ -533,6 +533,7 @@ Running slow: try frameskip, sound is choppy when slow = Rodando lento: Tenta "f
|
||||
Running slow: Try turning off Software Rendering = Rodando lento: Tenta desativar a "Renderização por Software"
|
||||
Save encryption failed. This save won't work on real PSP = Erro ao encriptar o salvamento. Este salvamento não funcionará num PSP.
|
||||
textures.ini filenames may not be cross-platform = Os nomes dos ficheiros em "textures.ini" podem não ser multi-plataforma.
|
||||
The file is not a valid zip file = Erro ao ler o ficheiro.
|
||||
This is a saved state, not a game. = Este é um estado salvo, não um jogo.
|
||||
This is save data, not a game. = Isto são dados salvos, não um jogo.
|
||||
Unable to create cheat file, disk may be full = Não foi possível criar um ficheiro de Cheat. O disco poderá estar cheio.
|
||||
|
||||
@@ -510,6 +510,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Încodarea salvării ratată. Această salvare nu va funcționa pe un PSP real.
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = Eroare la citire fișier.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = This is save data, not a game.
|
||||
Unable to create cheat file, disk may be full = Imposibil de creat fișier trișare, diskul poate fi plin.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Медленная ра
|
||||
Running slow: Try turning off Software Rendering = Медленная работа: попробуйте отключить "программный рендеринг"
|
||||
Save encryption failed. This save won't work on real PSP = Кодирование сохранения не удалось. Этот файл не будет работать на PSP
|
||||
textures.ini filenames may not be cross-platform = Имена файлов в "textures.ini" могут работать не на всех платформах.
|
||||
The file is not a valid zip file = Ошибка при чтении файла.
|
||||
This is a saved state, not a game. = Это — сохраненное состояние, а не игра.
|
||||
This is save data, not a game. = Это — данные сохранения, а не игра.
|
||||
Unable to create cheat file, disk may be full = Не удалось создать файл читов: не хватает места.
|
||||
|
||||
@@ -510,6 +510,7 @@ Running slow: try frameskip, sound is choppy when slow = Running slow: try frame
|
||||
Running slow: Try turning off Software Rendering = Running slow: try turning off "software rendering"
|
||||
Save encryption failed. This save won't work on real PSP = Save encryption failed. This save won't work on real PSP
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" filenames may not be cross-platform.
|
||||
The file is not a valid zip file = Filen är inte en zip-fil.
|
||||
This is a saved state, not a game. = Detta är ett sparat state, inte ett spel.
|
||||
This is save data, not a game. = Detta är sparad data, inte ett spel.
|
||||
Unable to create cheat file, disk may be full = Kunde inte skapa fusk-file, disk full?
|
||||
|
||||
@@ -510,6 +510,7 @@ Running slow: try frameskip, sound is choppy when slow = Hindi kinakaya tumakbo
|
||||
Running slow: Try turning off Software Rendering = Hindi kinakaya tumakbo ng maayos: subukan patayin ang "software rendering".
|
||||
Save encryption failed. This save won't work on real PSP = Pumalya ang enkripsiyon ng sineyb. Itong sineyb ay hindi gagana sa totoong PSP
|
||||
textures.ini filenames may not be cross-platform = Maaaring hindi cross-platform ang mga filename sa loob ng "textures.ini."
|
||||
The file is not a valid zip file = Mali sa pagbasa ng file
|
||||
This is a saved state, not a game. = Ito ay isang naka-save na estado, hindi isang laro.
|
||||
This is save data, not a game. = Ito ay isang naka-save na datos, hindi isang laro.
|
||||
Unable to create cheat file, disk may be full = Hindi maka-create ng cheat file, baka ang disk ay puno na.
|
||||
|
||||
@@ -519,6 +519,7 @@ Running slow: try frameskip, sound is choppy when slow = เกมรันช
|
||||
Running slow: Try turning off Software Rendering = เกมรันช้า: ให้ลองปิดการทำงาน "ใช้ซอฟท์แวร์ในการแสดงผล"
|
||||
Save encryption failed. This save won't work on real PSP = การบันทึกข้อมูลแบบเข้ารหัสล้มเหลว เซฟนี้ไม่สามารถนำไปใช้งานบนเครื่อง PSP ได้
|
||||
textures.ini filenames may not be cross-platform = ชื่อของเท็คเจอร์ที่อยู่ในไฟล์ textures.ini อาจจะใช้ไม่ได้ทุกแพลตฟอร์ม
|
||||
The file is not a valid zip file = เกิดข้อผิดพลาดในการอ่านไฟล์
|
||||
This is a saved state, not a game. = นี่คือข้อมูลเซฟเตท, ไม่ใช่เกมนะจ้ะ
|
||||
This is save data, not a game. = นี่คือข้อมูลเซฟ, ไม่ใช่เกมนะจ้ะ
|
||||
Unable to create cheat file, disk may be full = ไม่สามารถสร้างไฟล์สูตรโกงได้, เนื่องจากดิสก์เต็ม
|
||||
|
||||
@@ -511,6 +511,7 @@ Running slow: try frameskip, sound is choppy when slow = Yavaş çalışıyor :
|
||||
Running slow: Try turning off Software Rendering = Yavaş çalışıyor: Yazılımsal işlemeyi kapamayı deneyin.
|
||||
Save encryption failed. This save won't work on real PSP = Kayıt şifrelemesi başarısız oldu. Bu kayıt PSP'de çalışmayacak
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" dosya adları çapraz platform olmayabilir.
|
||||
The file is not a valid zip file = Dosya okumada hata.
|
||||
This is a saved state, not a game. = Bu bir durum kaydı, bir oyun değil
|
||||
This is save data, not a game. = Bu bir kayıt dosyası, bir oyun değil.
|
||||
Unable to create cheat file, disk may be full = Hile dosyası oluşturulamadı, belki de disk doludur.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: спробуйте пропуск кадрів, звук пори
|
||||
Running slow: Спробуйте вимкнути програмний рендеринг = Повільна робота: спробуйте вимкнути "програмний рендеринг"
|
||||
Save encryption failed. This save won't work on real PSP = Не вдалося зберегти шифрування. Це збереження не буде працювати на реальному PSP
|
||||
textures.ini filenames may not be cross-platform = Імена файлів в"textures.ini" можуть працювати не на всіх платформах.
|
||||
The file is not a valid zip file = Помилка при читанні файлу.
|
||||
This is a saved state, not a game. = Це - збережений стан, а не гра.
|
||||
This is save data, not a game. = Це - збережені дані, а не гра.
|
||||
Unable to create cheat file, disk may be full = Неможливо створити чит-файлів: диск переповнено.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = Chạy chậm: thử nh
|
||||
Running slow: Try turning off Software Rendering = Chạy chậm: thử tắt "kết xuất phần mềm"
|
||||
Save encryption failed. This save won't work on real PSP = Lưu file save mã hóa thất bại. File save này không thể hoạt động trên máy PSP thật
|
||||
textures.ini filenames may not be cross-platform = "textures.ini" không phải nền tảng nào cũng hỗ trợ tên file này.
|
||||
The file is not a valid zip file = có lỗi khi đọc file.
|
||||
This is a saved state, not a game. = This is a saved state, not a game.
|
||||
This is save data, not a game. = Đây là một trạng thái được lưu, không phải là một trò chơi.
|
||||
Unable to create cheat file, disk may be full = Không thể tạo file cheat, ổ cứng của bạn có thể bị đầy.
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = 运行速度慢:可
|
||||
Running slow: Try turning off Software Rendering = 运行速度慢:可以尝试关闭软件渲染
|
||||
Save encryption failed. This save won't work on real PSP = 存档加密失败。此存档将无法在PSP实机使用
|
||||
textures.ini filenames may not be cross-platform = “textures.ini”文件名可能不是多平台的。
|
||||
The file is not a valid zip file = 读取文件时出错。
|
||||
This is a saved state, not a game. = 这是一个即时存档,不是游戏。
|
||||
This is save data, not a game. = 这是一个存档,不是游戏。
|
||||
Unable to create cheat file, disk may be full = 无法创建金手指文件,磁盘可能已满
|
||||
|
||||
@@ -509,6 +509,7 @@ Running slow: try frameskip, sound is choppy when slow = 執行速度緩慢:
|
||||
Running slow: Try turning off Software Rendering = 執行速度緩慢:嘗試關閉「軟體轉譯」
|
||||
Save encryption failed. This save won't work on real PSP = 存檔加密失敗,這個存檔將無法在真實 PSP 中運作
|
||||
textures.ini filenames may not be cross-platform = 「textures.ini」檔案名稱可能無法跨平台
|
||||
The file is not a valid zip file = 無法讀取檔案
|
||||
This is a saved state, not a game. = 這是一個存檔,並非遊戲
|
||||
This is save data, not a game. = 這是一個存檔資料,並非遊戲
|
||||
Unable to create cheat file, disk may be full = 無法建立密技檔案,磁碟可能已滿
|
||||
|
||||
@@ -241,18 +241,18 @@ bool RunAutoTest(HeadlessHost *headlessHost, CoreParameter &coreParameter, const
|
||||
|
||||
bool passed = true;
|
||||
double deadline = time_now_d() + opt.timeout;
|
||||
coreState = coreParameter.startBreak ? CORE_STEPPING : CORE_RUNNING;
|
||||
while (coreState == CORE_RUNNING || coreState == CORE_STEPPING)
|
||||
coreState = coreParameter.startBreak ? CORE_STEPPING_CPU : CORE_RUNNING_CPU;
|
||||
while (coreState == CORE_RUNNING_CPU || coreState == CORE_STEPPING_CPU)
|
||||
{
|
||||
int blockTicks = (int)usToCycles(1000000 / 10);
|
||||
PSP_RunLoopFor(blockTicks);
|
||||
|
||||
// If we were rendering, this might be a nice time to do something about it.
|
||||
if (coreState == CORE_NEXTFRAME) {
|
||||
coreState = CORE_RUNNING;
|
||||
coreState = CORE_RUNNING_CPU;
|
||||
headlessHost->SwapBuffers();
|
||||
}
|
||||
if (coreState == CORE_STEPPING && !coreParameter.startBreak) {
|
||||
if (coreState == CORE_STEPPING_CPU && !coreParameter.startBreak) {
|
||||
break;
|
||||
}
|
||||
if (time_now_d() > deadline) {
|
||||
|
||||
@@ -1354,7 +1354,7 @@ namespace Libretro
|
||||
|
||||
gpu->BeginHostFrame();
|
||||
|
||||
coreState = CORE_RUNNING;
|
||||
coreState = CORE_RUNNING_CPU;
|
||||
PSP_RunLoopUntil(UINT64_MAX);
|
||||
|
||||
gpu->EndHostFrame();
|
||||
|
||||
@@ -69,9 +69,9 @@ double ExecCPUTest(bool clearCache = true) {
|
||||
do {
|
||||
for (int j = 0; j < 1000; ++j) {
|
||||
currentMIPS->pc = PSP_GetUserMemoryBase();
|
||||
coreState = CORE_RUNNING;
|
||||
coreState = CORE_RUNNING_CPU;
|
||||
|
||||
while (coreState == CORE_RUNNING) {
|
||||
while (coreState == CORE_RUNNING_CPU) {
|
||||
mipsr4k.RunLoopUntil(blockTicks);
|
||||
}
|
||||
++total;
|
||||
|
||||
Reference in new issue
Block a user