lizzie
395613b01f
[common/logging] Simplify logging logic and fix issues when logging before system is created ( #3688 )
- our logging code was bigger than spdlog itself, why???? just keep it simple
- fix issues when logging before logging system is even started
- removes the "initialized logging twice" issue
- removes uneeded indirection in file logging
- uses direct formatting instead of jumping hoopla-around the fmt::format() ressult
- code duplication and dead code removal as usual
I did explore dup2() but I think it's not worth the hassle
I did try `fwopen()` but it's better if things are just kept as-is.
there is a lot of noise because I removed a bunch of redundant files on logging and just put everything in one file
now normally this wouldn't be a good idea, however consider: the complexity of logging; it's less than 500 lines... does it really need a whole subsystem?!?!?! ITS JUST LOGGING
Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3688
Reviewed-by: crueter <crueter@eden-emu.dev>
Reviewed-by: DraVee <chimera@dravee.dev>
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
1 month ago
Gamer64
bb94cff886
[chore] Fixed a couple memory leaks using up ~15 MB each iteration ( #398 )
Co-authored-by: Jarrod Norwell <official.antique@gmail.com>
Co-authored-by: Gamer64 <76565986+Gamer64ytb@users.noreply.github.com>
Co-authored-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/398
Reviewed-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Co-authored-by: Gamer64 <gamer64@eden-emu.dev>
Co-committed-by: Gamer64 <gamer64@eden-emu.dev>
4 months ago
lizzie
191e4c75a1
[meta] fix license headers ( #2547 )
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2547
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
7 months ago
lizzie
9d2681ecc9
[cmake] enable clang-cl and WoA builds ( #348 )
Compilation and CMake fixes for both Windows on ARM and clang-cl, meaning Windows can now be built on both MSVC and clang on both amd64 and aarch64.
Compiling on clang is *dramatically* faster so this should be useful for CI.
Co-authored-by: crueter <crueter@eden-emu.dev>
Co-authored-by: crueter <crueter@crueter.xyz>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/348
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Reviewed-by: crueter <crueter@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
7 months ago
FearlessTobi
4d55e58ee4
scope_exit: Make constexpr
Allows the use of the macro in constexpr-contexts.
Also avoids some potential problems when nesting braces inside it.
2 years ago
Viktor Szépe
8f8a15827f
Fix more typos
2 years ago
german77
9508a12379
input_common: joycon: Move vibrations to a queue
3 years ago
Liam
445d504f94
ci: fix new codespell errors
3 years ago
german77
c6a065cb08
input_common: Allow timeouts to happen while scanning for a ring
3 years ago
german77
38b68d1783
input_common: Remove duplicated DriverResult enum
3 years ago
german77
4c2f8ac0eb
input_common: Dont try to read/write data from 3rd party controllers
3 years ago
Narr the Reg
b24451c571
input_common: Implement native mifare support
3 years ago
12101111
3f3e986098
input_common: rename PAGE_SIZE to avoid conflict
See also: https://github.com/yuzu-emu/yuzu/issues/8779
3 years ago
Narr the Reg
60ba48c5e2
input_common: Implement amiibo writting
3 years ago
Narr the Reg
e0d140581b
input_common: Fix pro controller amiibo support
3 years ago
german77
62d019dd72
input_common: Make amiibo scanning less demanding
3 years ago
german77
5d49fffd67
input_common: Fix nfc detection for joycons
3 years ago
Liam
5be8a74b0c
general: fix spelling mistakes
3 years ago
Narr the Reg
822a967bca
input_common: Minor typo issues ( #9922 )
3 years ago
german77
b1913d2db3
input_common: joycon: Add stick input from passive reports
3 years ago
arades79
60a68839ee
remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistency
Signed-off-by: arades79 <scravers@protonmail.com>
3 years ago
arades79
adcef452e0
add static lifetime to constexpr values to force compile time evaluation where possible
Signed-off-by: arades79 <scravers@protonmail.com>
3 years ago
Narr the Reg
75039440f3
input_common: Reintroduce custom pro controller support
3 years ago
Narr the Reg
c98ef11cfe
input_common: Simplify stick from button
3 years ago
Narr the Reg
3fcf573751
input_common: joycon: Remove Magic numbers from common protocol
3 years ago
Narr the Reg
954f7206a6
input_common: joycon: Fill missing enum data
3 years ago
Levi Behunin
2ff6c44168
Move to Clang Format 15
Depends on https://github.com/yuzu-emu/build-environments/pull/69
clang-15 primary run
3 years ago
Narr the Reg
e700634d3c
input_common: joycon: Replace ReadSPI vector with span
3 years ago
Narr the Reg
f20ec6f69b
input_common: joycon: Remove magic numbers from calibration protocol
3 years ago
Narr the Reg
8666d84926
input_common: Implement SetLowPowerMode and TriggersElapsed for the joycon driver
3 years ago
Narr the Reg
a8579f0b26
Revert 9617 and fix it on input_common
3 years ago
german77
13ccfd78bd
input_common: Address byte review
3 years ago
german77
21a62d4752
input_common: Drop Pro controller support from custom driver
3 years ago
german77
4b7ad51ce3
input_common: Fix issue where ring and irs are enabled at the same time
3 years ago
Narr the Reg
91f98f57b3
input_common: Implement joycon ir camera
3 years ago
german77
22eb8ce395
yuzu: Add ring controller test button
3 years ago
german77
5cbeb6f1c4
input_common: Use DriverResult on all engines
3 years ago
german77
82774f546a
Address review comments
3 years ago
Narr the Reg
8dbef30cb7
core: hid: Fix input regressions
3 years ago
german77
b40c5ba2c3
input_common: Implement joycon nfc
3 years ago
Narr the Reg
4d68a82563
input_common: Add support for joycon ring controller
3 years ago
Narr the Reg
046e95be06
input_common: Add support for joycon input reports
3 years ago
Narr the Reg
f7164f77d6
input_common: Use calibration from joycon
3 years ago
Narr the Reg
d2f5eae036
input_common: Add support for joycon generic functions
3 years ago
Narr the Reg
147faa16ef
input_common: Add joycon low level functions
3 years ago
Narr the Reg
0e41ae9595
input_common: Initial skeleton for custom joycon driver
3 years ago
Narr the Reg
243f2931b5
input_common: Create an update engine
3 years ago
Lioncash
23e85d2d85
input_common/helpers: Mark analog property structs members as static constexpr
These are const with no dependency on any other data members, so we can
make these static constexpr to reduce the overall object size.
3 years ago
Lioncash
0862aabdc6
common/input: Add helpers functions for creating input and output devices
Avoids the redundancy of needing to explictly specify the common
namespace and the type.
3 years ago
Narr the Reg
8e0e45dcb9
core: hid: Implement true multitouch support
3 years ago