Fernando Sahmkow
3c95e49c42
nifm: Only return that there's an internet connection when there's a BCATServer
This helps games that need internet for other purposes boot as the rest
of our internet infrastructure is incomplete.
6 years ago
bunnei
1bdae0fe29
common_func: Use std::array for INSERT_PADDING_* macros.
- Zero initialization here is useful for determinism.
6 years ago
bunnei
b0ab803ce8
kernel: events: Remove ResetType::Automatic.
- This does not actually seem to exist in the real kernel - games reset these automatically.
# Conflicts:
# src/core/hle/service/am/applets/applets.cpp
# src/core/hle/service/filesystem/fsp_srv.cpp
6 years ago
FearlessTobi
832c138eff
core/am: Stub InitializeApplicationCopyrightFrameBuffer, SetApplicationCopyrightImage and SetApplicationCopyrightVisibility
These commands require Screenshots to be implemented anyway, so they are safe to stub for now.
6 years ago
Lioncash
8d8e495248
hid/npad: Fix incorrect connection boolean value in ConnectAllDisconnectedControllers()
We should be setting the connection state to true, otherwise we aren't
actually making the controllers connected like the function name
indicates.
6 years ago
Lioncash
d076466f26
hid/npad: Add missing break in default case
While not an issue, it does prevent fallthrough from occurring if
anything is ever added after this case (unlikely to occur, but this
turns a trivial "should not cause issues" into a definite "won't cause
issues).
6 years ago
Lioncash
26c84718c8
hid/npad: Replace std::for_each with ranged for loops
Performs the same behavior, but is built into the core language itself.
No functional change.
6 years ago
Lioncash
e433e99191
hid/npad: Remove redundant non-const variant of IsControllerSupported()
The const qualified variant can also be called in non-const contexts, so
we can remove the non-const variant to eliminate a bit of code
duplication.
6 years ago
Lioncash
a71e8066a1
hid/npad: Move function declarations
Clearly separate these from the variable declarations to make them more
visible.
6 years ago
Lioncash
b77430df70
apm/controller: Make SetPerformanceConfiguration() use an array of pairs over a map
While a map is an OK way to do lookups (and usually recommended in most
cases), this is a map that lives for the entire duration of the program
and only deallocates its contents when the program terminates.
Given the total size of the map is quite small, we can simply use a
std::array of pairs and utilize std::find_if to perform the same
behavior without loss of performance.
This eliminates a static constructor and places the data into the
read-only segment.
While we're at it, we can also handle malformed inputs instead of
directly dereferencing the resulting iterator.
6 years ago
Lioncash
141d929929
apm/controller: Make GetCurrentPerformanceMode() a const member function
This doesn't modify instance state, so it can be made const qualified.
6 years ago
Lioncash
cc1d7048b5
bcat: Remove use of global system accessors
Removes all uses of the global system accessor within the BCAT
interface.
6 years ago
Zach Hilman
1911f85391
pl_u: Fix mismatched rebase size error in font encryption
6 years ago
Zach Hilman
36d829c27b
pl_u: Use kernel physical memory
6 years ago
Zach Hilman
b3a8a094a5
pl_u: Remove excess static qualifier
6 years ago
Zach Hilman
40284c6868
pl_u: Use OSS system archives if real archives don't exist
6 years ago
Lioncash
574440d59f
nvflinger/buffer_queue: Remove use of a global system accessor
6 years ago
Morph
29e15601f3
hid: Implement DeactivateNpad
Makes use of the already existing DeactivateController function.
6 years ago
Morph
c1e9ca4c08
hid: Stub SetNpadJoyAssignmentModeSingle and reorganize service commands
6 years ago
Lioncash
0705ce0ed1
bcat/module: Silence truncation warnings
We need to perform explicit casts here, otherwise we're implicitly
truncating a 64-bit type to a 32-bit one.
6 years ago
Lioncash
7e77d1593f
bcat: Take std::function instance by value in NullBackend's constructor
Without this, the std::move within the constructor initializer list
won't be able to actually perform a move.
6 years ago
Lioncash
81adf46d1d
bcat: In-class initialize ProgressServiceBackend's impl member
Allows us to remove a constructor initializer list.
6 years ago
Lioncash
3fcd2180e4
bcat: Make ProgressServiceBackend's constructor take a std::string_view
Given the string is appended to another, we can make it a view so a
redundant full copy of the string isn't made.
6 years ago
Lioncash
f2fa16b609
bcat: Make ProgressServiceBackend's GetEvent() const
This member function doesn't modify internal member state, so it can be
marked const.
6 years ago
Lioncash
329081fcb7
boxcat: Silence an unused variable warning
On parse errors, we can log out the explanatory string indicating what
the parsing error was, rather than just ignoring the variable and
returning an overly broad error code.
6 years ago
Lioncash
69f16ba50e
hle/service: Replace global system instance calls with instance-based ones
Migrates the HLE service code off the use of directly accessing the
global system instance where trivially able to do so.
This removes all usages of Core::CurrentProcess from the service code,
only 8 occurrences of this function exist elsewhere. There's still quite
a bit of "System::GetInstance()" being used, however this was able to
replace a few instances.
6 years ago
Fernando Sahmkow
75395605d6
NvFlinger: Remove leftover from corrections and clang format.
6 years ago
Fernando Sahmkow
69fa2e6525
Nvdrv: Correct Event setup in Nvdrv
Events are supposed to be cleared on quering. This fixes that issue.
6 years ago
Fernando Sahmkow
782b7a0ca4
NVFlinger: Reverse the change that only signaled events on buffer acquire.
This has been hardware tested and it seems that NVFlinger will still
signal even if there are no buffers to present.
6 years ago
Fernando Sahmkow
ffc2ce89a0
Nvdrv: Do framelimiting only in the CPU Thread
6 years ago
Fernando Sahmkow
976d9ef43c
NvFlinger: Don't swap buffers if a frame is missing and always trigger event in sync gpu.
6 years ago
Fernando Sahmkow
5b5e60ffec
GPU_Async: Correct fences, display events and more.
This commit uses guest fences on vSync event instead of an articial fake
fence we had.
It also corrects to keep signaling display events while loading the game
as the OS is suppose to send buffers to vSync during that time.
6 years ago
Fernando Sahmkow
4e9f975935
Nvdrv: Correct Async regression and avoid signaling empty buffer vsyncs
6 years ago
ReinUsesLisp
25ee892d5e
audio/audout_u: Change formatting for old clang-format versions
6 years ago
ReinUsesLisp
8d0b1a957e
service/nvdrv: Silence -Wswitch
6 years ago
ReinUsesLisp
5c907f85fc
service/nfp: Silence -Wunused and -Wswitch
6 years ago
ReinUsesLisp
0759df0aff
service/hid: Silence -Wunused and -Wswitch
6 years ago
ReinUsesLisp
ab6f8d8a1e
service/am: Silence -Wreorder
6 years ago
ReinUsesLisp
634c6e24b0
service/hid: Remove unused system reference
6 years ago
ReinUsesLisp
1dbd22e695
service/friend: Remove unused field
6 years ago
ReinUsesLisp
99db7d23dd
service/filesystem: Silence -Wunused-variable
6 years ago
ReinUsesLisp
8566096794
service/bcat: Silence -Wreorder and -Wunused
6 years ago
ReinUsesLisp
87e7cc2d5a
service/audio: Silence -Wunused
6 years ago
ReinUsesLisp
aacb473aa2
service/apm: Silence -Wunused and -Wreorder
6 years ago
Zach Hilman
e55d086cc9
qt: Add service dialog
6 years ago
Zach Hilman
5d86c52a3a
boxcat: Use updated game-asset API URL and tags
6 years ago
Zach Hilman
19c466dfb1
bcat: Add FSC accessors for BCAT data
Ports BCAT to use FSC interface
6 years ago
Zach Hilman
bcf1eafb8b
boxcat: Implement events global field
7 years ago
Zach Hilman
2d410ddf4d
bcat: Implement DeliveryCacheProgressImpl structure
Huge thanks to lioncash for re-ing this for me.
7 years ago
Zach Hilman
92b70a3bf9
boxcat: Use Etag header names for file digest
7 years ago