Commit Graph

150 Commits

Author SHA1 Message Date
EssaBoy
1928361085 Optimisation of the smart pointer in PSPLoader and ISOFileSystem 2024-10-18 23:56:57 +02:00
Henrik Rydgård
96c4ae4457 TimeUtil: Minor cleanup, add precise_sleep() 2024-07-26 11:25:58 +02:00
Henrik Rydgård
e01ca5b057
Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Herman Semenov
c20cb3f4be Minor optimize methods std::string using param as char with simpler implementation 2024-04-10 17:57:05 +03:00
Herman Semenov
cfb77ce83e [Core/HLE/Common/UI] Using C++17 make smart pointers 2024-04-01 18:12:27 +03:00
Henrik Rydgård
2e16fd3bcc Fix fake game ID generation to work with scoped storage 2024-01-23 01:06:56 +01:00
Henrik Rydgård
d1fb213750 Cleaner way 2024-01-18 00:54:04 +01:00
Henrik Rydgård
4fea6eeaab Try a compromise with the paths 2024-01-18 00:29:27 +01:00
Henrik Rydgård
ff12ff1345 Android: Fix running plain PRXs on scoped storage. Minor cleanup. 2024-01-18 00:22:51 +01:00
Henrik Rydgård
e3177ac870 Make some global string pointers const, not just the strings.
Minor cleanup.
2023-12-29 14:09:45 +01:00
Henrik Rydgård
19e4de5088 Change global UI messages to use an enum instead of strings.
Makes it easier to add new ones and delete outdated ones without missing
any uses.
2023-09-30 11:37:02 +02:00
German Semenov
c498a42e92 Core, UI, Windows: Removed excess converting C-string in params 2023-09-15 13:54:11 +03:00
Henrik Rydgård
f27e6055f8 Fix running homebrew on Android with content URIs (scoped storage) 2023-09-08 16:42:39 +02:00
Unknown W. Brackets
9cc266b0e7 Android: Fix developer tools -> run tests. 2023-09-07 17:36:41 -07:00
Bashar Astifan
9b0577351f Review's changes, more fixes and better structure 2023-05-02 00:09:22 +04:00
Bashar Astifan
d0b6935592 UWP Improved Support 2023-04-28 23:22:17 +04:00
Unknown W. Brackets
0ade62d264 Core: Remove Host entirely. 2023-03-25 17:47:25 -07:00
Henrik Rydgård
adccc480a0 Another one bites the dust (SendUIMessage) 2023-03-24 21:39:02 +01:00
Henrik Rydgård
1250692657 Convert host->SetWindowTitle to a request 2023-03-24 17:52:01 +01:00
Henrik Rydgård
b56eef487c Strict mode checking - no way to forget detaching now.
And if we forget to attach, boom. Hopefully I caught all of them.
2023-01-05 08:38:52 +01:00
Unknown W. Brackets
e094f5673a
Core: Fix unused variable warning. 2021-10-22 09:09:06 -07:00
Unknown W. Brackets
1f3d31f687 UI: Fix game installer extension check. 2021-09-26 09:36:52 -07:00
Henrik Rydgård
9ae00b80b1 Cleanup the ownership model in MetaFileSystem.
The old one was error-prone spaghetti.
2021-07-24 10:31:15 +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
Henrik Rydgård
025bcb1673 Introduce Path, start using it all over the place.
Still lots left to convert!

Convert GetSysDirectory to return Path.

More buildfixing

Remove unnecessary Path( constructors
2021-05-13 10:39:16 +02: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
ac68dac029 Loaders: Avoid fileToStart compare with "". 2021-05-09 17:38:39 -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
f4a6d291e1 Common: Capitalize setCurrentThreadName(). 2021-04-30 23:02:36 -07:00
Unknown W. Brackets
cab2a38498 Reporting: Avoid generated homebrew IDs.
But let through a few more, homebrew rarely reused newer system version
SFOs.  By that point they were doing their own SFOs finally.
2021-04-17 14:28:53 -07:00
Unknown W. Brackets
a6d5c9c0c5 Core: Use homebrew disc IDs/titles when available.
Soem homebrew do have valid data here - better to use it if possible.

This affects reporting, which recently got a large chunk of homebrew
reports with empty titles because of this.
2021-02-28 10:47:51 -08:00
Dylan Smit
b8ccd7fae7
Fixed a PlayStation typo (#13729) 2020-11-30 23:58:43 +01: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
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
b58ca8af12
Merge pull request #12945 from unknownbrackets/io-timing
Make file open timing a bit more accurate
2020-07-13 13:37:53 +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
sum2012
adf8d5e831 Real support Code Geass: Lost Colors chinese patched version 2020-06-14 09:43:08 +08:00
sum2012
b3468b2c74 Real support "Hatsune Miku Project Diva Extend" chinese version 2020-06-07 18:15:49 +08:00
Unknown W. Brackets
9b112efa0b Headless: Handle umd mapping with block devices. 2020-05-21 18:58:24 -07:00
Unknown W. Brackets
c829ccb87d Io: Track whether the game is on a UMD or storage. 2020-05-21 18:57:46 -07:00
Unknown W. Brackets
67416e5919 Io: Simulate VFAT bug only when simulating FAT32.
And cleanup flag handling a bit.
2020-05-21 18:57:46 -07:00
Unknown W. Brackets
ab38c387ad Io: Correct some error handling for OpenFile().
See #12433.
2020-03-08 21:22:21 -07:00
Henrik Rydgård
52156ec4e5
Merge pull request #12550 from unknownbrackets/win-long-path
Attempt support for Windows long paths
2020-01-11 23:32:38 +01:00
Unknown W. Brackets
46464d2722 Windows: Resolve module/full paths for long paths. 2020-01-04 09:02:10 -08:00
shenweip
9be8fc6c69 Oops. 2020-01-04 11:14:32 +08:00
shenweip
9fa4ae7b15 fix 2020-01-04 09:11:15 +08:00
shenweip
d09543ebd7 Move umd replace to loaders. 2020-01-02 14:56:24 +08:00
Unknown W. Brackets
913121cf2b Io: Consistently use error codes with OpenFile().
This gets rid of OpenWithError(), and just always returns a negative value
on error for OpenFile().  Also fixed the sequence rollover, which could've
returned 0.

0 should be considered a valid handle ideally, but left it never returning
0 to simplify cleanup in some areas.
2019-10-20 11:03:37 -07:00