Commit Graph
44 Commits
Author SHA1 Message Date
LibretroAdmin 11eb13d2ee pcsx2, common, libretro-common: include what we use
Dropping fast_float from StringUtil.h shrank the include graph every TU
in its closure had been leaning on, and GCC 16.2's leaner libstdc++
surfaced the reliance as build failures (GameDatabase.cpp, IopBios.cpp
on MinGW). Swept the whole closure -- 29 TUs and the 185 project headers
they pull -- for symbols resolved only through std-header transitivity,
and gave every file its own includes: <algorithm> and <utility> where
std::find/none_of/move live, <cmath> in the GSVector umbrella for the
sqrtf its fragments use, <system_error> in StringUtil.h for std::errc,
<cerrno>, <iterator>, <cstring> where named, and <string.h> in
retro_miscellaneous.h so the BIT*_CLEAR_ALL macros expand anywhere.
PRI_SIZET stays as-is: inttypes.h is the expansion site's include, and
MSVC 2005 has no such header.

Verified with a full pcsx2_libretro.so rebuild, the failing objects
through the Makefile path, the 36-TU emitter gate, and C89 checks on
the touched C header.
2026-08-22 12:14:13 +02:00
l 62d4b48646 treewide: zero out the aarch64 build-log warning census
Every remaining warning in the first green aarch64 build (job 2111537),
each verified per-TU silent after the fix, none changing behavior:

- sign-compare (14 sites): FileSystem read/write result checks compare
  in size_t after the positive-size guard; CDVD NVRAM bounds in int;
  Patch loops index cast at the comparison; GSLocalMemory tw*th in u32;
  MTGS ring positions keep the atomic loads' int instead of widening;
  R5900/R3000A cycle checks cast the small event operand to the signed
  side, preserving the deliberate wraparound-delta semantics rather than
  widening the delta and destroying them.
- fallthrough (4): annotated at Hw.cpp TAG_END, Interpreter GAME_LOADING,
  PAD config exit ("on purpose (but I don't know why)" -- annotated, not
  explained), GSHwHack bloom state machine.
- enum/non-enum conditionals (4): the non-enum arm gets the enum's
  integer type at GSRendererHW/GSTextureCache PSMCT24 selection,
  GSDeviceVK dirty flags, VKShaderCache debug messages.
- unused variables: main.cpp's retro_vfs_interface_info was dead since
  the hybrid-VFS rework -- deleted; vtlb guest_addr and MultiISA q_div
  move inside the non-arm64 arm that consumes them; GSDeviceSW's
  x_is_identity is consumed only by the SIMD fast path and is marked.
