Commit Graph

148 Commits

Author SHA1 Message Date
Henrik Rydgård 43ba908225 Propagate errors from file identification upwards better. 2021-08-07 11:54:45 +02:00
Henrik Rydgård 87a25fd230 Start experimenting with DocumentsContract (the thing DocumentFile wraps)
wip

Some progress towards making the file browser work with DOCUMENT_TREE

More directory browsing progress

More Scoped Storage hackery. Can now browse to a folder and use PPSSPP's game browser to load ISOs from it.

Remove the defunct fdopendir approach. Buildfixes.
2021-06-07 00:24:51 +02:00
Henrik Rydgård 4d344f556a Additional feedback. 2021-05-13 10:39:17 +02:00
Henrik Rydgård 8727679353 Clean up PathBrowser a bit
Fix UWP build

Fix booting homebrew.

Qt buildfix
2021-05-13 10:39:16 +02:00
Henrik Rydgård 2e16e83159 It never ends... 2021-05-13 10:39:16 +02:00
Henrik Rydgård ae06499a0c Change Copy, Rename to use Path. Remove std::string version of Exists().
Buildfixes

Buildfix
2021-05-13 10:39:16 +02:00
Unknown W. Brackets 774b0e07e0 Common: Cleanup AssetReader extension filter. 2021-05-09 17:57:07 -07:00
Henrik Rydgård cc3868db97 Loaders: Look for PSP/GAME/ not /PSP/GAME/.
Because upcoming Path changes will affect path string comparisons.
2021-05-09 17:50:59 -07:00
Henrik Rydgård 939dd200c3 Loaders: Remove fileLoader->Extension(). 2021-05-09 17:17:13 -07:00
Henrik Rydgård 9480b6672b Loaders: Rename Path() to GetPath().
Path is going to be a struct name.
2021-05-09 17:10:14 -07:00
Henrik Rydgård 54c9e28444 Android: Implement opening ISOs through a file picker and Storage Access Framework
Has issues with the recent list - fails to open during shutdown due to
no activity, there's a little race to fix.
2021-02-27 13:49:20 +01:00
aliaspider 9a3e5879bb Global: Correct many endian types and casts. 2021-02-18 22:25:24 -08:00
Unknown W. Brackets a964615c41 Headless: Disable http disk cache. 2021-01-17 18:33:35 -08:00
Henrik Rydgård 4f43cff5ca Move fileutil, net, image loaders, ui to Common. (#13506)
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing

Let's also move net while we're at it.

Move the ZIM/PNG loaders over to Common.

Move the UI framework into Common

iOS buildfix

* Buildfix

* Buildfixes

* Apple buildfix

* This typo again..

* UWP buildfix

* Fix build of PPSSPPQt, such as it is (it's not in good condition...)

* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00
Henrik Rydgård ed88761ecc Merge ext/native/stringutil.cpp/h into Common/StringUtils.cpp/h. 2020-09-29 15:51:51 +02:00
Henrik Rydgård fbaba82c68 Reduce use of multi-byte char switches.. saw this go wrong when stepping!?! 2020-07-27 16:55:05 +02:00
Henrik Rydgård efc3f4f5e4 Split CORE_ERROR into CORE_BOOT_ERROR and CORE_RUNTIME_ERROR 2020-07-12 15:25:20 +02:00
shenweip 9fa4ae7b15 fix 2020-01-04 09:11:15 +08:00
shenweip 44660bd9ae Change async priority to current thread'priority if priority = -1. 2020-01-03 14:33:32 +08:00
shenweip d09543ebd7 Move umd replace to loaders. 2020-01-02 14:56:24 +08:00
Unknown W. Brackets 872fcecfad http: Report errors reading discs.
For more clarity when they can't load.
2018-12-27 10:33:32 -08:00
Unknown W. Brackets 670e207c57 Core: Wait for background CPU load on exit.
This prevents crashes when exiting a game while loading is still in
progress.  See #11516.
2018-11-01 21:29:34 -07:00
Unknown W. Brackets 36069d1446 GE Debugger: Simple framework to load dumps.
This tries to execute them within the context of the emulator as much as
possible, so we don't have weird bugs.  Going with a file type so we can
easily load the dump by opening the file directly.
2017-06-03 15:29:11 -07:00
Henrik Rydgard 792dd1557c Improve StorageFileLoader enough to actually kind of work 2017-03-23 10:02:28 +01:00
Henrik Rydgard ff2b6b3fca Assorted cleanup, UWP memory map fixes. PSPFlower runs in both 32-bit and 64-bit. 2017-03-23 10:02:28 +01:00
Henrik Rydgard 4ced81b1df UWP: Hook up basic touch/mouse input. Start work on loading from a StorageFile. Getting closer to starting to boot a game 2017-03-23 10:02:28 +01:00
Henrik Rydgard 5b835839fa Make IdentifiedFileType a proper enum class 2017-03-02 12:29:03 +01:00
Unknown W. Brackets 9d6684a776 Consistently resolve PBP paths, use /s in recent.
Drag and drop was using \s causing duplicate recent entries and confusing
some of the PBP parsing.  Let's make it all a bit safer.
2016-06-26 20:33:25 -07:00
Unknown W. Brackets 9e9bc91405 Fix a crash when opening a file without extension. 2016-05-26 18:16:41 -07:00
Unknown W. Brackets a563e606b3 Resolve PBP directories earlier in load process.
This allows us to initialize the memory AFTER determining the proper size,
in the case of remasters.  It also avoids going through load twice.
2015-12-28 14:13:07 -08:00
Unknown W. Brackets f3df6b307f Use a FileLoader for PBPs.
Improves consistency, caching, etc.
2015-12-24 12:21:40 -08:00
Unknown W. Brackets a53f0360f3 Use a less leak prone interface for PBP reading. 2015-12-24 10:20:27 -08:00
Unknown W. Brackets 9bec81b9c5 Enable the disk cache for URLs by default. 2015-11-18 21:56:05 -08:00
Henrik Rydgard 8996f58693 Generate save state IDs for homebrew using the elf or directory name where applicable. 2015-09-25 19:27:40 +02:00
Unknown W. Brackets 88b23460f1 Add a file loader to perform disk caching.
Had to do some tricks to handle gameinfocache threads properly.
2015-07-02 20:58:58 -07:00
Unknown W. Brackets da827d9ef0 Move file loader code into directories.
Not making sense to put these all in the same fiel anymore.
2015-07-02 20:58:53 -07:00
Henrik Rydgard b56f21e4f0 More savedata UI polish 2015-06-12 14:46:34 +02:00
Henrik Rydgard 381e0c0fe3 Implement basic savedata UI. Not much actual functionality yet but can browse saves and states. 2015-06-11 23:59:02 +02:00
Henrik Rydgard 084aad74c3 Make GameInfoCache understand PSP savedata as a "game" type. Use it to create a basic savedata listing screen. 2015-06-11 20:22:16 +02:00
Unknown W. Brackets b8d798c3a5 Allow directories to fail to open.
This allows virtual disc files while not allowing unreadable files.
2015-03-17 08:40:57 -07:00
Unknown W. Brackets 3ce582f8a7 Act as if unreadable files don't exist.
This mainly affects Linux.  If a file cannot be opened for reading, we
should just return false for Exists(), since that will prevent us from
trying to read from the file later.
2015-03-12 19:58:09 -07:00
Unknown W. Brackets d13d48575c Support ports in HTTP loading code. 2014-12-31 09:40:43 -08:00
Lioncash 9f1bebe201 Loaders: Fix a mismatched delete call 2014-12-03 14:55:20 -05:00
Unknown W. Brackets 53c3841698 Buildfix for Linux and Symbian. 2014-11-25 11:48:08 -08:00
Unknown W. Brackets aeb3a327f0 Oops, typo. 2014-11-25 11:39:34 -08:00
Unknown W. Brackets 0d8dc48200 Don't try to close invalid files. 2014-11-25 11:34:39 -08:00
Unknown W. Brackets 0551773599 Add an interface to retry HTTP requests.
They could fail / be spotty in some situations.  A little retry can go a
long way.
2014-11-25 09:16:47 -08:00
Unknown W. Brackets 53e6d49568 Shortcut a read outside the file.
This happened to me.
2014-11-25 09:16:17 -08:00
Unknown W. Brackets 99b422aa0a Add more verbose logging in case of error. 2014-11-25 08:59:29 -08:00
Unknown W. Brackets 6d9ff8fac4 Fix disconnect order. 2014-11-25 00:33:23 -08:00