ppsspp
ppsspp copied to clipboard
Add GamedataInstall of osm
fix #14688

I do not know that how to solve Build / build (ubuntu-latest, test, clang, clang++, ./b.sh --headless --unittest, clang-normal) build fail PSPGamedataInstallDialog.cpp:(.text+0x13f0): undefined reference to `osm'
Most games show progress bars during install. Is this to workaround some specific game that doesn't? Or a bug in PPSSPP that's preventing the progress bar in that game?
-[Unknown]
workaround for Everybody's tennis and Hot Shots Tennis: Get a Grip
Hm, I think we can do better with some PPGe graphics. What's shown on the real PSP during install?
@hrydgard this picture change to english,better

Thanks, yeah, I think we should try to approximate that instead. Should be fairly easy, I might take a look in a while.
There must be a flag, some games show their own UI. I think Valkyria Chronicles 2, for example.
-[Unknown]
There must be a flag, some games show their own UI. I think Valkyria Chronicles 2, for example.
-[Unknown]
Valkyria Chronicles 2 use SceUtilitySavedata instead of sceUtilityGamedataInstall
Hm, maybe it does. At least its sequel uses it:

It's been a while but I don't think it shows any PSP OS UI. It has the whole nice "sketch becoming a colored in image" thing instead.
-[Unknown]
It wouldn't be a complete disaster if we drew an extra progress bar on top though, in case we can't find the flag...
@unknownbrackets I don't know that my game of Valkyria Chronicles 2 don't have gameinstall log:

full log: https://gist.github.com/sum2012/9e9f8dc8bb56583a576faccdafafd53f
Sorry I meant its sequel, Valkyria Chronicles 3 / Senjou no Valkyria 3.
-[Unknown]
A small note:
jpcsp imp game install screen (missing Install completed.)
in https://github.com/jpcsp/jpcsp/commit/7227a2df1f9c1e487576369e57a48d8aeb4d7eda

Install completed. added in https://github.com/jpcsp/jpcsp/commit/09c9374b9e12109689120795c859a94828a14a91 edit:easier to port the source : https://github.com/jpcsp/jpcsp/compare/c36e0026b5e3d9ab86fc84353bde748024ac3b21..09c9374b9e12109689120795c859a94828a14a91

So the flag about whether to show the dialog or not seems to be SceUtilityGamedataInstallParam.mode == PSP_UTILITY_GAMEDATA_MODE_SHOW_PROGRESS, and the constant is just 1. Easy enough.
I think a first version of this could just check that flag and draw a progress bar, and skip the confirmation and stuff.
Closing this because I merged #17919