Andrea Pappacoda
b1585fed5a
chore: fix some typos
Fix some typos reported by Lintian
3 years ago
german77
c990e2d2f5
core: nfp: Workaround for lack of multiple nfp interfaces
3 years ago
Narr the Reg
8c377e882e
core: nfp: Correct date and amiibo name
3 years ago
Narr the Reg
8301e770f9
core: nfp: Implement Convert and RecreateApplicationArea, accuracy fixes
3 years ago
german77
44dff8f633
core: nfp: Implement amiibo encryption
4 years ago
german77
c7890ebccc
core: Replace all instances of ResultCode with Result
4 years ago
Morph
2b87305d31
general: Convert source file copyright comments over to SPDX
This formats all copyright comments according to SPDX formatting guidelines.
Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
4 years ago
Morph
6e2ff19bc7
service: Move mii enums and structs into its own file
Moves these into types.h, since other files also make use of these types.
4 years ago
german77
c2942fa5c3
nfp: Allow files without password data
4 years ago
Narr the Reg
11680706a7
nfp: Separate nfc tag from amiibo data
4 years ago
german77
f2b6837fb7
nfp: Address compiler issues
4 years ago
Narr the Reg
bb831fae3a
nfp: Validate amiibo files
4 years ago
german77
68ed8e2388
nfp: Improve implementation
5 years ago
german77
78aa2441d8
nfp: Move IUser class to header and add missing enum and structs
5 years ago
german77
2dba88f9fd
nfp: Sort functions by command number
5 years ago
bunnei
5192e8e092
core: hle: Remove global HLE lock.
- This was added early on as a hack to protect against some concurrency issues.
- It's not clear that this serves any purpose anymore, and if it does, individual components should be fixed rather than using a global recursive mutex.
4 years ago
ameerj
d27abf5546
core: Remove unused includes
4 years ago
Morph
0f5f1ec430
service: Replace service event creation with ServiceContext::CreateEvent
The service context helps to manage all created events and allows us to close them upon destruction.
4 years ago
Morph
7ebc38a6d1
general: Replace RESULT_SUCCESS with ResultSuccess
Transition to PascalCase for result names.
5 years ago
bunnei
617803fb5d
hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject.
5 years ago
bunnei
9f82c577d0
hle: kernel: Ensure all kernel objects with KAutoObject are properly created.
5 years ago
bunnei
949231d69c
hle: kernel: Migrate KEvent to KAutoObject.
5 years ago
bunnei
8b224f05c9
hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.
5 years ago
Lioncash
32e763c64c
nfp: Correct uninitialized size being used within GetTagInfo()
We were previously the name of the object being initialized within its
own initializer, which results in uninitialized data being read.
5 years ago
bunnei
0508831455
hle: kernel: Reimplement KReadableEvent and KWritableEvent.
5 years ago
bunnei
80d0eb3bbd
hle: kernel: Rename WritableEvent to KWritableEvent.
5 years ago
bunnei
284a4d9283
hle: kernel: Rename ReadableEvent to KReadableEvent.
5 years ago
bunnei
3d70b4a4ea
core: hle: kernel: Rename Thread to KThread.
5 years ago
bunnei
a45d39c9d6
hle: service: nfp: Remove incorrect signaling behavior in GetDeviceState.
5 years ago
Lioncash
346271b80b
service: Eliminate usages of the global system instance
Completely removes all usages of the global system instance within the
services code by passing in the using system instance to the services.
5 years ago
bunnei
deb3536936
Revert "core: Fix clang build"
5 years ago
Lioncash
18636013c9
core: Fix clang build
Recent changes to the build system that made more warnings be flagged as
errors caused building via clang to break.
Fixes #4795
5 years ago
Lioncash
45a608088c
nfp: Eliminate two unnecessary copies
GetAmiiboBuffer() returns by const reference, so we can use a reference
instead of taking the returned buffer by value.
5 years ago
David
ecaac59acd
ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer ( #4465 )
* ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer
With the support of C++20, we can use concepts to deduce if a type is an STL container or not.
* More agressive concept for stl containers
* Add -fconcepts
* Move to common namespace
* Add Common::IsBaseOf
5 years ago
VolcaEM
940c5932c7
Rename GetApplicationArea2 to GetApplicationAreaSize
6 years ago
VolcaEM
9338a6a1cf
service: Update function tables
6 years ago
bunnei
4a4516868c
kernel: Implement a more accurate IPC dispatch.
6 years ago
bunnei
5cb0f276fe
kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. ( #3154 )
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects.
- See https://github.com/citra-emu/citra/pull/4710 for details.
6 years ago
Lioncash
20d6637c03
service: Resolve sign conversion errors
These are fairly trivial to resolve and most of the changes entail
using RESULT_UNKNOWN over ResultCode(-1).
6 years ago
bunnei
eeef564c02
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
ReinUsesLisp
88f3837483
service/nfp: Silence -Wunused and -Wswitch
6 years ago
David Marcec
37b2a234a2
Deglobalize System: NFP
6 years ago
Lioncash
45d71eed4f
core/kernel/object: Rename ResetType enum members
Renames the members to more accurately indicate what they signify.
"OneShot" and "Sticky" are kind of ambiguous identifiers for the reset
types, and can be kind of misleading. Automatic and Manual communicate
the kind of reset type in a clearer manner. Either the event is
automatically reset, or it isn't and must be manually cleared.
The "OneShot" and "Sticky" terminology is just a hold-over from Citra
where the kernel had a third type of event reset type known as "Pulse".
Given the Switch kernel only has two forms of event reset types, we
don't need to keep the old terminology around anymore.
7 years ago
Lioncash
eb88e9d088
general: Use deducation guides for std::lock_guard and std::unique_lock
Since C++17, the introduction of deduction guides for locking facilities
means that we no longer need to hardcode the mutex type into the locks
themselves, making it easier to switch mutex types, should it ever be
necessary in the future.
7 years ago
David Marcec
c7ba3312f4
Return no application area when games try to open an application area
This will prompt CreateApplicationArea
7 years ago
Lioncash
2935c16688
core/kernel: Remove unnecessary inclusions
Gets rid of a few unnecessary header dependencies in some source files.
7 years ago
Zach Hilman
543cea4c5d
travis: Use correct package for linux Qt5WebEngine
7 years ago
David Marcec
5bd0ff8f77
Device handle should not be a random id, instead it's the current npad id
Found during hardware testing
7 years ago
Zach Hilman
b0d0735e9b
kernel/event: Reference ReadableEvent from WritableEvent
7 years ago
Zach Hilman
fe0071f8fa
core: Port all current usages of Event to Readable/WritableEvent
7 years ago