Commit Graph

26 Commits

Author SHA1 Message Date
Zach Hilman
9568ba4e3b core: Port core to VfsFilesystem for file access 2018-08-08 21:18:45 -04:00
bunnei
069b0fadce Merge pull request #912 from lioncash/global-var
video_core: Eliminate the g_renderer global variable
2018-08-05 16:37:39 -04:00
bunnei
d2498546e6 Merge pull request #849 from DarkLordZach/xci
XCI and Encrypted NCA Support
2018-08-04 14:33:11 -04:00
Lioncash
ec1683de24 video_core: Eliminate the g_renderer global variable
We move the initialization of the renderer to the core class, while
keeping the creation of it and any other specifics in video_core. This
way we can ensure that the renderer is initialized and doesn't give
unfettered access to the renderer. This also makes dependencies on types
more explicit.

For example, the GPU class doesn't need to depend on the
existence of a renderer, it only needs to care about whether or not it
has a rasterizer, but since it was accessing the global variable, it was
also making the renderer a part of its dependency chain. By adjusting
the interface, we can get rid of this dependency.
2018-08-04 02:36:57 -04:00
Lioncash
6037b115eb video_core: Make global EmuWindow instance part of the base renderer class
Makes the global a member of the RendererBase class. We also change this
to be a reference. Passing any form of null pointer to these functions
is incorrect entirely, especially given the code itself assumes that the
pointer would always be in a valid state.

This also makes it easier to follow the lifecycle of instances being
used, as we explicitly interact the renderer with the rasterizer, rather
than it just operating on a global pointer.
2018-08-01 21:40:30 -04:00
Zach Hilman
f41ecf2335 Fix merge conflicts with opus and update docs 2018-08-01 00:16:54 -04:00
Zach Hilman
cadade1b28 Use more descriptive error codes and messages 2018-08-01 00:16:54 -04:00
Zach Hilman
05354beadb Make XCI comply to review and style guidelines 2018-08-01 00:16:54 -04:00
Zach Hilman
2f355a1609 Remove files that are not used 2018-08-01 00:16:54 -04:00
Lioncash
a0d85ece5b file_util: Use an enum class for GetUserPath()
Instead of using an unsigned int as a parameter and expecting a user to
always pass in the correct values, we can just convert the enum into an
enum class and use that type as the parameter type instead, which makes
the interface more type safe.

We also get rid of the bookkeeping "NUM_" element in the enum by just
using an unordered map. This function is generally low-frequency in
terms of calls (and I'd hope so, considering otherwise would mean we're
slamming the disk with IO all the time) so I'd consider this acceptable
in this case.
2018-07-21 16:21:19 -04:00
bunnei
ae54e16d59 OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering. 2018-07-14 02:50:35 -04:00
Tobias
3941ca5fa4 Port #3335 and #3373 from Citra: "Small SDL fixes" and "Print the actual error preventing SDL from working" (#637)
* Port #3335 and #3373 from Citra

* Fixup: Use the new logging placeholders
2018-07-12 09:26:27 -07:00
James Rowe
d2309fe9c0 yuzu-cmd Apply the filter string from settings 2018-07-12 01:09:03 -06:00
bunnei
6ceee1bf3b Fix build and address review feedback 2018-07-02 21:45:48 -04:00
James Rowe
3e4df3574c Add configurable logging backends 2018-07-02 21:45:47 -04:00
James Rowe
489e98954c Update clang format 2018-07-02 21:45:47 -04:00
James Rowe
847a518200 Rename logging macro back to LOG_* 2018-07-02 21:45:47 -04:00
bunnei
549bdf75ec yuzu_cmd: Fix project for latest msvc. 2018-05-23 21:51:49 -04:00
Lioncash
4526964275 frontends: Move logging macros over to new fmt-capable ones 2018-04-26 19:14:48 -04:00
bunnei
de7afdb190 Merge pull request #377 from adityaruplaha/sdl2-fullscreen
SDL2: Implement fullscreen. (Original PR: citra-emu/citra#3607)
2018-04-21 13:53:55 -04:00
adityaruplaha
b4fd59d1f7 SDL2: Implement fullscreen. (Original PR: citra-emu/citra#3607) 2018-04-21 13:24:33 +05:30
N00byKing
5f19ec5ce5 Implement Pull #3528 from citra: use nvidia graphics automatically on laptops with optimus (with AMD support) (#271)
* Port 3528: use nvidia graphics automatically on laptops with optimus

* Force dedicated AMD Card for switchable Graphics

* Ran clang-format
2018-04-19 12:22:26 -06:00
N00byKing
67d1c2eabf yuzu.cpp: Update Link from citra to yuzu 2018-03-26 21:48:18 +02:00
MerryMage
04e933748c clang-format 2018-01-16 18:05:21 +00:00
MerryMage
6d71d8fcf1 Minor cleanup 2018-01-13 23:56:18 +00:00
James Rowe
c620780dca Get yuzu sdl to start compiling 2018-01-12 19:11:04 -07:00