- CsoFileReader initializes in declaration order; TextureDecompress
  value-initializes the 16 fallback pixels instead of memset on a class;
  main.cpp loses a nested /* that made a comment swallow its neighbor.
- vendored, fixed at source with comments: cpuinfo's Raspberry Pi fixup
  declared a 64-byte static bound over the 9-byte revision buffer every
  caller actually passes (api.h already knew the right bound);
  clog's stderr writes consume the warn_unused_result value ((void)
  does not silence glibc's attribute); vk_mem_alloc's assert-only and
  debug-gated locals are marked, and the VMA_DEBUG_MARGIN dead branches
  move to the preprocessor where -Wtype-limits cannot see them.

Full lean build links and boots; emitter gates 35/35; the byte suites
covering the one emitter-adjacent change are green in the previous
commit.
2026-08-18 21:31:42 +02:00
LibretroAdmin a6ae11f8a7 common: remove unused StringUtil/FileSystem helpers
Three exported helpers in common/ have no callers anywhere in the tree:

  - StringUtil::toUpper
  - StringUtil::UTF8StringToWideString (both overloads, _WIN32 only)
  - FileSystem::RenamePath (Win32 and POSIX implementations)

Drop their declarations and definitions. toLower, WideStringToUTF8String
and DeleteDirectory live immediately adjacent to the removed code and are
still in use, so the surrounding _WIN32 guards and the rename()/MoveFileEx
neighbours are left intact.
2026-05-30 05:52:14 +02:00
libretroadmin 54ec784d72 (Common) Cleanups 2025-11-10 14:18:30 +01:00
LibretroAdmin 7e34c8f782 Buildfix 2025-01-05 13:03:21 +01:00
LibretroAdmin c29c4e8871 (common) Buildfix 2025-01-05 12:59:38 +01:00
LibretroAdmin 3b7a291117 Cleanup common/ 2025-01-05 12:43:06 +01:00
libretroadmin a9219b97a8 Filesystem.cpp - small cleanupsg 2024-05-25 04:49:22 +02:00
libretroadmin cd50491057 Simplify Filesystem.cpp some more 2024-05-25 04:44:09 +02:00
libretroadmin 392ff9b30c (Filesystem/VFS) Remove non-libretro VFS filesystem paths 2024-05-21 17:32:56 +02:00
libretroadmin 9698ddc0bc More removal of common/FileSystem.cpp - more usage of libretro-common
and VFS
2024-05-21 16:18:18 +02:00
libretroadmin 9b349240c4 (libretro-common) Move to UTF8 functions 2024-05-21 11:43:56 +02:00
libretroadmin 13b266e499 FILESYSTEM_FIND_DATA/FILESYSTEM_STAT_DATA - CreationTime never used 2024-05-20 10:46:48 +02:00
libretroadmin 3d903f384d Use path_is_valid 2024-05-20 10:16:12 +02:00
libretroadmin 1587c7fdcd Cleanups 2024-05-20 09:52:22 +02:00
libretroadmin f033ba2159 More moving to libretro VFS and removing of FileSystem calls 2024-05-20 09:19:26 +02:00
libretroadmin f563de6a98 FUrther slimming down of FileSystem 2024-05-20 09:01:45 +02:00
libretroadmin b81513e98b More moving to VFS 2024-05-20 07:41:21 +02:00
libretroadmin 5fcbf73b99 Move nearly entire codebase over to VFS for file I/O 2024-05-18 22:22:07 +02:00
libretroadmin f192302794 Add RFILE versions of FileSystem.cpp 2024-05-18 18:55:01 +02:00
libretroadmin 272f795ddb Backport Misc: Slim down PCH 2024-05-08 19:11:11 +02:00
libretroadmin e389a29595 (Common) Cleanups 2024-05-01 03:23:45 +02:00
libretroadmin b0d3b2f58b Slim down Filesystem.cpp 2024-04-12 03:11:18 +02:00
libretroadmin 01e7f25c1b FileSystem.cpp - get rid of unused GetRootDirectoryList 2024-04-12 02:53:18 +02:00
libretroadmin e4686f7125 Common - Get rid of Assertions.h 2024-04-11 04:46:48 +02:00
libretroadmin 7982df902f Standardize memset/memcpy usage 2024-04-10 04:53:23 +02:00
xantares 0440079a24 FileSystem: Use _stat64 routines 2022-11-26 19:05:49 +00:00
Connor McLaughlin 5647ca7f08 Qt: Add play time tracking based on serials 2022-10-22 11:08:23 +01:00
Connor McLaughlin 2b04f0b585 Path: Make sanitize routine follow OS rules 2022-09-17 17:51:14 +01:00
Connor McLaughlin 9655d28a23 Common: Remove unused code 2022-08-27 13:52:12 +01:00
refractionpcsx2 93f4277b3c UI-Files: Codacy fix codacy errors and warnings 2022-08-27 00:33:59 +01:00
Connor McLaughlin afa29facc6 FileSystem: Add OpenSharedCFile() 2022-06-07 15:09:41 +01:00
Connor McLaughlin a5124b118b FileSystem: Fix splitting UNC paths 2022-05-31 11:01:14 +01:00
Connor McLaughlin ea051c6d5f Everything: Get rid of wx entirely from the Qt build 2022-05-22 13:58:56 +01:00
Connor McLaughlin 4543ddbcc2 Common/FileSystem: Don't recompress already compressed files 2022-05-05 09:46:52 +01:00
Connor McLaughlin 864651ce8d System: Purge WinCompressNTFS.cpp
This is the most overengineered, stupid rubbish I've ever seen.
2022-04-15 08:15:40 +01:00
Connor McLaughlin a635e84d82 FileSystem: Add path splitting helpers 2022-04-15 08:15:40 +01:00
Connor McLaughlin 47fff9304b FileSystem: Add DeleteDirectory() and recursive variant 2022-03-25 10:26:09 +00:00
Tyler Wilding aa42acfe22 common: fix method name and clarify some behaviour 2022-03-20 04:03:03 +00:00
Ziemas 7a970e1d00 Filesystem: Properly convert stat return to bool.
Two of the overloads where wrong.
2022-03-09 09:33:51 +00:00
Connor McLaughlin ed9f34de5f Common/FileSystem: Add EnsureDirectoryExists() 2022-02-24 10:18:49 +00:00
Filipe da Silva Santos 9e705b2f53 FileSystem: follow c++17 and unbreak FreeBSD 2021-12-28 19:11:18 -06:00
TellowKrinkle ea25f49c65 Common: Fix GetWorkingDirectory on unix 2021-12-23 07:49:14 +00:00
Connor McLaughlin a083343c6e Common: Add FileSystem 2021-12-12 03:27:43 +00:00