Leon Styhre
73beeeaeaf
Fixed two Emscripten compiler warnings.
2022-01-13 20:07:04 +01:00
Leon Styhre
a233b96c2a
Removed some unnecessary typedefs and replaced the remaining ones with the more modern 'using' keyword.
...
Also harmonized the names of some user defined types and made some other minor cleanup.
2022-01-11 21:57:00 +01:00
Leon Styhre
d45a67eeab
(Windows) Fixed a few compiler errors and warnings.
2022-01-10 19:53:23 +01:00
Leon Styhre
b4e08ba92b
Renamed Platform to utils/PlatformUtil
2022-01-10 18:56:04 +01:00
Leon Styhre
5fd2c86c7d
Fixed an issue where corrupt Unicode strings could crash the application.
2021-12-14 17:08:37 +01:00
Leon Styhre
a4f8fe78e1
Fixed a time zone issue related to the Unix epoch.
2021-11-26 20:55:54 +01:00
Leon Styhre
af52d9b0ac
Changed most increment and decrement operators from postfix to prefix for es-core.
2021-11-17 17:48:49 +01:00
Leon Styhre
043db7e05e
(RPi) Fixed a crash by null terminating the Unicode lookup tables.
2021-11-11 22:41:13 +01:00
Leon Styhre
39926abc41
Some very small optimizations in CImgUtil.
2021-11-09 22:57:15 +01:00
Leon Styhre
019c764d93
Fixed a compiler warning on BSD Unix.
2021-10-06 18:47:30 +02:00
Leon Styhre
08888e00af
Clarified the use of bundled include files.
2021-10-06 18:41:21 +02:00
Leon Styhre
3233288a8c
Improved the string trim function and replaced some inlined occurrences.
2021-09-25 18:01:41 +02:00
Leon Styhre
be62e8fc5d
Proper fix for the last commit.
2021-09-23 17:54:27 +02:00
Leon Styhre
1d07879868
Fixed a compiler warning.
2021-09-23 17:49:59 +02:00
Leon Styhre
dd8f5afdf4
(Windows) Fixed some compiler errors and a compiler warning.
2021-09-19 14:57:54 +02:00
Leon Styhre
63767347f2
Fixed numerous compiler warnings reported by the -Wall and -Wpedantic flags.
2021-09-19 14:37:10 +02:00
Leon Styhre
0b6d987263
Fixed lots of compiler warnings reported by the -Wall and -Wpedantic flags.
2021-09-18 09:53:26 +02:00
Leon Styhre
42458a7d76
Very minor code cleanup.
2021-09-17 21:10:16 +02:00
Sophia Hadash
b9b3e35e09
reformat toCamelCase.
2021-08-23 15:02:56 +02:00
Sophia Hadash
dfffd1057d
Add help component theme options textStyle
.
2021-08-23 12:58:06 +02:00
Leon Styhre
192bec6f5c
Added a function to generate MD5 hashes.
2021-08-18 21:03:25 +02:00
Leon Styhre
816d79c32f
(Windows) Silenced some MSVC compiler warnings related to the C++17 language standard.
2021-08-18 18:58:43 +02:00
Leon Styhre
12c853bc31
Moved the remaining math functions to a math utility namespace.
2021-08-17 22:11:16 +02:00
Leon Styhre
7b5d673050
Replaced the internal Vector2i data type and functions with the GLM library equivalent.
...
Also applied some code formatting changes for braced lists using clang-format.
2021-08-17 18:41:45 +02:00
Leon Styhre
23fdc00044
Formatted the es-core source tree using clang-format.
2021-07-07 20:31:46 +02:00
Leon Styhre
05990d0457
Moved most CImg functions from MiximageGenerator to a new utility module.
2021-06-12 20:05:28 +02:00
Leon Styhre
89c845b4d5
(Windows) Fixed a compiler error and two warnings.
2021-05-30 20:52:19 +02:00
Leon Styhre
4533409c65
Substantial code cleanup of various utility functions.
2021-05-30 20:46:17 +02:00
Leon Styhre
4ff95c4ddf
(Unix) Changed the default installation prefix from /usr/local to /usr on Linux.
...
Also changed the prefix on NetBSD from /usr/local to /usr/pkg.
2021-04-02 12:12:49 +02:00
Leon Styhre
d041bda5cf
(Windows) Fixed two MSVC compiler warnings.
2021-03-15 17:22:45 +01:00
Leon Styhre
f35e3c2e65
(Windows) Fixed the symbolic link support.
2021-03-15 17:18:33 +01:00
Leon Styhre
72fcef8428
Made the delimited string functions in StringUtil more general.
2021-02-06 09:30:05 +01:00
Leon Styhre
b1b58fe90c
Added some additional error logging.
2021-02-01 22:06:28 +01:00
Leon Styhre
4305c211eb
(Windows) Fixed an issue where directory deletions would be incorrectly reported as failed.
2021-01-31 20:30:43 +01:00
Leon Styhre
c63fc39e8d
Added a function to delete directories.
2021-01-31 19:55:57 +01:00
Leon Styhre
f949d8dde0
Fixed a Clang compile error.
2021-01-28 21:16:03 +01:00
Leon Styhre
4d8b0deb9b
Added support for converting two-byte Unicode characters to uppercase and lowercase.
2021-01-28 19:38:27 +01:00
Leon Styhre
8f32be00b4
Some general code cleanup.
2021-01-25 18:07:11 +01:00
Leon Styhre
8173ccda80
Moved the first character extraction function to StringUtil.
2021-01-23 16:25:53 +01:00
Leon Styhre
c747416071
Changed from localtime to the more secure localtime_r and localtime_s functions.
2020-12-29 13:44:13 +01:00
Leon Styhre
eadeb88ece
Fixed a compile error on Unix.
2020-12-29 12:58:55 +01:00
Leon Styhre
c95334756d
Fixed a lot of MSVC compiler warnings.
2020-12-29 12:54:24 +01:00
Leon Styhre
9ec3f19482
(Windows) Added support for the MSVC compiler.
2020-12-28 23:23:01 +01:00
Leon Styhre
debf072a0e
Rewrote some code from C to C++
2020-12-16 23:59:00 +01:00
Leon Styhre
19edfd1690
Added support for FreeBSD, NetBSD and OpenBSD.
2020-11-26 18:53:00 +01:00
Leon Styhre
0b6dce687e
Changed to C++ casts throughout the application.
2020-11-17 23:06:54 +01:00
Leon Styhre
cc87084959
Fixed a crash when searching recursively through a directory.
2020-11-10 22:16:30 +01:00
Leon Styhre
ab87063770
Added case insensitive sorting option to some StringUtil functions.
2020-10-22 21:14:15 +02:00
Leon Styhre
0b6d0bfcd6
Improved some logging as well as handling of a missing es_systems.cfg file.
2020-10-19 17:28:20 +02:00
Leon Styhre
8db04c5fcb
Added SPDX license identifiers to all source files.
2020-09-21 19:17:34 +02:00
Leon Styhre
88a5962926
Changed '#ifdef' to '#if defined()' throughout the code.
2020-08-23 17:04:30 +02:00
Leon Styhre
b0624f2bc9
Updates to make the application work correctly (more or less) on macOS.
2020-08-18 17:48:21 +02:00
Leon Styhre
ad960b28ac
Various updates to make the application compile on macOS.
2020-08-17 19:15:05 +02:00
Leon Styhre
3ae0726d1a
Improvements to the date and time handling.
2020-08-02 15:56:32 +02:00
Leon Styhre
9c755f2d0b
Fixed a display issue for folders with dots in their names.
2020-07-30 15:42:39 +02:00
Leon Styhre
41c3c66eb7
(Windows) Added support for setting the root of a drive as the home folder.
...
This is mostly usable for portable installations, for example on a USB memory stick.
2020-07-27 14:23:40 +02:00
Leon Styhre
2b898981cb
(Windows) Updated some filesystem functions to support wide character filenames.
2020-07-27 13:17:36 +02:00
Leon Styhre
b5485b4ca9
Changed log levels from numbers to text.
2020-07-26 23:30:45 +02:00
Leon Styhre
57d6dab2cc
Some cosmetic code changes.
2020-07-13 20:58:25 +02:00
Leon Styhre
472a973f66
Added %ESPATH% variable support and fixed some other minor issues with the launch command.
2020-07-10 20:58:53 +02:00
Leon Styhre
3cad68be13
Added %EMUPATH% logic for Unix.
2020-07-10 19:53:33 +02:00
Leon Styhre
31da561695
Complete UTF-16 (Unicode) support added for Windows.
...
ROM names with Unicode characters are supported, as well as running ES from a directory that has Unicode characters in its name.
2020-07-10 18:32:23 +02:00
Leon Styhre
adb5cb6664
Made the es_systems.cfg template install to the home directory during the first application startup.
2020-07-09 19:26:48 +02:00
Leon Styhre
5a7fb828a6
Added proper error handling for resource files and improved overall logging.
2020-07-08 17:01:47 +02:00
Leon Styhre
2bea3021c3
Added proper emulator launch function for Windows and added logic for the new %EMUPATH% variable.
2020-07-07 21:27:48 +02:00
Leon Styhre
76aa239855
Initial update to make the application build and run on Windows.
...
Much more work will be needed to get the Windows port working properly.
2020-07-03 20:23:51 +02:00
Leon Styhre
0387d515fb
Update to fully support Clang/LLVM.
...
Also a general cleanup of CMakeLists.txt and many small code changes to satisfy Clang that complained quite a lot and actually wouldn't compile the binary at all at first.
2020-06-25 19:52:38 +02:00
Leon Styhre
fb4c5708b7
Made pugixml an external dependency and fixed the cmake/cpack installation and package creation.
...
As pugixml seems to be well supported nowadays and seems to ship with most distributions it's pretty pointless to keep bundling it with EmulationStation.
2020-06-24 17:38:41 +02:00
Leon Styhre
6b62065595
Large code cleanup and code documentation update.
...
The initial code cleanup of es-app is now complete as of this commit.
2020-06-23 20:07:00 +02:00
Leon Styhre
672026632d
Code cleanup and code documentation
2020-06-22 17:27:53 +02:00
Leon Styhre
b560429a20
Moved the CMake install prefix function to FileSystemUtil and implemented the same logic also for theme loading.
2020-06-21 21:08:54 +02:00
Jools Wills
ef186e7bd6
Merge pull request #624 from Teklad/reliable-exe-path
...
Use platform-specific methods for setExePath
2019-12-19 03:33:45 +00:00
Justin Kinnaird
08335841be
Use platform-specific methods for exePath
2019-12-18 21:28:01 -06:00
Cristi Mitrana
dc94060e7e
getGenericPath: don't remove trailing '/' when path is '/'.
...
This prevents 'getAbsolutePath' to get into a loop with an empty path and EmulationStation to crash when the `$CWD` is `/`.
2019-12-09 20:06:49 +02:00
John Rassa
961571655b
Grid updates. Animate scrolling option, autoLayout option, center selection option, scroll loop option, image source option
2019-09-21 19:38:57 -04:00
Tomas Jakobsson
9de16045c9
whitespace cleanup
...
fix faulty line endings
silence warnings on windows
2019-08-25 17:23:02 +02:00
Fabrice CARUSO
95de3aae7f
Add --home command line to set custom home path + make windows version natively portable by detecting if .emulationstation is a subfolder of the exe.
2019-08-23 14:18:13 +02:00
Tomas Jakobsson
07a9f18ac6
Fix FilesystemUtil::isEquivalent by eliminating it entirely
2019-03-13 21:18:58 +01:00
Cristi Mitrana
cdd43bf7e9
Add ScreenScraper.fr as scraping source
2019-01-19 09:01:35 +02:00
John Rassa
2c2e23e802
Merge pull request #475 from tomaz82/stat64
...
Fixes for roms larger than 2GB
2018-08-29 22:12:10 -04:00
Tomas Jakobsson
84b1038c3f
Fixes for roms larger than 2GB
...
pi: #define _FILE_OFFSET_BITS 64
windows: Switch to use stat64 where needed
2018-08-21 16:43:15 +02:00
Tomas Jakobsson
15ccfc5a05
Remove trailing '/' in getGenericPath
2018-08-20 15:32:31 +02:00
John Rassa
99f7330475
fix for several small issues in Windows build
2018-04-13 16:53:39 -07:00
Jools Wills
99cc97680d
Merge pull request #387 from pjft/fix-paths
...
Fixing path generation on the Pi for getDirContents
2018-03-09 18:11:38 +00:00
pjft
f6649ec070
Fixing path generation on the Pi for getDirContents
2018-03-09 17:06:39 +00:00
pjft
b73d38a781
Fixing common path detection
2018-03-02 10:07:58 +00:00
Tomas Jakobsson
33086042f9
Fix getHomePath crash when the environment variable isn't set
2018-02-20 19:15:34 +01:00
Tomas Jakobsson
dbcd749ae7
Add Utils::String::toLower and Utils::String::format
2018-02-15 15:04:46 +01:00
Tomas Jakobsson
e6df25074b
Fix double //
2018-02-10 11:35:24 +01:00
Tomas Jakobsson
1a4d13b6b3
Remove builtin resources
2018-02-08 19:27:44 +01:00
Tomas Jakobsson
6054cb673d
Fix start and offset not being reset for each invalidChar tested in Utils::FileSystem::GetEscapedPath
2018-02-02 16:45:21 +01:00
Tomas Jakobsson
421e4a23df
The final traces of boost has been eliminated
2018-01-30 19:21:09 +01:00
Tomas Jakobsson
403b798572
Remove the last traces of boost::filesystem::operational, this is PR 4 of 5 in the boost::filesystem removal quest
2018-01-27 22:52:14 +01:00
Tomas Jakobsson
3d3fb2c277
Switched over the last functions in Utils.cpp to Utils::String, step 3 of 5 in the quest to remove boost::filesystem
2018-01-27 18:04:28 +01:00
Tomas Jakobsson
ed2eb3d4d0
Move more functionality from Util.cpp to utils/StringUtil.cpp in the quest too remove the need for boost
2018-01-27 02:12:16 +01:00
Tomas Jakobsson
c1f8e7294c
Update and rename some Utils::FileSystem functions
...
Replace boost::filesystem::is_directory
with Utils::FileSystem::isDirectory
Replace boost::filesystem::is_regular_file
with Utils::FileSystem::isRegularFile
Replace boost::filesystem::is_symlink
with Utils::FileSystem::isSymlink
Replace boost::filesystem::exists
with Utils::FileSystem::exists
Replace boost::filesystem::create_directory
with Utils::FileSystem::createDirectory
Replace boost::filesystem::remove
with Utils::FileSystem::removeFile
2018-01-23 12:07:20 +01:00
Tomas Jakobsson
18d6b9341e
Add getDirContent, getHomePath, getCWDPath, canonicalPath, absolutePath, resolvePath, resolveSymlink, getExtension, removeFile, isAbsolute, isRegularFile, isDirectory, isSymlink, isHidden and isEquivalent
...
Rename makeGeneric to genericPath and escapePath to escapedPath
Add toUpper
2017-12-30 20:04:18 +01:00
Tomas Jakobsson
5e8d6b7f45
Eliminated the need for boost::xpressive, boost::algorithm and boost::variant
2017-12-27 18:22:26 +01:00
Tomas Jakobsson
11b8dbfc43
Replaced boost::posix_time with Utils::Time
2017-12-01 18:49:56 +01:00
Tomas Jakobsson
cfaa7c19d4
Cleanup a couple of classes
2017-11-25 23:15:55 +01:00