summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nifm (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-04-22Silence nifm spamKelebek11-3/+3
2023-03-01service: move hle_ipc from kernelLiam2-34/+34
2023-02-21service: refactor server architectureLiam2-10/+12
Converts services to have their own processes
2023-02-14remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades791-1/+1
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14add static lifetime to constexpr values to force compile time evaluation where possiblearades791-1/+1
Signed-off-by: arades79 <scravers@protonmail.com>
2023-01-02service: nifm: Initialize request stategerman771-0/+1
2023-01-02service: nifm: Match documentation namesgerman771-31/+56
2022-12-29hle_ipc: Rename ReadBufferSpan to ReadBufferameerj1-1/+1
2022-12-25service: Use ReadBufferSpan where it is trivial to do soameerj1-1/+1
2022-11-29service: nifm: Update stubs for Submit/GetRequestState/GetResultMorph1-7/+34
2022-08-15core, yuzu: Address first part of review commentsFearlessTobi1-0/+1
2022-08-15core, network: Add ability to proxy socket packetsFearlessTobi2-163/+205
2022-07-25yuzu: Add ui files for multiplayer roomsFearlessTobi1-2/+2
2022-06-29service: nifm: Stub GetInternetConnectionStatusgerman771-1/+41
2022-04-23general: Convert source file copyright comments over to SPDXMorph2-6/+4
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.
2022-03-19core: Reduce unused includesameerj1-1/+0
2021-11-04core: Remove unused includesameerj1-1/+0
2021-10-02service: Replace service event creation with ServiceContext::CreateEventMorph1-8/+24
The service context helps to manage all created events and allows us to close them upon destruction.
2021-08-27service: nifm: Populate fields in GetCurrentNetworkProfileMorph1-29/+37
Populates the current_address, subnet_mask, and gateway fields from the selected network interface.
2021-08-27service: nifm: Cleanup GetCurrentIpConfigInfoMorph1-26/+21
2021-08-16network: retrieve subnet mask and gateway infoSönke Holz1-8/+16
2021-08-13nifm: use operator*() instead of .value() to get value of std::optionalSönke Holz1-2/+2
2021-08-13nifm: treat a missing host IP address as a non-critical errorSönke Holz1-2/+2
2021-08-12configuration: add option to select network interfacespholz1-15/+21
This commit renames the "Services" tab to "Network" and adds a combobox that allows the user to select the network interface that yuzu should use. This new setting is now used to get the local IP address in Network::GetHostIPv4Address. This prevents yuzu from selecting the wrong network interface and thus using the wrong IP address. The return type of Network::GetHostIPv4Adress has also been changed.
2021-08-07network: GetCurrentIpConfigInfo: return host IP addressSönke Holz1-1/+4
Service::NIFM::IGeneralService::GetCurrentIpConfigInfo currently hardcodes 192.168.1.100 as the IP address, which prevents LAN play from working correctly.
2021-06-28general: Make most settings a BasicSettinglat9nq1-3/+3
Creates a new BasicSettings class in common/settings, and forces setting a default and label for each setting that uses it in common/settings. Moves defaults and labels from both frontends into common settings. Creates a helper function in each frontend to facillitate reading the settings now with the new default and label properties. Settings::Setting is also now a subclass of Settings::BasicSetting. Also adds documentation for both Setting and BasicSetting.
2021-06-02general: Replace RESULT_SUCCESS with ResultSuccessMorph1-20/+20
Transition to PascalCase for result names.
2021-05-16nifm, ssl: Fix incorrect response sizesMorph1-1/+1
2021-05-06fixup! hle: kernel: Ensure all kernel objects with KAutoObject are properly created.bunnei1-2/+0
2021-05-06hle: kernel: Ensure all kernel objects with KAutoObject are properly created.bunnei1-0/+3
2021-05-06hle: kernel: Migrate KEvent to KAutoObject.bunnei1-7/+6
2021-04-15common: Move settings to common from core.bunnei1-1/+1
- Removes a dependency on core and input_common from common.
2021-02-05hle: kernel: Reimplement KReadableEvent and KWritableEvent.bunnei1-5/+8
2021-02-05hle: kernel: Rename WritableEvent to KWritableEvent.bunnei1-3/+3
2021-02-05hle: kernel: Rename ReadableEvent to KReadableEvent.bunnei1-1/+1
2021-01-31nifm: Stub GetCurrentIpConfigInfoMorph1-1/+29
- Used by Lets Sing 12
2021-01-31nifm: Stub GetCurrentNetworkProfileMorph1-1/+41
- Used by Minecraft Bedrock Edition - Used by Bloons TD 5
2021-01-31nifm: Add several structsMorph1-0/+87
2021-01-31nifm: Fix GetAppletInfo stubMorph1-1/+5
2020-11-27service: Eliminate usages of the global system instanceLioncash2-18/+15
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
2020-10-20Added remaining paramsDavid Marcec1-1/+4
2020-10-20nifm: GetAppletInfo stubDavid Marcec1-1/+8
Fixes crash for Catherine Full Body
2020-07-28services/nifm: Implement GetCurrentIpAddressReinUsesLisp1-1/+12
This is trivially implemented using the Network abstraction - Used by ftpd
2020-05-21clang-formatVolcaEM1-1/+2
2020-05-21nifm: correct assert in CreateTemporaryNetworkProfileVolcaEM1-1/+1
This has been wrong since https://github.com/yuzu-emu/yuzu/commit/0432af5ad1ec34f02071f6fdc5fc78149b059f18 I haven't found a game that called this function (and I haven't tried this on a real Switch), and because of this I haven't been able to check if the number in assert OR the string in the assert is wrong, but one of the two is wrong: NetworkProfileData is 0x18E, while SfNetworkProfileData is 0x17C, according to Switchbrew Switchbrew doesn't officially say that NetworkProfileData's size is 0x18E but it's possible to calculate its size since Switchbrew provides the size and the offset of all the components of NetworkProfileData (which isn't currently implemented in yuzu, alongside SfNetworkProfileData) NetworkProfileData documentation: https://switchbrew.org/wiki/Network_Interface_services#NetworkProfileData SfNetworkProfileData documentation: https://switchbrew.org/wiki/Network_Interface_services#SfNetworkProfileData Since I trust ogniK's work on reversing NIFM, I'd assume this was just a typo in the string
2019-11-12service: Update function tablesLioncash1-0/+8
Keeps the function tables up to date. Updated based off information from Switchbrew.
2019-11-07nifm: Only return that there's an internet connection when there's a BCATServerFernando Sahmkow1-3/+17
This helps games that need internet for other purposes boot as the rest of our internet infrastructure is incomplete.
2019-11-03kernel: events: Remove ResetType::Automatic.bunnei1-4/+2
- 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
2019-09-30nifm: Signal to applications that internet access is availableZach Hilman1-3/+10
2019-09-22Deglobalize System: NifmDavid Marcec2-13/+23
2019-05-18core/kernel/object: Rename ResetType enum membersLioncash1-2/+2
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.
2019-04-11service: Update service function tablesLioncash1-0/+4
Updates function tables based off information from SwitchBrew.
2018-11-29kernel/event: Reference ReadableEvent from WritableEventZach Hilman1-10/+6
2018-11-29core: Port all current usages of Event to Readable/WritableEventZach Hilman1-5/+13
2018-11-26Changed logging to be "Log before execution", Added more error logging, all services should now log on some levelDavid Marcec1-8/+21
2018-10-19nifm: Update service function tablesLioncash1-0/+1
Updated based off information provided by switchbrew.
2018-09-21Revert GetRequestStateDavid Marcec1-1/+1
Even though setting this value to 3 is more correct. We break more games than we fix due to missing implementations. We should keep this as 0 for the time being
2018-09-20Fixed submitDavid Marcec1-2/+1
2018-09-20Added IRequest::SubmitDavid Marcec1-1/+8
This fixes updated versions of SMO. Currently unable to test as I don't have an updated version
2018-09-19Reworked incorrect nifm stubs (#1355)David1-3/+10
* Reworked incorrect nifm stubs Need confirmation on `CreateTemporaryNetworkProfile`, unsure which game uses it but according to reversing. It should return a uuid which we currently don't do. Any 0 client id is considered an invalid client id. GetRequestState 0 is considered invalid. * Fixups for nifm
2018-08-29kernel: Eliminate kernel global stateLioncash1-2/+4
As means to pave the way for getting rid of global state within core, This eliminates kernel global state by removing all globals. Instead this introduces a KernelCore class which acts as a kernel instance. This instance lives in the System class, which keeps its lifetime contained to the lifetime of the System class. This also forces the kernel types to actually interact with the main kernel instance itself instead of having transient kernel state placed all over several translation units, keeping everything together. It also has a nice consequence of making dependencies much more explicit. This also makes our initialization a tad bit more correct. Previously we were creating a kernel process before the actual kernel was initialized, which doesn't really make much sense. The KernelCore class itself follows the PImpl idiom, which allows keeping all the implementation details sealed away from everything else, which forces the use of the exposed API and allows us to avoid any unnecessary inclusions within the main kernel header.
2018-07-25service/nifm: Deduplicate interface codeLioncash8-135/+30
Rather than having the same code for each nifm service variant, we can centralize it on one class and get rid of a bit of extra code.
2018-07-19hle/service: Make constructors explicit where applicableLioncash1-1/+1
Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services.
2018-07-12Added IsWirelessCommunicationEnabled, IsEthernetCommunicationEnabled, IsAnyInternetRequestAcceptedDavid Marcec1-3/+21
Since we have no socket implementation we should be returning 0 to indicate we're currently offline.
2018-07-03Rename logging macro back to LOG_*James Rowe1-12/+12
2018-06-06nifm: Stub out IRequest::SetConnectionConfirmationOption.bunnei1-1/+10
2018-04-24nifm: Move logging macros over to new fmt-compatible onesLioncash1-11/+11
2018-04-20service: Use nested namespace specifiers where applicableLioncash8-32/+16
Tidies up namespace declarations
2018-04-03nifm: GetResult does not return a data field.bunnei1-2/+1
2018-03-16IGeneralService: fix function listmailwl1-2/+3
2018-03-16Service/NIFM: stub cancel functionmailwl1-1/+6
2018-03-16Service/NIFM: convert to modulemailwl8-122/+75
2018-02-22Stub more functionsmailwl1-3/+29
2018-02-05logger: Add NIFM service logging category.bunnei4-11/+11
2018-02-03Service:nifm: add nifm:a, nifm:s and nifm:u servicesmailwl8-0/+368