Commit Graph

112 Commits

Author SHA1 Message Date
bunnei
f7ed5a6e29 Merge pull request #845 from lioncash/nfc
service: Add nfc services
2018-07-27 14:29:27 -07:00
Lioncash
405dde83f1 service: Add nfc services
Adds the skeleton of the nfc service based off the information provided
on Switch Brew.
2018-07-27 14:50:24 -04:00
Lioncash
f266b5eebd service/lbl: Implement EnableVrMode, DisableVrMode and GetVrMode
Implements these functions according to the information available on
Switch Brew.
2018-07-27 14:20:42 -04:00
Lioncash
01d7b26fd1 service: Add ldn services
Adds ldn services based off information provided by Switch Brew.
2018-07-26 01:48:06 -04:00
Lioncash
b01b502f52 logging/filter: Use std::string_view in ParseFilterString()
Allows avoiding constructing std::string instances, since this only
reads an arbitrary sequence of characters.

We can also make ParseFilterRule() internal, since it doesn't depend on
any private instance state of Filter
2018-07-20 15:58:46 -04:00
Lioncash
4ace3f7448 logging/backend: Add missing standard includes
A few inclusions were being satisfied indirectly. To prevent breakages
in the future, include these directly.
2018-07-20 15:31:27 -04:00
Lioncash
119a006aae logging/backend: Use std::string_view in RemoveBackend() and GetBackend()
These can just use a view to a string since its only comparing against
two names in both cases for matches. This avoids constructing
std::string instances where they aren't necessary.
2018-07-20 15:27:20 -04:00
Lioncash
a30849b934 externals: update fmt to version 5.1.0
Previously, we were on 4.1.0, which was a major version behind.
2018-07-18 17:46:17 -04:00
James Rowe
4e8c846c37 Logging: Dump all logs in the queue on close in debug mode 2018-07-15 13:02:09 -06:00
James Rowe
8b1a1939b5 Logging: Don't lock the queue for the duration of the write 2018-07-14 11:57:13 -06:00
bunnei
6ceee1bf3b Fix build and address review feedback 2018-07-02 21:45:48 -04:00
James Rowe
3e4df3574c Add configurable logging backends 2018-07-02 21:45:47 -04:00
James Rowe
489e98954c Update clang format 2018-07-02 21:45:47 -04:00
James Rowe
847a518200 Rename logging macro back to LOG_* 2018-07-02 21:45:47 -04:00
mailwl
84ed9c5251 Service/MM: add service and stub some functions 2018-06-05 12:19:29 +03:00
mailwl
24fb105f8c Service/BCAT: add module and services 2018-05-28 16:46:56 +03:00
Lioncash
742e121d9f log: Remove old logging macros and functions
Now that the old macros are no longer used, we can remove all functionality related to them.
2018-04-27 16:18:34 -04:00
David Marcec
1101c39491 Switched to NGLOG_WARNING 2018-04-26 20:03:12 -07:00
David Marcec
8748b04296 Added PREPO to logging backend, Removed comments from SaveReportWithUser 2018-04-26 14:19:34 -07:00
David Marcec
2230305b80 GetIUserInterface->CreateUserInterface, Added todos and stub logs. Playreport->PlayReport. 2018-04-22 19:02:18 -07:00
James Rowe
8b3ada255c Update fmtlib to fix msvc warnings
Additionally, when updating fmtlib, there was a change in fmtlib broke
how the old logging macro was overloaded, so this works around that by
just naming the fmtlib macro impl something different
2018-04-05 22:42:09 -06:00
Daniel Lim Wee Soong
d1cabb1c46 logging: Change FmtLogMessage to use variadic template instead of FMT_VARIADIC
Due to premature merging of #262 I think the build may be failing right now. Should merge this ASAP to fix it.
2018-04-03 10:31:54 +08:00
bunnei
20495718cd Merge pull request #262 from daniellimws/fmtlib-macros
Logging: Add fmtlib-based macros
2018-04-02 21:19:20 -04:00
bunnei
66933861f9 service: Add NFP module interface.
service: Initialize NFP service.

Log: Add NFP service as a log subtype.
2018-03-29 21:22:44 -04:00
N00byKing
a481230402 log.h: Change comment from citra to yuzu 2018-03-26 21:52:59 +02:00
mailwl
442fb85d79 Service/SSL: add ssl service 2018-03-23 09:32:50 +03:00
Daniel Lim Wee Soong
7bd86c4a89 Remove dependency chrono
Earlier chrono was included but after some code changed it was no longer needed

