FearlessTobi
de1fe7e6e3
Address review comments
2022-11-15 11:20:35 +01:00
Jan Beich
35f7f5e3e3
common: switch to nullptr for sysctl's empty new value
2022-11-15 10:34:56 +01:00
Jan Beich
6dabf10009
common: add sysconf() fallback
...
src/common/memory_detect.cpp:15:10: fatal error: 'sys/sysinfo.h' file not found
#include <sys/sysinfo.h>
^~~~~~~~~~~~~~~
2022-11-15 10:34:56 +01:00
Morph
cb8b72069f
Fix macOS code and change "Swapfile" to "Swap"
2022-11-15 10:34:56 +01:00
Morph
a67f205cfe
main: Log host system memory parameters
...
Logs both physical memory and swapfile sizes, this is useful for support.
2022-11-15 10:34:56 +01:00
Tobias
bb05d8c12a
src/CMakeLists: Enforce multiple warnings on MSVC ( #5692 )
2022-11-09 23:14:28 +01:00
Tobias
1ddea27ac8
code: Cleanup and warning fixes from the Vulkan PR ( #6163 )
...
Co-authored-by: emufan4568 <geoster3d@gmail.com>
Co-authored-by: Kyle Kienapfel <Docteh@users.noreply.github.com>
2022-11-04 23:32:57 +01:00
SachinVin
fbe06234b1
Core: Port Exclusive memory impl from yuzu
...
core\arm\dynarmic\arm_dynarmic.cpp: fix build
core\arm\dynarmic\arm_dynarmic.cpp: Fixes
CPP 20
2022-10-23 13:19:33 +05:30
SachinVin
4a590d1fcb
xbyak: Correct xbyak include directory
...
xbyak is intended to be installed in /usr/local/include/xbyak.
Since we desire not to install xbyak before using it, we copy the headers
to the appropriate directory structure and use that instead
Co-authored-by: merry <git@mary.rs>
2022-10-23 13:19:32 +05:30
Vitor K
9626bdf385
Gate use of custom directories behind a variable ( #6157 )
...
previous changes had forced every single user to use custom
directories for NAND and SDMC. Those paths were saved to the
config file and would interact badly with portable builds.
2022-10-22 19:09:47 +05:30
liushuyu
c6153bb32e
CI: fix recent build issues ( #6148 )
...
Co-authored-by: Vitor K <vitor-kiguchi@hotmail.com>
2022-10-05 18:43:07 +02:00
Vitor K
6a9d36608f
Allow GetPhysicalRef to hold a past-the-end offset ( #6141 )
...
Games will sometimes use these when representing open right bounds
and so disallowing it caused regressions, with a notable example
being when MemoryFill is called to the end of vram, causing an
"invalid end address" error.
This had been noted on a comment in GetPhysicalRef prior to the
regression.
2022-10-01 16:07:27 +05:30
GPUCode
cbd5d1c15c
Upgrade codebase to C++ 20 + fix warnings + update submodules ( #6115 )
2022-09-21 18:36:12 +02:00
Vitor Kiguchi
a8d82a2a04
Include gl_shader_util in shader cache version hash calculation
2022-09-03 14:44:40 +02:00
emufan4568
e6137d7874
renderer_opengl: Remove GLvec* types
...
* The common types already exist and provide all the functionality required, why invent new types?
2022-08-21 12:22:58 +03:00
JosJuice
ce07ef1821
android: Use correct encoding when converting strings
...
The JNI functions that have "UTF" their name use "modified UTF-8"
rather than the standard UTF-8 that Citra uses, at least according
to Oracle's documentation, so it is incorrect for us to use them.
This change fixes the problem by converting between UTF-8 and
UTF-16 manually instead of letting JNI do it for us.
2022-08-03 15:54:15 +02:00
SachinVin
d84b3d9330
Merge pull request #6053 from Morph1984/assert-noinline
...
common/assert: Use noinline lambda instead of a wrapper template
2022-07-03 11:50:50 +05:30
Morph
edbe7600f5
common/assert: Use noinline lambda instead of a wrapper template
...
MSVC now supports specifying __declspec on lambda functions
2022-06-30 08:58:36 -04:00
Morph
49c0ed297f
common_funcs: Add CITRA_NO_INLINE
2022-06-14 07:18:12 -04:00
Morph
1cc1c33a15
common: Resolve C4267 warning on MSVC
...
Also removes Timer::GetDoubleTime() as it is unused.
2022-05-18 00:05:40 -04:00
SachinVin
b6ff58a9d6
FileUtil, Frontends: Fix updating custom NAND/SDMC path
2022-04-30 15:53:45 +05:30
SachinVin
0af8406e44
Common: Add CPU feature detection for ARM64
2022-04-14 20:44:57 +05:30
bunnei
6dfb74a8b9
Merge pull request #5906 from SachinVin/android2
...
Backport some more stuff from android
2022-01-04 17:40:33 -08:00
SachinVin
1079f61260
Android:file_util.cpp: remove unnecessary ROOT_DIR
2021-12-18 16:52:24 +05:30
Carloschi7
0126ecb3e2
added std::vector<V> instead of V* ( #5902 )
2021-12-18 12:01:09 +05:30
SachinVin
6183b5d76c
Merge pull request #5823 from SachinVin/dyn
...
Android: Backport easy stuff
2021-10-03 18:58:20 +05:30
SachinVin
9ad6bc29b5
common/logging: Create a new backed for android's logcat
...
logging
2021-10-02 16:38:18 +05:30
bunnei
4cc8d43fa1
android: log: TrimSourcePath: Cannot be constexpr.
2021-09-29 22:51:14 +05:30
James Rowe
9f4501aceb
Perf: Remove more breakpoint checking in the interpreter. Move filtering earlier in the logging chain
2021-07-24 23:36:56 +05:30
Pengfei
f85bde3ca3
Replace &vec[0]
with vec.data()
...
When the vector is empty, using `&vec[0]` involves undefined behaviour. While that works fine most of the time, Flatpak builds aborted on a failed `__builtin_expect`.
I searched for such occurences across the codebase with the regex `(?<!&)&\w+\[0\]` and fixed those that would potentially cause issues.
2021-07-14 17:01:14 +08:00
Max Fedotov
a2f34ea82b
gcc 11 compatibility fix (suggestion) ( #5778 )
...
Fixes missing include and runtime variable in offsetof
* gcc 11 compatibility fix
* Revert "gcc 11 compatibility fix"
This reverts commit bf5711d944
.
* gcc 11 compatibility fix (with pointer math)
* Don't require pointers for framebuffer field math
* Code style fix (clang-format)
2021-05-10 22:10:29 -05:00
bunnei
9ff97270cf
Merge pull request #5501 from FearlessTobi/port-1064-3948
...
Port yuzu-emu/yuzu#1064 and yuzu-emu/yuzu#3948 : Changes to Telemetry and CPU feature detection
2021-04-23 22:58:08 -07:00
Daniel Méndez
3be52f818a
file_util: Add a function to update the user path
...
Added a default value when sdmc and nand are empty
2021-04-17 23:48:30 +02:00
Morph
7806206e90
string_util: Remove MSVC workaround for converting between UTF8/UTF16
...
This has been fixed as of Visual Studio 2019 Version 16.2
2021-02-11 00:16:33 +01:00
Marshall Mohror
5776bdda82
Merge pull request #5546 from FearlessTobi/port-5524
...
Port yuzu-emu/yuzu#4086 and yuzu-emu/yuzu#4611 : Xbyak cleanups
2021-02-08 16:00:18 -06:00
Pengfei Zhu
7c6d7905a4
Merge pull request #5670 from FearlessTobi/port-5277
...
Port yuzu-emu/yuzu#5277 : "general: Fix various spelling errors"
2021-01-09 22:10:27 +08:00
Lioncash
10f440cb59
common/telemetry: Migrate namespace into the Common namespace
...
Migrates the Telemetry namespace into the Common namespace to make the
code consistent with the rest of our common code.
2021-01-04 05:17:13 +01:00
Lioncash
9c08409e0e
externals: Update Xbyak to 5.96
...
I made a request on the Xbyak issue tracker to allow some constructors
to be constexpr in order to avoid static constructors from needing to
execute for some of our register constants.
This request was implemented, so this updates Xbyak so that we can make
use of it.
2021-01-04 05:11:18 +01:00
FearlessTobi
ddb4135dea
main/common: Log/append AVX/FMA to the Host CPU string if available and add AVX512 detection
...
Co-Authored-By: Morph <morph1984@users.noreply.github.com>
2021-01-04 04:25:03 +01:00
Lioncash
52fe6daa53
common/telemetry: Migrate core-independent info gathering to common
...
Previously core itself was the library containing the code to gather
common information (build info, CPU info, and OS info), however all of
this isn't core-dependent and can be moved to the common code and use
the common interfaces. We can then just call those functions from the
core instead.
This will allow replacing our CPU detection with Xbyak's which has
better detection facilities than ours. It also keeps more
architecture-dependent code in common instead of core.
2021-01-04 04:25:03 +01:00
MerryMage
045d20e076
xbyak_abi: Prefer returning a struct to using out parameters in ABI_CalculateFrameSize
2021-01-04 04:07:11 +01:00
MerryMage
a841ce6451
xbyak_abi: Register indexes should be unsigned
2021-01-04 04:07:10 +01:00
xperia64
c1d7ba4d60
Delete the old log file before rotating ( #5675 )
2021-01-03 14:53:23 -05:00
FearlessTobi
1653ebaa45
general: Fix various spelling errors
...
Co-Authored-By: Morph <39850852+Morph1984@users.noreply.github.com>
2021-01-03 02:39:41 +01:00
bunnei
9c76120a13
Fix the old log file to work with the log parser.
2021-01-01 03:17:20 -08:00
xperia64
b4a6763484
Rotate previous log file to '.old' if it exists
2020-12-31 16:10:01 -05:00
Vitor Kiguchi
fb49ce462f
Revert #5530 "Port yuzu-emu/yuzu#4539"
...
There is currently no such warning and the solution proposed
omits the call instead of the warning.
2020-12-30 14:49:40 -03:00
bunnei
987f910a86
Merge pull request #5530 from FearlessTobi/port-4539
...
Port yuzu-emu/yuzu#4539 : "common: Silence two discarded result warnings"
2020-12-30 01:55:33 -08:00
Vitor K
4888a14c12
Make UNIMPLEMENTED_MSG consistent with UNIMPLEMENTED ( #5631 )
...
The current inconsistency can result in a developer unintentionally
creating a crash when using UNIMPLEMENTED_MSG, if they're only
familiar with UNIMPLEMENTED. The two macros shouldn't have such
wildly different behaviors.
2020-12-06 23:36:04 +01:00
Tobias
017631e51b
Port yuzu-emu/yuzu#4587 and yuzu-emu/yuzu#4588: Fix data races ( #5545 )
...
Co-authored-by: ReinUsesLisp <reinuseslisp@airmail.cc>
2020-09-19 18:42:21 +02:00