Commit graph

159 commits

Author SHA1 Message Date
Leon Styhre e3e319f2af Fixed a regression where StringUtil::toCapitalized() stopped working 2023-08-21 17:01:43 +02:00
Leon Styhre fd1da398ac The %STARTDIR% variable could not be combined with running ES-DE in the background while launching games on Linux and macOS 2023-08-16 23:02:38 +02:00
Leon Styhre 88373f06ee Changed two FileSystemUtil functions to use std::filesystem facilities 2023-08-14 19:03:37 +02:00
Leon Styhre de4bd7341f Changed a number of stream operations to open files in binary mode to always get proper Unix line breaks 2023-08-10 23:02:36 +02:00
Leon Styhre 590591d0fb Added a check to MathUtil::md5Hash() to not attempt to hash directories 2023-08-03 20:14:04 +02:00
Leon Styhre 57fffd88b2 Added support to MathUtil::md5Hash() for streaming files in chunks 2023-08-02 20:34:32 +02:00
Leon Styhre c22bdae16e Changed most try/catch statements in FileSystemUtil to actually output the std::filesystem error messages 2023-08-02 20:28:29 +02:00
Leon Styhre 05cfbb55bd Added try/catch statements to a couple of std::filesystem functions in FileSystemUtil 2023-08-02 19:32:46 +02:00
Leon Styhre 5705672957 Added a getFileSize() function to FileSystemUtil
Also modernized createEmptyFile() to use std::filesystem::path
2023-08-02 19:20:50 +02:00
Leon Styhre 3472c6f852 Added a FileSystemUtil function to return the system home directory 2023-07-31 17:49:58 +02:00
Leon Styhre 66555101bf Added a FileSystemUtil function to create an empty file 2023-07-31 17:40:06 +02:00
Leon Styhre c0ec753dc7 Replaced a number of homecooked functions in FileSystemUtil with those from the C++ standard library 2023-07-29 19:14:07 +02:00
Leon Styhre 768539e8e7 (Windows) Fixed an issue where attempting to capitalize multi-byte Unicode strings crashed the application if built using the MSVC compiler 2023-07-28 21:46:24 +02:00
Leon Styhre 3b62dc6ee7 (Windows) Fixed an issue where wide string conversions were not done correctly 2023-07-28 21:44:03 +02:00
Leon Styhre 849ed7499b Some minor code cleanup 2023-07-24 16:53:24 +02:00
Leon Styhre c06f598d80 (macOS) Suppressed a compiler warning 2023-07-07 18:32:11 +02:00
Leon Styhre 19c8d5bb38 (Linux) The esBinary variable is now set correctly when running as an AppImage 2023-07-03 17:41:22 +02:00
Leon Styhre 15e5a8b305 Added a function to FileSystemUtil to return the ES-DE binary path
Also fixed an issue where the fallback to argv[0] in FileSystemUtil::setExePath() was not working correctly
2023-07-02 23:16:39 +02:00
Leon Styhre 923240aac0 Added options to the miximage generator for how to fit screenshots that do not match the aspect ratio of the miximage frame 2023-07-01 11:15:43 +02:00
Leon Styhre 6bf8c5af46 Added Windows support for the PDF viewer 2023-06-22 21:15:35 +02:00
Leon Styhre e7e3db7f6d Minor change to a error log output in PlatformUtil 2023-06-21 22:44:29 +02:00
Leon Styhre b30f8a48d3 Fixed an issue where FileSystemUtil::renameFile() did sometimes not provide a return value for if it actually succeeded or not 2023-04-02 21:01:28 +02:00
Leon Styhre d631435864 Fixed a compiler warning regarding an unsecure function in MathUtil. 2023-01-06 14:49:11 +01:00
Leon Styhre ab31eafaca Some code cleanup. 2022-12-14 17:30:34 +01:00
Leon Styhre 126d93709e Updated the CImg functions and miximage generator for BGRA instead of RGBA pixel format. 2022-10-28 21:39:57 +02:00
Leon Styhre 9d2a9ed9d9 Fixed an issue where StringUtil::delimitedStringToVector could return empty elements. 2022-08-19 17:03:55 +02:00
Leon Styhre f6c109e3fc (Windows) Trigger emergency shutdown on wide string conversion errors to preserve data integrity at all times. 2022-08-13 16:27:44 +02:00
Leon Styhre f550ba7dfc (Windows) Added error handling to StringUtil::stringToWideString() and StringUtil::wideStringToString() to avoid crashes caused by invalid characters. 2022-08-01 19:51:25 +02:00
Leon Styhre 0d23719fe7 (Windows) Fixed an issue where file paths would get escaped with quotation marks even if they did not contain any spaces. 2022-07-01 16:32:31 +02:00
Leon Styhre 25ac88c2f6 (Windows) Increased window size one pixel horizontally instead of decreasing it one pixel vertically on game launch. 2022-06-26 12:18:28 +02:00
Leon Styhre 0008e44294 Removed all short enums comments as they're now properly solved by AllowShortEnumsOnASingleLine. 2022-06-05 12:36:55 +02:00
Leon Styhre d418c05614 Added scraper support for the platforms arcadia (Emerson Arcadia 2001) and crvision (VTech CreatiVision).
Also removed an unnecessary code comment.
2022-05-19 17:32:12 +02:00
Leon Styhre 92c4ae3cdf Changed the execution order of some custom event scripts. 2022-05-18 23:01:32 +02:00
Leon Styhre fdf63a9ad0 Fixed an issue where the 'quit' custom event would not trigger on application shutdown. 2022-05-18 22:57:03 +02:00
Leon Styhre 595037b301 Fixed some minor function argument name mismatches. 2022-05-08 14:22:11 +02:00
Leon Styhre 9df3436d82 (Windows) Fixed an issue where symlinking media directories would crash the application. 2022-05-07 12:16:31 +02:00
Leon Styhre 4d5364e9e4 (Windows) Fixed a MinGW compile error. 2022-04-30 21:19:15 +02:00
Leon Styhre 6caf4d193b Added support for a %STARTDIR% es_systems.xml variable. 2022-04-30 20:43:29 +02:00
Leon Styhre de48b69760 Prevented a potential endless loop in StringUtil::replace() 2022-04-30 18:31:53 +02:00
Leon Styhre 2f80d1e578 Removed some unnecessary log output when locating emulators when running as a Flatpak. 2022-04-27 18:57:17 +02:00
Leon Styhre 7eecf6bb41 (Linux) Yet another ugly hack to detect installed emulators when running as a Flatpak. 2022-04-27 17:33:43 +02:00
Leon Styhre a9b17a7375 Removed some unreachable directories from the Flatpak path hack. 2022-04-26 23:20:47 +02:00
Leon Styhre b7d3b242fd (Linux) Ugly Flatpak PATH hack. 2022-04-26 21:26:25 +02:00
Leon Styhre a98ba7a42d A check is now done on game launch that emulator binaries are actually files or symlinks. 2022-04-24 11:17:51 +02:00
Leon Styhre cad06bd841 Changed the RPi preprocessor name from _RPI_ to RASPBERRY_PI. 2022-04-19 17:29:29 +02:00
Leon Styhre 03e457516a Fixed an issue where the StringUtil::replace function did not remove repeating occurances. 2022-04-15 20:33:53 +02:00
Leon Styhre 02249ae6b9 (RPi) Fixed two compiler errors. 2022-03-15 18:02:19 +01:00
Leon Styhre 2fe11bd827 A few fixes for the Emscripten WebAssembly build. 2022-03-15 17:17:56 +01:00
Leon Styhre 6b095bde05 (Windows) Fixed some compiler errors. 2022-03-14 20:29:25 +01:00
Leon Styhre d8b99b1dff Escaped some characters needed to get emulator wildcards to work with certain directories. 2022-02-21 19:05:29 +01:00