Subv
c93c5a72bb
Return an error code when connecting to a saturated port.
The error code was taken from the 3DS kernel.
9 years ago
Subv
61a2fe8c3b
HLE: Use a member variable instead of a virtual function to retrieve the max number of sessions that can be connected to an HLE service at the same time.
9 years ago
Subv
00f0c77570
Split SessionRequestHandler::HandleSyncRequest into HandleSyncRequest, TranslateRequest and HandleSyncRequestImpl.
HandleSyncRequest now takes care of calling the command buffer translate function before actually invoking the command handler for HLE services.
9 years ago
Subv
dd8887c8cf
KServerPorts now have an HLE handler "template", which is inherited by all ServerSessions created from it.
9 years ago
Yuri Kunde Schlesner
efc8179747
GSP: Downgrade log severity of SetAxiConfigQoSMode
This function doesn't need to do anything for HLE and some games call it
quite often, spamming up the logs.
9 years ago
Subv
ed210c32b3
Threads do not wait for the server endpoint to call AcceptSession before returning from a ConnectToPort or GetServiceHandle call.
9 years ago
Subv
2eceee3a4c
Fixed the rebase mistakes.
9 years ago
Subv
009b15b3aa
A bit of a redesign.
Sessions and Ports are now detached from each other.
HLE services are handled by means of a SessionRequestHandler class, Interface now inherits from this class.
The File and Directory classes are no longer kernel objects, but SessionRequestHandlers instead, bound to a ServerSession when requested.
File::OpenLinkFile now creates a new session pair and binds the File instance to it.
9 years ago
Subv
c5e7e0fa26
IPC/HLE: Associate the ClientSessions with their parent port's HLE interface if it exists.
Pass the triggering ServerSession to the HLE command handler to differentiate which session caused the request.
10 years ago
Subv
c19afd2118
Kernel/HLE: Service::Interface no longer inherits from any Kernel object, and is now its own standalone class.
Interface is now used by aggregation in ClientPort, to forward service commands to their HLE implementation if needed.
10 years ago
Subv
0a33d915f8
fixup! Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.
10 years ago
Subv
073653e858
Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.
All handles obtained via srv::GetServiceHandle or svcConnectToPort are references to ClientSessions.
Service modules will wait on the counterpart of those ClientSessions (Called ServerSessions) using svcReplyAndReceive or svcWaitSynchronization[1|N], and will be awoken when a SyncRequest is performed.
HLE Interfaces are now ClientPorts which override the HandleSyncRequest virtual member function to perform command handling immediately.
10 years ago
mailwl
5b136aa211
Set client SDK version to Service APIs
9 years ago
wwylele
589b642790
FileSys: Implement OtherSaveData
9 years ago
wwylele
b25f19ac26
FS: add missing MediaType
9 years ago
wwylele
5af117e00c
FileSys: abstract SD save data archive source
9 years ago
mailwl
ec15e485c9
Output parameters to log
9 years ago
mailwl
d4cadf11fc
MIC_U: Stub service funcions
9 years ago
pippo2931
0c9c97e5ea
Bravely Default/Second stuck #1822 ( #2188 )
* Bravely Default/Second stuck #1822
CancelLibraryApplet stub
* Log parameter.
* Taking care of comments
* Sync with 3DBrew
* White space ?
* lower case
9 years ago
Subv
d7ab4fd53d
APT/Applets: Renamed the members of the SignalType enum.
Names now make sense and match 3dbrew.
9 years ago
wwylele
d7d6975af0
FileSys: rename SaveDataCheck archive to NCCH archive
According to the observation from game and 3dbrew "Used for accessing general NCCH data"
9 years ago
wwylele
5c6e13a171
PTM & CFG: use the correct path and error code according to the new FileSys policy
9 years ago
wwylele
0987783699
FileSys: add SDMCWriteOnlyArchive
9 years ago
wwylele
dd5c15abd0
cfg: add config block 0x00090000
9 years ago
mailwl
af7f5bef8d
Style fix
9 years ago
mailwl
5872abeab9
Rename AcConfig, change types u8 to u32
9 years ago
mailwl
a62df98686
AC_U: Stub functions, used if EULA agreed
9 years ago
wwylele
4dd8a831bd
FileSys: make Archive interfaces return error code
and make the mode parameter a reference since it is a BitField union
9 years ago
Jan Beich
702439b519
core: some errno values are uncommon on Unix
src/core/hle/service/soc_u.cpp:107:6: error: 'ENODATA' was not declared in this scope
{ENODATA, 43},
^
src/core/hle/service/soc_u.cpp:117:6: error: 'ENOSR' was not declared in this scope
{ENOSR, 53},
^
src/core/hle/service/soc_u.cpp:118:6: error: 'ENOSTR' was not declared in this scope
{ENOSTR, 54},
^
src/core/hle/service/soc_u.cpp:139:6: error: 'ETIME' was not declared in this scope
{ETIME, 75},
^
9 years ago
mailwl
f672c7bd24
FRD: fix GetMyFriendKey
9 years ago
Ricardo de Almeida Gonzaga
13d46f6820
Fix typos
9 years ago
wwylele
32789a70fb
NWM: stub Initialize with an error
9 years ago
JamePeng
691f069743
Rework the code of err:f service
9 years ago
JamePeng
bd8c80a7b4
Update the stub code of BOSS
9 years ago
wwylele
257e7afb79
fs: clean up log format
9 years ago
wwylele
96b0e9476b
fs: implement DeleteDirectoryRecursively
9 years ago
Yuri Kunde Schlesner
84fbbe2629
Use negative priorities to avoid special-casing the self-include
9 years ago
Emmanuel Gil Peyrot
ebdae19fd2
Remove empty newlines in #include blocks.
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
9 years ago
Yuri Kunde Schlesner
396a8d91a4
Manually tweak source formatting and then re-run clang-format
9 years ago
Emmanuel Gil Peyrot
dc8479928c
Sources: Run clang-format on everything.
9 years ago
wwylele
1c9612b791
LDR: Implement CRO
10 years ago
Yuri Kunde Schlesner
1f7ec4be9b
Auto-detect original shared_font.bin memory base
This allows a file dumped from either an o3DS or a n3DS (and potentially
even an original unrebased file) to be used.
9 years ago
Lectem
a94fb932ff
fix #1942 and adds a few IPC functions for descriptors
10 years ago
Henrik Rydgard
9a9e9dc375
Instead of segfaulting, log an error to remind the user to dump the shared font file
10 years ago
JamePeng
d5aa474788
Correct APT::0x00550040 and APT::0x00560000 function
10 years ago
JamePeng
f87bb8ba0a
Fix the errorcode of archive handle
10 years ago
mailwl
e06f2705f0
HLE/Applets: Implement ErrEula applet
10 years ago
Subv
8752f07e8e
HLE/FS: Document some command parameters and implemented command 0x08560240 (CreateLegacySystemSaveData)
10 years ago
wwylele
ab2eef396a
Service::CFG/FS: add and refactor out utilities for front-end
10 years ago
wwylele
457b6413e6
Service::CFG: move known block ID to an enum
10 years ago