citra-canary/src/core
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
..
arm core: Remove unnecessary enum casts in log calls 2020-12-29 06:39:21 +01:00
cheats Resolve unused variable warnings 2020-12-06 15:59:13 -03:00
dumping Update codec information 2020-06-11 22:05:29 -04:00
file_sys Replace &vec[0] with vec.data() 2021-07-14 17:01:14 +08:00
frontend Merge pull request #5660 from FearlessTobi/port-5166 2021-02-03 10:19:38 -06:00
gdbstub core: Remove unnecessary enum casts in log calls 2020-12-29 06:39:21 +01:00
hle Merge pull request #5382 from zhaowenlan1779/uds-2 2021-06-22 20:40:18 +08:00
hw gcc 11 compatibility fix (suggestion) (#5778) 2021-05-10 22:10:29 -05:00
loader Replace &vec[0] with vec.data() 2021-07-14 17:01:14 +08:00
rpc core: Remove unnecessary enum casts in log calls 2020-12-29 06:39:21 +01:00
tracer Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
3ds.h Move screen size constants from video_core to core 2017-05-27 18:41:24 -07:00
announce_multiplayer_session.cpp Separate the enums from cam/cam.h 2020-08-19 01:45:57 -03:00
announce_multiplayer_session.h core, citra_qt: Allow credentials update in multiplayer announce session 2019-04-20 12:50:24 +08:00
CMakeLists.txt Merge ARM64 Dynarmic (#5620) 2020-12-28 18:39:00 -05:00
core_timing.cpp Improve core timing accuracy (#5257) 2020-05-12 22:48:30 +02:00
core_timing.h general: Fix various spelling errors 2021-01-03 02:39:41 +01:00
core.cpp Merge pull request #5501 from FearlessTobi/port-1064-3948 2021-04-23 22:58:08 -07:00
core.h core: Make use of [[nodiscard]] with the System class 2021-01-17 19:05:43 +01:00
custom_tex_cache.cpp custom_tex_cache: Remove reliance on the global system instance (#5252) 2020-04-20 21:50:16 -05:00
custom_tex_cache.h custom_tex_cache: Remove reliance on the global system instance (#5252) 2020-04-20 21:50:16 -05:00
global.h Refactored out the horrible static var in CoreTiming 2020-03-28 15:47:36 +00:00
memory.cpp memory: Make getter functions const qualified where applicable (#5251) 2020-04-28 14:43:52 -05:00
memory.h memory: Make getter functions const qualified where applicable (#5251) 2020-04-28 14:43:52 -05:00
mmio.h clang-format fixes 2020-02-13 17:39:15 +08:00
movie.cpp core: Remove unnecessary enum casts in log calls 2020-12-29 06:39:21 +01:00
movie.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
perf_stats.cpp Port yuzu-emu/yuzu#4472: "perf_stats: Mark GetMeanFrametime() as const" (#5498) 2020-08-29 17:29:20 +02:00
perf_stats.h Port yuzu-emu/yuzu#4472: "perf_stats: Mark GetMeanFrametime() as const" (#5498) 2020-08-29 17:29:20 +02:00
savestate.cpp Show save/load errors to the user 2020-04-12 23:12:15 +01:00
savestate.h core, citra_qt: Implement a save states file format and slot UI 2020-02-18 13:19:52 +08:00
settings.cpp file_util: Add a function to update the user path 2021-04-17 23:48:30 +02:00
settings.h settings: Save and load NAND/SD dirs from config 2021-04-08 00:20:52 +02:00
telemetry_session.cpp common/telemetry: Migrate namespace into the Common namespace 2021-01-04 05:17:13 +01:00
telemetry_session.h common/telemetry: Migrate namespace into the Common namespace 2021-01-04 05:17:13 +01:00