Commit Graph

122 Commits

Author SHA1 Message Date
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
Unknown W. Brackets 4462b0c612 http: Add progress to missing request.
Oops, I guess I had things still cached.
2021-05-02 11:31:40 -07:00
Unknown W. Brackets 3379f33882 http: Always use/require progress in requests.
This fixes several cases where we weren't passing cancel flags
consistently.
2021-05-01 11:20:05 -07:00
Unknown W. Brackets 1e22966984 http: Separate out net buffer code from formatting. 2021-05-01 11:20:05 -07:00
Unknown W. Brackets a35b21a5d7 http: Set a more useful user agent. 2021-04-30 23:12:42 -07:00
Henrik Rydgård f4a6d291e1 Common: Capitalize setCurrentThreadName(). 2021-04-30 23:02:36 -07:00
Henrik Rydgård 08843673d9 Rename a couple of functions. 2021-04-25 20:39:32 +02:00
Henrik Rydgård 1b13badeb4 Move remaining FileUtil functions into the File namespace. 2021-04-25 20:38:22 +02: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
Unknown W. Brackets 7119011363 Windows: Correct some variable init warnings. 2021-02-15 11:59:45 -08:00
Unknown W. Brackets a20c972d55 Loaders: Prevent errors on 0 byte reads.
Was happening when opening an http:// GE frame dump.
2021-01-31 09:21:40 -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 989e353482 Common.h shouldn't include Log.h.
Buildfixes

More buildfixes. Move JSON code to common.
2020-10-04 11:42:14 +02:00
Henrik Rydgård 9e41fafd0d Move math and some file and data conversion files out from native to Common.
Buildfixing

Move some file util files

Buildfix

Move KeyMap.cpp/h to Core where they belong better.

libretro buildfix attempt

Move ini_file

More buildfixes
2020-10-04 09:12:46 +02:00
Henrik Rydgård ff8148dd92 Move native/util, native/data and native/i18 to Common/Data.
Also move colorutil.cpp/h

linking build fix experiment

Delete a bunch of unused CMakeLists.txt files

CMakeLists.txt linking fix

Don't include NativeApp.h from any headers.

Android.mk buildfix

Half of the UWP fix

Buildfix

Minor project file cleanup

Buildfixes

Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
Henrik Rydgård 15382d5f94 Move threading utils from native to Common 2020-10-01 09:27:25 +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 ccc0331279 Move timeutil to Common. (Experiment to see how much work it is to move these). 2020-08-15 20:53:08 +02:00
Henrik Rydgård c5e0b799d9 Remove category from _assert_msg_ functions. We don't filter these by category anyway.
Fixes the inconsistency where we _assert_ didn't take a category but
_assert_msg_ did.
2020-07-19 20:33:25 +02:00
Unknown W. Brackets cb1b7b1e43 Core: Bring over some file related Switch changes.
Reducing the distance from the Switch port code.
2020-03-03 22:53:03 -08:00
Unknown W. Brackets a91e206926 GPU: Add setting to control inflight frame usage. 2020-03-01 06:21:27 -08:00
Unknown W. Brackets cc6115d875 Io: Join loading/manager threads more explicitly. 2019-09-28 11:18:42 -07:00
Unknown W. Brackets 94e6950d48 http: Support redirects for load URL too.
Might as well, especially to keep old recent entries working.
2019-06-23 13:12:13 -07:00
Henrik Rydgård 83039f3f90 Remote ISO: Fix bugs from issue #12018 and probably #12019 2019-05-07 23:26:13 +02:00
Henrik Rydgård 0cd3ac06d0 Avoid trying to create a FileLoader for empty filenames
Assorted cleanup
2019-02-25 21:35:51 +01: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 7f84c87931 Loaders: Refactor chaining to avoid dup code. 2018-12-27 10:32:47 -08:00
Unknown W. Brackets 359afb2d6b http: Add timeout on no response.
Firewalls can cause this, by opening a connection but never responding.
2018-12-27 10:15:58 -08:00
Henrik Rydgård 9e75250c4e Android: Do the same file_offset_bits checks for pread64 as before. Should help #10901 2018-04-11 13:45:18 +02:00
Unknown W. Brackets 7dbd2cecd8 Android: Avoid pread64 for > 2GB offsets.
Appears to not actually work as advertised.  See #10862.
2018-04-08 08:14:07 -07:00
Unknown W. Brackets 8b665ae696 Loaders: Depriorize disc streaming queue items.
We want the local items, if any, to load first.  This gives us icons, etc.
2017-12-09 17:07:42 -08:00
Unknown W. Brackets ee5b68f1fc Loaders: Add cancelation to all file loaders.
Mainly, for HTTP which might be stalled trying to connect (especially if
you're not near your PC right now and it's in your recent, for example.)
2017-12-09 16:47:37 -08:00
Henrik Rydgård 6a1fa728d8 Remove Globals.h 2017-08-31 17:15:22 +02:00
Simonas Kazlauskas ee00815da3 Fix Windows XP support in LocalFileLoader
Because that junk from 50 years ago still matters to people, apparently.
2017-07-01 13:21:34 +03:00
Unknown W. Brackets 9dced68812 Core: Buildfix. 2017-06-24 14:19:25 -07:00
Unknown W. Brackets 9550771994 Core: Windows buildfix. 2017-06-24 11:58:25 -07:00
Simonas Kazlauskas 0c8faeb3ea Fix windows build 2017-06-24 21:23:52 +03:00
Simonas Kazlauskas 55c193ce78 Remove use of C file api in LocalFileLoader
Instead use native system calls.
2017-06-24 21:07:37 +03:00
Simonas Kazlauskas 597a1af85c Add conservative locking arond Caching/HTTP FLs
Making them hopefully thread-safe.
2017-06-24 21:06:18 +03:00
Simonas Kazlauskas 3f63c29736 Also support atomic windows readAt 2017-06-23 18:40:00 +03:00
Simonas Kazlauskas 3c3596dbf2 Make the Loader API thread-safe
Since the majority of the code is using ReadAt API already, map this to
a `readp` "syscall" which does not mutate any state about the file
descriptor therefore making it fairly safe multi-threading wise.

This allows to get rid of read-time mutexes in RamCachedFileLoader and
therefore fixes #9803
2017-06-23 17:23:43 +03:00
Unknown W. Brackets a1f59deafe Fix some type narrowing warnings and typos. 2017-03-19 07:44:31 -07:00
Henrik Rydgard d64f367e1d Assorted warning fixes 2017-03-05 10:52:45 +01:00
Henrik Rydgard 4a2812a30d Fix two mutex issues in CachingFileLoader. See #9370 2017-03-02 10:18:56 +01:00
Henrik Rydgard d46397627e Buildfixes 2017-02-28 11:40:29 +01:00
Henrik Rydgard 26a2d42731 Big mutex overhaul - remove our custom ones, make them non-recursive where possible 2017-02-28 11:40:29 +01:00
Henrik Rydgard 50be4e72b2 Get rid of our own silly reimplementation of std::thread 2017-02-27 20:51:36 +01:00
Henrik Rydgard fcbc20f240 Small changes to make Common and Core build under my preliminary UWP setup. 2017-02-24 18:59:41 +01:00
Henrik Rydgard cbf24a9d78 Get rid of "AutoInit", instead always keep the network initialized.
See #9305
2017-02-14 13:12:02 +01:00
Florent Castelli 70593d1004 android: Change preprocessor define to standard __ANDROID__
ANDROID is only standard to the old Makefile buildsystem, not the platform.
2016-10-12 11:14:09 +02:00