Zach Hilman
4c0e453e08
svc: Return random seed for svcGetInfo RandomEntropy
8 years ago
Zach Hilman
cc1e6ccb3d
csrng: Use std::mt19937 engine for random number generation
8 years ago
David Marcec
86b1318f42
Added maybe_unused
8 years ago
David Marcec
c1282d3b75
Added ToPosixTime & ToPosixTimeWithMyRule
Added instead of using a seperate PR to prevent conflicts
8 years ago
David Marcec
c1fc0d7991
Added consts and static
8 years ago
David Marcec
594e1b7121
Implement GetClockSnapshot
Needed by megaman 11
8 years ago
David
b2a5c2529a
svcBreak now dumps information from the debug buffer passed ( #1646 )
* svcBreak now dumps information from the debug buffer passed
info1 and info2 seem to somtimes hold an address to a buffer, this is usually 4 bytes or the size of the int and contains an error code. There's other circumstances where it can be something different so we hexdump these to examine them at a later date.
* Addressed comments
8 years ago
David Marcec
8b8c0ee2fc
Updated npad styles on holdtype switches
Fixes input for megaman
8 years ago
David Marcec
22be70c387
Fixups
8 years ago
David Marcec
2848c8b088
Ability to switch between docked and undocked mode in-game
Started implementation of the AM message queue mainly used in state getters. Added the ability to switch docked mode whilst in game without stopping emulation. Also removed some things which shouldn't be labelled as stubs as they're implemented correctly
8 years ago
David Marcec
a6d347c103
fixed spelling error
8 years ago
David Marcec
04b01f5db2
Added missing log
8 years ago
David Marcec
d018183d4e
Implement acc:TrySelectUserWithoutInteraction
Needed for Shantae - Half-Genie Hero - Ultimate Edition!
8 years ago
Frederic Laing
1944d20eb7
Fix typo in BufferTransformFlags
8 years ago
David Marcec
d3d2bb2c35
Fixed incorrect hwopus assert
8 years ago
David Marcec
60bd67f92e
Fixed HID crash when launching more than 1 game & signaled syleset change event
This should fix crashes when launching multiple games in yuzu
8 years ago
Lioncash
eae8892b57
configure_system: Contrain profile usernames to 32 characters
Previously, we would let a user enter an unbounded name and then
silently truncate away characters that went over the 32-character limit.
This is kind of bad from the UX point of view, because we're essentially
not doing what the user intended in certain scenarios.
Instead, we clamp it to 32 characters and make that visually apparent in
the dialog box to provide a name for a user.
8 years ago
Lioncash
1429e2ca92
service/usb: Update IPdSession's function table
Updated based off information on SwitchBrew.
8 years ago
Lioncash
70e4492d49
general: Remove unused boost inclusions where applicable
Cleans up unused includes and trims off some dependencies on externals.
8 years ago
Frederic L
c76f4b6aec
global: Use std::optional instead of boost::optional ( #1578 )
* get rid of boost::optional
* Remove optional references
* Use std::reference_wrapper for optional references
* Fix clang format
* Fix clang format part 2
* Adressed feedback
* Fix clang format and MacOS build
8 years ago
Lioncash
6f2cb1a437
hle_ipc: Add member function for querying the existence of a domain header
Gets rid of the need to call the getter and then check for null.
8 years ago
Lioncash
abf974f2f5
hle_ipc: Make GetDomainMessageHeader return a regular pointer
Nothing requires the shared owner ship here, so we can just return a
plain pointer.
8 years ago
Lioncash
55233bbdd2
core: Make System references const where applicable
8 years ago
DeeJayBro
d29877e73e
service/filesystem: Add DirectoryDelete & DirectoryDeleteRecursively
8 years ago
Lioncash
2aa6e317d6
svc: Localize the GetInfo enum class to the function itself
Nothing from this enum is intended to be used outside of this function.
8 years ago
Lioncash
9bb7bc911f
svc: Implement svcGetInfo command 0xF0000002
This retrieves:
if (curr_thread == handle_thread) {
result = total_thread_ticks + (hardware_tick_count - last_context_switch_ticks);
} else if (curr_thread == handle_thread && sub_id == current_core_index) {
result = hardware_tick_count - last_context_switch_ticks;
}
8 years ago
bunnei
c86d76d65c
ldr: Partially implement LoadNro.
- This is an incomplete implementation. It was tested with Super Mario Party.
8 years ago
bunnei
bdb2835028
process: LoadModule should clear JIT instruction cache.
8 years ago
bunnei
59b8f91cb2
Kernel/Memory: Added a function to first a suitable guest address at which to allocate a region of a given size.
8 years ago
Lioncash
64968341b7
service/usb: Update service function tables
Updated based off the information provided by Hexkyz on Switchbrew.
8 years ago
Lioncash
9c03c5ac8a
service/acc: Move fallback image to file scope
This is just flat data, so it doesn't really need to be in the function
itself. This also allows deduplicating the constant for the backup size
in GetImageSize().
8 years ago
Lioncash
6da246b0c2
service/acc: Silence compiler warnings
Silences compiler warnings related to truncation. This also introduces a
small helper function to perform the clamping of the image size.
8 years ago
Lioncash
8eec717cce
service/acc: Early return in failure case in LoadImage()
Allows unindenting the other branch's code.
8 years ago
Lioncash
dd17fc6213
kernel/errors: Remove now-unused, unnecessary, error codes
Now that we've gotten the innaccurate error codes out of the way, we can
finally toss away a bunch of these, trimming down the error codes to
ones that are actually used and knocking out two TODO comments.
8 years ago
Lioncash
815d526a6a
kernel/shared_memory: Return ERR_INVALID_MEMORY_PERMISSIONS instead of ERR_INVALID_COMBINATION
This is more consistent with what the kernel does.
8 years ago
Lioncash
2438be15a9
kernel/server_port: Simplify emptiness check within ShouldWait()
8 years ago
Lioncash
1bec1b6e99
kernel/server_port: Change error case return value in Accept() to ERR_NOT_FOUND
This is what the kernel does in this instance.
8 years ago
Lioncash
1206987215
kernel/error: Remove leftover 3DS error codes
These are now entirely unused and can be removed.
8 years ago
Lioncash
fc5b2b9f14
kernel/svc: Amend returned error code for invalid priorities in CreateThread
Like with the previous change, the kernel doesn't return NOT_AUTHORIZED
here. It returns INVALID_THREAD_PRIORITY.
8 years ago
Lioncash
e71849e099
kernel/svc: Move and correct returned error code for invalid thread priorities in SetThreadPriority()
All priority checks are supposed to occur before checking the validity
of the thread handle, we're also not supposed to return
ERR_NOT_AUTHORIZED here.
8 years ago
Lioncash
ad85a2da06
kernel/error: Add error code for invalid pointers
The kernel appears to return 0xE601 for this situation. Particularly in
svcWaitSynchronization, svcReplyAndReceive, and svcGetThreadContext
8 years ago
Lioncash
7748fd0e43
kernel/error: Add error code for closed sessions
The kernel appears to return 0xF601 for this case.
8 years ago
Lioncash
94daae2847
profile_manager: Use std::optional instead of boost::optional
Now that we can actually use std::optional on macOS, we don't need to
continue using boost::optional here.
8 years ago
Lioncash
e89f14a0af
yuzu/main: Notify user of loading errors with Amiibo data
We shouldn't silently continue if loading failed, since the general
assumption is that no messages showing up implicitly indicates success.
8 years ago
Lioncash
b34685863a
npad: Remove unused controller variable from OnInit()
This also gets rid of variable shadowing related to the lambda parameter
a little bit below this code as well.
8 years ago
Lioncash
8e4c18f8b1
aoc_u: Make use of previously-unused CheckAOCTitleIDMatchesBase() function
We can just call the function instead of duplicating the code here. This
also prevents an unused function warning.
We also don't need to take the lambda capture by reference. It's just a
u64 value, so by value is fine here.
8 years ago
Zach Hilman
1977ed3d9f
profile_manager: Create save data if it doesn't exist on use
8 years ago
Zach Hilman
da04134ce6
acc: Fix account UUID duplication error
8 years ago
Zach Hilman
e1784822f2
configure_system: Clear selection after user delete
8 years ago
Zach Hilman
8bdf2fe7b7
profile_manager: Load user icons, names, and UUIDs from system save
8 years ago