| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Now all that remains is:
18 instances in file_sys code
14 instances in GDB stub code (this can be tossed wholesale)
4 instances in HLE code
2 instances in settings code.
|
| |\
| |
| | |
nca_patch: Reduce stack usage size within SearchBucketEntry()
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously this function was using ~16KB of stack (16528 bytes), which
was caused by the function arguments being taken by value rather than by
reference.
We can make this significantly lighter on the stack by taking them by
reference.
|
| | |
| |
| |
| |
| | |
This is only used internally and doesn't depend on any class state, so
we can make it fully internal.
|
| | |
| |
| |
| |
| |
| | |
We don't need to create two separate instantiations of the same code, we
can simply make the character template argument a regular function
parameter.
|
| |/
|
|
|
| |
This isn't used within the function at all in any implementations, so we
can remove it entirely.
|
| |
|
|
|
|
| |
We make it explicit that we're truncating arithmetic here to resolve
compiler warnings (even if the sizes weren't u32/u64 arithmetic
generally promotes to int :<)
|
| |
|
|
|
| |
We can use these to avoid typing the same type redundantly. This way, if
these ever change, only a single location needs to be modified.
|
| |
|
|
|
| |
These functions are only used within this translation unit, so we can
make them internally linked.
|
| |
|
|
|
| |
We can supply the content provider as an argument instead of hardcoding
a global accessor in the implementation.
|
| |
|
|
|
| |
With this, the kernel finally doesn't depend directly on the global
system instance anymore.
|
| |\
| |
| | |
service: Remove two usages of the global system accessor
|
| | |
| |
| |
| | |
Removes more instances of reliance on global state.
|
| |\ \
| | |
| | | |
kernel/scheduler: Use std::mutex instead of spin lock
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Profiling shows that this is a highly contested mutex, causing dimishing
results compared to a OS lock. std::mutex implementations can spin for a
while before falling back to an OS lock.
This avoids wasting precious CPU cycles in a no-op.
|
| |\ \ \
| | | |
| | | | |
bsd: Resolve a few warnings
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Previously the address provided to SendToImpl would never be propagated
to SendTo(). This fixes that.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Same behavior, less typing.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
We can simplify this a little by explicitly specifying the typename for
the lambda function.
|
| | | |/
| |/| |
|
| |\ \ \
| | | |
| | | | |
audio_core: Apollo Part 1, AudioRenderer refactor
|
| | | | | |
|
| |\ \ \ \
| | | | |
| | | | | |
Project Mjölnir: Part 2 - Controller Applet
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Resolves -Wsign-compare and -Wunused-variable
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
- Some games like Shipped have a minimum requirement of 0 connected players and is undesired behavior. We must require a minimum of 1 player connected regardless of what games may ask.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Now left and right joycons have the same priority (meaning both needs to be supported by the game).
Explanation of the new heuristic:
Assign left joycons to even player indices and right joycons to odd player indices.
We do this since Captain Toad Treasure Tracker expects a left joycon for Player 1 and a right Joycon for Player 2 in 2 Player Assist mode.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Implement the fallback applet for the SDL frontend, connecting only the minimum amount of players required.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
"Explain Text" is additional text that is shown for each player in the controller applet.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Co-authored-by: Its-Rei <kupfel@gmail.com>
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | | |
video_core: Remove all Core::System references in renderer
|
| | |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Now that the GPU is initialized when video backends are initialized,
it's no longer needed to query components once the game is running: it
can be done when yuzu is booting.
This allows us to pass components between constructors and in the
process remove all Core::System references in the video backend.
|
| |\ \ \ \
| | | | |
| | | | | |
services: Implement most of bsd:s and GetCurrentIpAddress from nifm
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Testing shows that Poll called with zero entries returns -1 and signals
an errno of zero.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This implements: Socket, Poll, Accept, Bind, Connect, GetPeerName,
GetSockName, Listen, Fcntl, SetSockOpt, Shutdown, Recv, RecvFrom,
Send, SendTo, Write, and Close
The implementation was done referencing: SwIPC, switchbrew, testing
with libnx and inspecting its code, general information about bsd
sockets online, and analysing official software.
Not everything from these service calls is implemented, but everything
that is not implemented will be logged in some way.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Manage worker threads with an easy to use abstraction.
We can expand this to support thread deletion in the future.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This abstraction allows executing blocking functions (like recvfrom on a
socket configured for blocking) without blocking the service thread.
It is intended to be used with SleepClientThread.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
These functions translate from Network enumerations/structures to guest
enumerations/structures and viceversa.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Add guest enumerations and structures used in socket services
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is trivially implemented using the Network abstraction
- Used by ftpd
|
| | |/ / /
|/| | |
| | | |
| | | | |
- Used in multiple games such as Super Mario Odyssey.
|
| |\ \ \ \
| | | | |
| | | | | |
hle/scheduler: Fix data race in is_context_switch_pending
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
As reported by tsan, SelectThreads could write to
is_context_switch_pending holding a mutex while SwitchToCurrent reads it
without holding any.
It is assumed that the author didn't want an atomic here, so the code is
reordered so that whenever is_context_switch_pending is read inside
SwitchToContext, the mutex is locked.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Fixes build issues
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
fsp_srv: Resolve -Wmaybe_uninitialized warning in OpenSaveDataFileSystem()
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
We can just log out the parameters in the meantime.
|