Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Can't cleanly switch games. #63

Open
archanox opened this issue Jul 9, 2012 · 2 comments
Open

Can't cleanly switch games. #63

archanox opened this issue Jul 9, 2012 · 2 comments
Labels

Comments

@archanox
Copy link
Collaborator

archanox commented Jul 9, 2012

If a game has crashed, it's almost impossible to run a new game.

Also, when trying to start a new game, it is not possible to bring up the game list.

@SsJVasto
Copy link

SsJVasto commented Jul 9, 2012

Yeah, I've seen that issue as well... Started thinking it is probably the Thread Management that's having troubles, since csPspEmu doesn't seem to know what to do with a "return 0;" at the end of a main() thread... Maybe that's why there is the "sceKernelExitGame()" function in the PSPSDK (I guess that function kills the Callback threads, which main() doesn't do, and which will never happen if the game crashes)...

@soywiz
Copy link
Member

soywiz commented Jul 24, 2012

Uhm. I will check this. This is an issue that I'm concerned about.
I think that programs that doesn't use the GE can be switched without any issue, so maybe one of the problems are related to the GPU.
And about the crash issue... Yeah, I have to figure out which things I have to restore to allow it to continue working after that.

I think that I put the return address of the main function to a syscall that kills the thread, but that's a different issue that I think doesn't affect to the crash. In fact I think that I recreate all (or most of) the emulation components everytime a game starts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants