mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 07:03:33 +02:00
Merge pull request #9653 from xiushudongfang/UI_background_android
UI: Allow choosing bgs (android)
This commit is contained in:
@@ -863,6 +863,10 @@ void HandleGlobalMessage(const std::string &msg, const std::string &value) {
|
||||
inputboxValue.clear();
|
||||
}
|
||||
if (msg == "bgImage_updated") {
|
||||
if (!value.empty()) {
|
||||
std::string dest = GetSysDirectory(DIRECTORY_SYSTEM) + (endsWithNoCase(value, ".jpg") ? "background.jpg" : "background.png");
|
||||
File::Copy(value, dest);
|
||||
}
|
||||
UIBackgroundShutdown();
|
||||
UIBackgroundInit(*uiContext);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user