James Rowe
e159c550d8
Rename logging macro back to LOG_*
8 years ago
mailwl
b70838ca60
Common/string_util: add StringFromBuffer function
convert input buffer (std::vector<u8>) to string, stripping zero chars
8 years ago
mailwl
7dee92618f
Service/MM: add service and stub some functions
8 years ago
mailwl
3c612dea08
Service/BCAT: add module and services
8 years ago
Lioncash
7bee2c9d13
vector_math: Ensure members are always initialized
Ensures that values are always in a well-defined state.
8 years ago
Lioncash
d1e3e0eb42
string_util: Remove StringFromFormat() and related functions
Given we utilize fmt, we don't need to provide our own functions for formatting anymore
8 years ago
Lioncash
22b7e4fcf6
file_util: Make move constructor/assignment operator and related functions noexcept
Without this, it's possible to get compilation failures in the (rare) scenario where
a container is used to store a bunch of live IOFile instances, as they may be using
std::move_if_noexcept under the hood. Given these definitely don't throw exceptions
this is also not incorrect to add either.
8 years ago
Lioncash
1c77c732e6
file_util: Add static assertions to ReadBytes() and WriteBytes()
Ensure that the actual types being passed in are trivially copyable. The internal
call to ReadArray() and WriteArray() will always succeed, since they're passed a pointer to char*
which is always trivially copyable.
8 years ago
Lioncash
5155b90870
file_util: Remove compiler version checks around is_trivially_copyable()
The minimum clang/GCC versions we support already support this. We can also
remove is_standard_layout(), as fread and fwrite only require the type to be
trivially copyable.
8 years ago
Lioncash
ea0bac3599
log: Remove old logging macros and functions
Now that the old macros are no longer used, we can remove all functionality related to them.
8 years ago
Lioncash
324ee31fc3
general: Convert assertion macros over to be fmt-compatible
8 years ago
David Marcec
2810310018
Switched to NGLOG_WARNING
8 years ago
Lioncash
f4cc29c07c
common: Move logging macros over to new fmt-capable macros where applicable
8 years ago
David Marcec
6f6cac9366
Added PREPO to logging backend, Removed comments from SaveReportWithUser
8 years ago
Lioncash
67e3bb3e87
common: Remove chunk_file.h and linear_disk_cache.h
These are unused (and given chunk_file references Dolphin's >SVN< I doubt they were going to be used).
8 years ago
David Marcec
9591689dbc
GetIUserInterface->CreateUserInterface, Added todos and stub logs. Playreport->PlayReport.
8 years ago
Lioncash
043546e4db
math_util: Remove the Clamp() function
C++17 adds clamp() to the standard library, so we can remove ours in
favor of it.
8 years ago
Lioncash
bd4e50afb9
vector_math: Remove AsArray() and Write() functions from Vec[2,3,4]
These are all unused and the Write() ones should arguably not even be in the interface. There are better ways to provide this if we ever need it (like iterators).
8 years ago
Lioncash
4e99ac0553
common: Remove code_block.h
We use dynarmic, so this is unued. Anything else we need will likely use Xbyak, so
this header isn't necessary any more.
8 years ago
Lioncash
9d21769d88
common/thread: Remove unnecessary feature checking for thread_local
Every compiler we require already supports it.
8 years ago
Lioncash
c9f5ae4fcc
common_funcs: Remove ARRAY_SIZE macro
C++17 has non-member size() which we can just call where necessary.
8 years ago
Lioncash
4b0e4421f4
common_funcs: Remove check for VS versions that we don't even support
We don't support any VS versions that don't already have snprintf in the
standard library implementation.
8 years ago
Lioncash
0f07311af3
common_types: Convert typedefs to using aliases
May as well while we're making changes to this file.
8 years ago
Lioncash
ad470a1478
common_types: Remove unnecessary check for whether or not__func__ is defined
VS has supported this for quite a while.
8 years ago
bunnei
33a0dddf78
bit_field: Remove is_pod check, add is_trivially_copyable_v.
8 years ago
bunnei
c30c48e052
common: Port cityhash code from Citra.
8 years ago
bunnei
7112683376
bit_field: Make all methods constexpr.
8 years ago
James Rowe
b957a3647a
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
8 years ago
Daniel Lim Wee Soong
145a4c3c2a
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.
8 years ago
Daniel Lim Wee Soong
96cb786cd1
common: fix swap functions on Bitrig and OpenBSD
swap{16,32,64} are defined as macros on the two, but client code
tries to invoke them as Common::swap{16,32,64}, which naturally
doesn't work. This hack redefines the macros as inline functions
in the Common namespace: the bodies of the functions are the
same as the original macros, but relying on OS-specific
implementation details like this is of course brittle.
8 years ago
bunnei
f5c2d62b3a
service: Add NFP module interface.
service: Initialize NFP service.
Log: Add NFP service as a log subtype.
8 years ago
N00byKing
dfa21f372b
telemetry.h: Reword comment from citra to yuzu
8 years ago
N00byKing
e57ba11168
log.h: Change comment from citra to yuzu
8 years ago
N00byKing
770ee77982
file_util.h: Update Comment from citra to yuzu
8 years ago
N00byKing
6b5f41b812
cpu_detect.cpp: Change comment from citra to yuzu
8 years ago
mailwl
96164de3a0
Service/SSL: add ssl service
8 years ago
Daniel Lim Wee Soong
df93e4f9b0
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
8 years ago
Daniel Lim Wee Soong
a0298a552c
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.
8 years ago
mailwl
e0d1e257a8
Service/spl: add module and services
8 years ago
N00byKing
9b619405e9
CMake: Set EMU_ARCH_BITS in CMakeLists.txt
8 years ago
mailwl
ce7e0e503b
Service: add fatal:u, fatal:p services
8 years ago
mailwl
4f067f83a7
Service/AOC: stub ListAddOnContent function
8 years ago
bunnei
b43fef19d4
logging: Add category for Friend service.
8 years ago
bunnei
201a04b951
log: Add logging category for NS services.
8 years ago
bunnei
2b621bc1d4
logger: Add Time service logging category.
8 years ago
bunnei
99ff0f523f
logger: Add SET service logging category.
8 years ago
bunnei
18ce7f89f9
logger: Add PCTL service logging category.
8 years ago
bunnei
9f14ebbd89
logger: Add LM service logging category.
8 years ago
bunnei
3aeeee5ae3
logger: Add APM service logging category.
8 years ago
bunnei
aa91ad0445
logger: Add NIFM service logging category.
8 years ago