summaryrefslogtreecommitdiff
path: root/src/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix build and address review feedbackGravatar bunnei2018-07-021-4/+4
|
* Add configurable logging backendsGravatar James Rowe2018-07-025-18/+257
|
* Update clang formatGravatar James Rowe2018-07-023-14/+11
|
* Rename logging macro back to LOG_*Gravatar James Rowe2018-07-027-70/+70
|
* Common/string_util: add StringFromBuffer functionGravatar mailwl2018-06-072-0/+6
| | | | convert input buffer (std::vector<u8>) to string, stripping zero chars
* Service/MM: add service and stub some functionsGravatar mailwl2018-06-052-0/+2
|
* Service/BCAT: add module and servicesGravatar mailwl2018-05-282-0/+2
|
* vector_math: Ensure members are always initializedGravatar Lioncash2018-05-011-9/+9
| | | | Ensures that values are always in a well-defined state.
* Merge pull request #424 from lioncash/stringGravatar bunnei2018-04-294-91/+9
|\ | | | | string_util: Remove StringFromFormat() and related functions
| * string_util: Remove StringFromFormat() and related functionsGravatar Lioncash2018-04-294-91/+9
| | | | | | | | Given we utilize fmt, we don't need to provide our own functions for formatting anymore
* | file_util: Make move constructor/assignment operator and related functions ↵Gravatar Lioncash2018-04-292-6/+6
| | | | | | | | | | | | | | | | | | 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.
* | file_util: Add static assertions to ReadBytes() and WriteBytes()Gravatar Lioncash2018-04-291-2/+6
|/ | | | | | 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.
* file_util: Remove compiler version checks around is_trivially_copyable()Gravatar Lioncash2018-04-281-8/+0
| | | | | | 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.
* log: Remove old logging macros and functionsGravatar Lioncash2018-04-272-54/+1
| | | | Now that the old macros are no longer used, we can remove all functionality related to them.
* general: Convert assertion macros over to be fmt-compatibleGravatar Lioncash2018-04-272-5/+6
|
* Merge pull request #380 from ogniK5377/service-implGravatar bunnei2018-04-272-0/+2
|\ | | | | Implemented some useful interfaces needed for games.
| * Switched to NGLOG_WARNINGGravatar David Marcec2018-04-261-1/+1
| |
| * Merge branch 'master' of https://github.com/yuzu-emu/yuzu into service-implGravatar David Marcec2018-04-263-792/+0
| |\
| * | Added PREPO to logging backend, Removed comments from SaveReportWithUserGravatar David Marcec2018-04-261-0/+1
| | |
| * | GetIUserInterface->CreateUserInterface, Added todos and stub logs. ↵Gravatar David Marcec2018-04-221-0/+1
| | | | | | | | | | | | Playreport->PlayReport.
* | | common: Move logging macros over to new fmt-capable macros where applicableGravatar Lioncash2018-04-264-67/+67
| |/ |/|
* | common: Remove chunk_file.h and linear_disk_cache.hGravatar Lioncash2018-04-263-792/+0
|/ | | | These are unused (and given chunk_file references Dolphin's >SVN< I doubt they were going to be used).
* Merge pull request #367 from lioncash/clampGravatar bunnei2018-04-201-5/+0
|\ | | | | math_util: Remove the Clamp() function
| * math_util: Remove the Clamp() functionGravatar Lioncash2018-04-201-5/+0
| | | | | | | | | | C++17 adds clamp() to the standard library, so we can remove ours in favor of it.
* | Merge pull request #361 from lioncash/commonGravatar bunnei2018-04-201-18/+12
|\ \ | | | | | | common_types: Minor changes
| * | common_types: Convert typedefs to using aliasesGravatar Lioncash2018-04-191-12/+12
| | | | | | | | | | | | May as well while we're making changes to this file.
| * | common_types: Remove unnecessary check for whether or not__func__ is definedGravatar Lioncash2018-04-191-6/+0
| |/ | | | | | | VS has supported this for quite a while.
* | Merge pull request #364 from lioncash/thread-localGravatar bunnei2018-04-201-19/+0
|\ \ | | | | | | common/thread: Remove unnecessary feature checking for thread_local
| * | common/thread: Remove unnecessary feature checking for thread_localGravatar Lioncash2018-04-191-19/+0
| |/ | | | | | | Every compiler we require already supports it.
* | Merge pull request #362 from lioncash/snprintfGravatar bunnei2018-04-201-5/+0
|\ \ | | | | | | common_funcs: Remove check for VS versions that we don't even support
| * | common_funcs: Remove check for VS versions that we don't even supportGravatar Lioncash2018-04-191-5/+0
| |/ | | | | | | | | We don't support any VS versions that don't already have snprintf in the standard library implementation.
* | Merge pull request #363 from lioncash/array-sizeGravatar bunnei2018-04-201-2/+0
|\ \ | | | | | | common_funcs: Remove ARRAY_SIZE macro
| * | common_funcs: Remove ARRAY_SIZE macroGravatar Lioncash2018-04-191-2/+0
| |/ | | | | | | C++17 has non-member size() which we can just call where necessary.
* | Merge pull request #366 from lioncash/vecGravatar bunnei2018-04-201-30/+0
|\ \ | | | | | | vector_math: Remove AsArray() and Write() functions from Vec[2,3,4]
| * | vector_math: Remove AsArray() and Write() functions from Vec[2,3,4]Gravatar Lioncash2018-04-191-30/+0
| |/ | | | | | | 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).
* / common: Remove code_block.hGravatar Lioncash2018-04-192-86/+0
|/ | | | | We use dynarmic, so this is unued. Anything else we need will likely use Xbyak, so this header isn't necessary any more.
* bit_field: Remove is_pod check, add is_trivially_copyable_v.Gravatar bunnei2018-04-171-6/+1
|
* common: Port cityhash code from Citra.Gravatar bunnei2018-04-135-147/+502
|
* bit_field: Make all methods constexpr.Gravatar bunnei2018-04-131-5/+5
|
* Update fmtlib to fix msvc warningsGravatar James Rowe2018-04-052-5/+8
| | | | | | 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
* logging: Change FmtLogMessage to use variadic template instead of FMT_VARIADICGravatar Daniel Lim Wee Soong2018-04-032-5/+11
| | | | Due to premature merging of #262 I think the build may be failing right now. Should merge this ASAP to fix it.
* Merge pull request #262 from daniellimws/fmtlib-macrosGravatar bunnei2018-04-0210-67/+111
|\ | | | | Logging: Add fmtlib-based macros
| * Remove dependency chronoGravatar Daniel Lim Wee Soong2018-03-221-1/+0
| | | | | | | | | | | | Earlier chrono was included but after some code changed it was no longer needed Forgot to remove it so I'm removing it now
| * Logging: Create logging macros based on fmtlibGravatar Daniel Lim Wee Soong2018-03-2210-67/+112
| | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #276 from N00byKing/acctoyuzuGravatar bunnei2018-04-021-1/+1
|\ \ | | | | | | Change Telemetry Names to yuzu and remove links to citra
| * | telemetry.h: Reword comment from citra to yuzuGravatar N00byKing2018-03-271-1/+1
| | |
* | | common: fix swap functions on Bitrig and OpenBSDGravatar Daniel Lim Wee Soong2018-04-031-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | service: Add NFP module interface.Gravatar bunnei2018-03-292-0/+2
|/ / | | | | | | | | | | service: Initialize NFP service. Log: Add NFP service as a log subtype.
* | log.h: Change comment from citra to yuzuGravatar N00byKing2018-03-261-1/+1
| |
* | file_util.h: Update Comment from citra to yuzuGravatar N00byKing2018-03-261-1/+1
| |