citra/src/citra_qt
Tobias 623b0621ab
Port various minor changes from yuzu PRs (#4725)
* common/thread: Remove unused functions

Many of these functions are carried over from Dolphin (where they aren't
used anymore). Given these have no use (and we really shouldn't be
screwing around with OS-specific thread scheduler handling from the
emulator, these can be removed.

The function for setting the thread name is left, however, since it can
have debugging utility usages.

* input_common/sdl: Use a type alias to shorten declaration of GetPollers

Just makes the definitions a little bit more tidy.

* input_common/sdl: Correct return values within implementations of GetPollers()

In both cases, we weren't actually returning anything, which is
undefined behavior.

* yuzu/debugger/graphics_surface: Fill in missing surface format listings

Fills in the missing surface types that were marked as unknown. The
order corresponds with the TextureFormat enum within
video_core/texture.h.

We also don't need to all of these strings as translatable (only the
first string, as it's an English word).

* yuzu/debugger/graphics_surface: Clean up connection overload deduction

We can utilize qOverload with the signal connections to make the
function deducing a little less ugly.

* yuzu/debugger/graphics_surface: Tidy up SaveSurface

- Use QStringLiteral where applicable.

- Use const where applicable

- Remove unnecessary precondition check (we already assert the pixbuf
  being non null)

* yuzu/debugger/graphics_surface: Display error messages for file I/O errors

* core: Add missing override specifiers where applicable

Applies the override specifier where applicable. In the case of
destructors that are  defaulted in their definition, they can
simply be removed.

This also removes the unnecessary inclusions being done in audin_u and
audrec_u, given their close proximity.

* kernel/thread: Make parameter of GetWaitObjectIndex() const qualified

The pointed to member is never actually modified, so it can be made
const.

* kernel/thread: Avoid sign conversion within GetCommandBufferAddress()

Previously this was performing a u64 + int sign conversion. When dealing
with addresses, we should generally be keeping the arithmetic in the
same signedness type.

This also gets rid of the static lifetime of the constant, as there's no
need to make a trivial type like this potentially live for the entire
duration of the program.

* kernel/codeset: Make CodeSet's memory data member a regular std::vector

The use of a shared_ptr is an implementation detail of the VMManager
itself when mapping memory. Because of that, we shouldn't require all
users of the CodeSet to have to allocate the shared_ptr ahead of time.
It's intended that CodeSet simply pass in the required direct data, and
that the memory manager takes care of it from that point on.

This means we just do the shared pointer allocation in a single place,
when loading modules, as opposed to in each loader.

* kernel/wait_object: Make ShouldWait() take thread members by pointer-to-const

Given this is intended as a querying function, it doesn't make sense to
allow the implementer to modify the state of the given thread.
2019-05-01 14:28:49 +02:00
..
applets common/string_util: Move TextFromBuffer to string_util 2019-04-08 22:34:21 +08:00
camera Move if 2018-10-05 09:27:16 -05:00
configuration core, citra_qt: Allow credentials update in multiplayer announce session 2019-04-20 12:50:24 +08:00
debugger Port various minor changes from yuzu PRs (#4725) 2019-05-01 14:28:49 +02:00
multiplayer citra_qt: Update the multiplayer dialogs when game list is repopulated 2019-04-20 12:50:26 +08:00
updater reformat all files with clang-format 2018-06-29 16:56:12 +03:00
util citra-qt: Add /default parsing for hotkeys. Also minor code cleanups. 2019-01-25 20:42:49 +05:30
aboutdialog.cpp Port #942 from yuzu: "qt: Minor cleanup-related changes" 2018-08-24 17:14:09 +02:00
aboutdialog.h Clean up aboutdialog.h 2018-08-25 14:45:50 +02:00
aboutdialog.ui citra-qt: Add build date in about dialog 2018-06-18 21:21:00 +08:00
bootmanager.cpp general: Use deducation guides for std::lock_guard and std::unique_lock 2019-04-07 15:14:29 +02:00
bootmanager.h core: Namespace EmuWindow 2019-04-21 14:16:16 +02:00
cheats.cpp citra_qt: Implement UI for adding/editing/deleting cheats 2019-02-02 08:15:27 +08:00
cheats.h citra_qt: Implement UI for adding/editing/deleting cheats 2019-02-02 08:15:27 +08:00
cheats.ui citra_qt: Implement UI for adding/editing/deleting cheats 2019-02-02 08:15:27 +08:00
citra-qt.rc
CMakeLists.txt applets: implement HLE mii selector applet 2019-04-07 15:35:29 +02:00
compatdb.cpp yuzu: Remove usage of the global telemetry accessor 2019-03-17 23:17:57 +01:00
compatdb.h compatdb: Use a seperate endpoint for testcase submission 2018-10-27 12:20:03 +02:00
compatdb.ui add compatibility reporting to qt frontend 2018-01-01 19:25:38 -06:00
compatibility_list.cpp Stop splitting includes 2018-10-20 16:31:35 +02:00
compatibility_list.h Stop splitting includes 2018-10-20 16:31:35 +02:00
discord_impl.cpp Add Discord Rich Presence Support (#3883) 2018-08-20 11:20:33 +02:00
discord_impl.h Address a bunch of review comments 2018-10-20 10:35:55 -04:00
discord.h Add Discord Rich Presence Support (#3883) 2018-08-20 11:20:33 +02:00
game_list_p.h game_list_p: Take map iterator contents by const reference 2018-10-20 16:31:35 +02:00
game_list_worker.cpp citra_qt: show demos on game list 2019-02-08 19:04:05 -05:00
game_list_worker.h Stop splitting includes 2018-10-20 16:31:35 +02:00
game_list.cpp citra_qt: Update the multiplayer dialogs when game list is repopulated 2019-04-20 12:50:26 +08:00
game_list.h citra_qt: Update the multiplayer dialogs when game list is repopulated 2019-04-20 12:50:26 +08:00
hotkeys.cpp citra-qt: Add /default parsing for hotkeys. Also minor code cleanups. 2019-01-25 20:42:49 +05:30
hotkeys.h citra-qt: Add /default parsing for hotkeys. Also minor code cleanups. 2019-01-25 20:42:49 +05:30
Info.plist
main.cpp citra_qt: Update the multiplayer dialogs when game list is repopulated 2019-04-20 12:50:26 +08:00
main.h citra_qt: when opnening a cia file directly, make Citra ask to install it 2019-02-16 17:18:19 +01:00
main.ui citra_qt: rename the menu to Tools 2018-11-30 14:14:41 +08:00
ui_settings.cpp citra-qt: Add base support for hotkey reconfiguration + UI (whole of PR citra-emu/citra#3786) 2019-01-20 16:12:10 +05:30
ui_settings.h citra-qt: Add base support for hotkey reconfiguration + UI (whole of PR citra-emu/citra#3786) 2019-01-20 16:12:10 +05:30