Fixes delete button for downloaded games from homebrew store in UWP

This commit is contained in:
Antx64 2019-08-19 23:37:14 -04:00
parent 010da8080c
commit c398da48ac
3 changed files with 7 additions and 6 deletions

View File

@ -648,10 +648,8 @@ bool CreateEmptyFile(const std::string &filename)
// Deletes the given directory and anything under it. Returns true on success.
bool DeleteDirRecursively(const std::string &directory)
{
#if PPSSPP_PLATFORM(UWP)
return false;
#else
{
//Removed check, it prevents the UWP from deleting store downloads
INFO_LOG(COMMON, "DeleteDirRecursively: %s", directory.c_str());
#ifdef _WIN32
@ -720,7 +718,6 @@ bool DeleteDirRecursively(const std::string &directory)
closedir(dirp);
#endif
return File::DeleteDir(directory);
#endif
}

View File

@ -299,7 +299,9 @@ void RegisterAllModules() {
Register_sceNetIfhandle();
Register_KUBridge();
Register_sceUsbAcc();
#if !PPSSPP_PLATFORM(UWP)
Register_sceUsbMic();
#endif
// add new modules here.
}

View File

@ -16,5 +16,7 @@
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#pragma once
//UWP doesn't like this for some reason
#if !PPSSPP_PLATFORM(UWP)
void Register_sceUsbMic();
#endif