Commit Graph
23 Commits
Author SHA1 Message Date
Torbjörn Andersson 18ff31bc92 COMMON: Flag some Path functions as WARN_UNUSED_RESULT
This would have caught the recent Hopkins regression. It also warns
about a few other things at the moment, so that has to be looked into at
some point.
2024-02-09 18:54:54 +01:00
Le Philousophe c2bbb608cd COMMON: Make String to Path conversion explicit
This will make sure engines use Path where appropriate.
2023-12-24 13:19:25 +01:00
Le Philousophe 1722511c32 COMMON: Allow to store and fetch paths in configuration 2023-12-24 13:19:25 +01:00
Le Philousophe 6f4a86db7e COMMON: Add a native directory separator
This will be used when converting the Path back to string to be used by
native filesystem APIs
2023-12-24 13:19:25 +01:00
Le Philousophe eeba7ca153 COMMON: Add more path functions 2023-12-24 13:19:25 +01:00
Le Philousophe be7130f296 COMMON: Rework path storage 2023-12-24 13:19:25 +01:00
Le Philousophe 9260a58d6d COMMON: Make IgnoreCaseAndMac_EqualsTo name consistent with String
Use IgnoreCaseAndMac_EqualTo.
2023-12-24 13:19:25 +01:00
Le Philousophe f34bef6840 COMMON: Add normalization to Path class 2023-07-09 21:41:58 +02:00
Matthew Duggan c53b42311d COMMON: Fix path split+join combinations, add tests for same
This resolves multiple scenarios where a path ends up with a trailing
separator.
2022-12-31 17:57:07 +09:00
Vladimir Serbinenko 0979c692de COMMON: Add new method joinComponents 2022-12-16 22:59:34 +01:00
Vladimir Serbinenko a690a034cf COMMON: Remove reliance that \x1f is never part of filename
So far we never encountered such a case but mac disks are notorious for
having non-printable characters in names
2022-12-14 05:08:46 +01:00
Vladimir Serbinenko 673e5e025b COMMON: Remove rawString member for Common::Path 2022-12-14 05:08:46 +01:00
Vladimir Serbinenko 7ded5c2de0 COMMON: Move DIR_SEPARATOR into path.cpp 2022-12-14 05:08:46 +01:00
Vladimir Serbinenko 4a2e69f990 COMMON: conflate : and / in mac names.
When using mounted images on OSX or with fusehfs : and / are swapped.
When using dumper-companion it encodes / in punycode and preserves it.
2022-12-14 05:08:46 +01:00
Vladimir Serbinenko ab517cc577 COMMON: Add case-insensitive comparator and hash for Common::Path 2022-12-14 05:08:46 +01:00
Vladimir Serbinenko 43d7259ff9 COMMON: Add matchPattern method for Common::Path 2022-12-14 05:08:46 +01:00
Vladimir Serbinenko d02a25230d COMMON: Add appendComponent to Common::Path for convenience 2022-12-14 05:08:46 +01:00
Vladimir Serbinenko af7d9cb850 COMMON: Move punycode_*codepath to path.cpp
This allows to reduce access to DIR_SEPARATOR from outside of Common::Path
2022-12-14 05:08:46 +01:00
Thierry Crozat f2849282a6 Common: Add functions to decompose a Path into its components 2022-05-24 00:38:02 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
djsrv 763d2813a0 COMMON: Replace Path's += with append/join 2021-08-07 10:44:37 +02:00
djsrv 8c4ecf6cc5 COMMON: Add Doxygen comments to path.h 2021-08-07 10:44:37 +02:00
djsrv 0db0b2c201 COMMON: Create Path type 2021-08-07 10:44:37 +02:00