Forgot to remove it so I'm removing it now
2018-03-22 21:53:51 +08:00
Daniel Lim Wee Soong
fa5ff0bd20 Logging: Create logging macros based on fmtlib
Add a new set of logging macros based on fmtlib
Similar but not exactly the same as https://github.com/citra-emu/citra/pull/3533

Citra currently uses a different version of fmt, which does not support FMT_VARIADIC so
make_args is used instead. On the other hand, yuzu uses fmt 4.1.0 which doesn't have make_args yet
so FMT_VARIADIC is used.
2018-03-22 18:21:29 +08:00
mailwl
327cda7381 Service/spl: add module and services 2018-03-22 09:55:14 +03:00
mailwl
b929ab1ba8 Service: add fatal:u, fatal:p services 2018-03-20 16:59:02 +03:00
bunnei
96ce4dfb9e Merge pull request #206 from mailwl/aoc-listaddoncontent
Service/AOC: stub ListAddOnContent function
2018-02-20 10:45:50 -05:00
mailwl
cc97618363 Service/AOC: stub ListAddOnContent function 2018-02-20 10:30:12 +03:00
bunnei
0ecab746d8 logging: Add category for Friend service. 2018-02-19 17:31:54 -05:00
bunnei
79cbfbbccc log: Add logging category for NS services. 2018-02-14 21:43:11 -05:00
bunnei
fb0ea8502b logger: Add Time service logging category. 2018-02-04 22:59:52 -05:00
bunnei
b5d380607a logger: Add SET service logging category. 2018-02-04 22:55:45 -05:00
bunnei
1d6f6d60ae logger: Add PCTL service logging category. 2018-02-04 22:44:00 -05:00
bunnei
d93836cf1b logger: Add LM service logging category. 2018-02-04 22:41:55 -05:00
bunnei
62656be92c logger: Add APM service logging category. 2018-02-04 22:39:47 -05:00
bunnei
b57ff782e2 logger: Add NIFM service logging category. 2018-02-04 22:35:42 -05:00
bunnei
6824d374a1 logger: Add VI service logging category. 2018-02-04 22:26:44 -05:00
bunnei
abc7d700d5 logger: Add AM service logging category. 2018-02-04 16:58:12 -05:00
bunnei
b72d207ae5 logger: Add "account" service logging category. 2018-02-04 16:40:12 -05:00
st4rk
31c96a9b28 audout:u OpenAudioOut and IAudioOut (#138)
* Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation

* Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation

* audout:u OpenAudioOut implementation and IAudioOut cmd 1,2,3,4,5 implementation

* using an enum for audio_out_state as well as changing its initialize to member initializer list

* Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass

* Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass

* added missing Audio loggin subclass, minor fixes, clang comment breakline

* Solving backend logging conflict

* minor fix

* Fixed duplicated Service NVDRV in backend.cpp, my bad
2018-01-24 22:17:54 -05:00
Rozlette
e8a864b734 logging: add missing NVDRV subclass to macro list 2018-01-23 22:18:23 -06:00
David
134ed87074 Added nvmemp, Added /dev/nvhost-ctrl, SetClientPID now stores pid (#114)
* Added nvmemp, Added /dev/nvhost-ctrl, SetClientPID now stores pid

* used clang-format-3.9 instead

* lowercase pid

* Moved nvmemp handlers to cpp

* Removed unnecessary logging for NvOsGetConfigU32. Cleaned up log and changed to LOG_DEBUG

* using std::arrays instead of c arrays

* nvhost get config now uses std::array completely

* added pid logging back

* updated cmakelist

* missing includes

* added array, removed memcpy

* clang-format6.0
2018-01-21 17:59:50 -05:00
James Rowe
7d396de27a Format: Run the new clang format on everything 2018-01-20 16:45:11 -07:00
bunnei
d384de8cb7 loggin: Add IPC logging category. 2018-01-17 01:20:02 -05:00
bunnei
8f52aa7805 logging: Rename category "Core_ARM11" to "Core_ARM". 2017-10-23 00:13:12 -04:00
bunnei
7df43f253e hle: Initial implementation of NX service framework and IPC. 2017-10-14 22:18:42 -04:00