-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix "Akaya Akashiya Ayakashi" umd switch #9245
Conversation
Also,make "switch umd" menu enable faster,
I forgot said. |
Oh yeah. Happy year of the rooster! |
@@ -51,6 +55,7 @@ static std::vector<SceUID> umdWaitingThreads; | |||
static std::map<SceUID, u64> umdPausedWaits; | |||
|
|||
bool UMDReplacePermit = false; | |||
bool UMD_insterted = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename UMDInserted , simple spelling mistake :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -495,7 +504,9 @@ void __UmdReplace(std::string filepath) { | |||
} | |||
} | |||
delete currentUMD; | |||
|
|||
UMD_insterted = false; | |||
sleep_ms(200); // Wait sceUmdCheckMedium call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, this isn't very nice .. on the other hand, this will probably be pretty reliable as long as __UmdReplace is not called from the emulator thread. I fear though that it may be, on Android? Got to check to be sure though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A better solution may be to schedule an event (you know, RegisterEvent and so on) that will set UMDInserted back after a little bit.
@hrydgard Here is my first time to write a event. |
Nice, looks good! It works, too, right? :) Now the only thing I'm thinking about is savestate support for this, but it would be kind of silly to create a new savestate right when changing discs? |
Actually we definitely need to save the event number. And that means that yes, you're gonna have to make a little version check in DoState. When loading an old state, you'll probably want to simply not call RestoreRegisterEvent... |
First step to fix UnitTest
Yes,It still work,but it seems UnitTest not to work. |
Hm, curious. I'll see if I can find a solution tomorrow. |
Please don't make change of MainWindowMenu.cpp on master. |
I can fix it up on this branch before merging. Don't worry about it, I'll take it from here, later today :) |
Merged and committed a fix on top. Don't know why it didn't end up inside the merge but meh, should be fine now :) |
Very Thanks. |
@hrydgard A small note: |
Probably they got better graphics drivers with the upgrade. Especially on Android, good graphics drivers are very important for PPSSPP's performance. Could of course also be power management. |
Hi! Sorry, I really don't understand programming. Can you help me? I would like to play Akaaka, but can't switch umd. How can i switch it? |
@aranypikkely Download newest version in http://buildbot.orphis.net/ppsspp/ |
Hi! Thanks! I downloaded it. So: it seems to switch the umd. But if i load the second umd, than switch the first, it plays just the first umd. |
Do you mean that cannot switch again second umd ? |
It went like this: on the end of the 1. umd i saved the game Maybe i made some mistake? |
1:put the save https://drive.google.com/file/d/0B3OaSdeV0L8kaWgybDlTWVZiUmc/view?usp=sharing into ppsspp |
You guys are amazing! Thank you very much! It works! :) I have one last question. Does this saved data know, what path was choosed during the game? |
@aranypikkely The saved data is from #9110 (comment) @kurasamesusaya Can you share that your save data that what path was choosed during the game? |
@sum2012 Can you show a more detailed guide? I'm lost between step 4 and 5. Like, I change to disc 1 like at step 4 but the game just start over again and doesn't show any picture like in step 5. And also can you show me how to change umd? The way I did it, I press Esc - switch umd - disc 1 - continue. Is it the right way? ps: nvm I get it 👍 |
@sayaaki The way you change umd is right.Maybe you forget save data before end of disc 1. umd change video: |
uhm but if the path I choose was different how can I continue from that path? |
and why can't I do the same thing with my own save instead of the save shared above? |
@sayaaki first, give me your save data to me test. |
Maybe you need play again to get new story. |
Also,make "switch umd" menu enable faster,
fix #9110
modify log:
https://gist.github.com/sum2012/e9557e6879f43361582e6810d0ba79e7