148326 Commits

Author SHA1 Message Date
Le Philousophe
e0fd69bda0 COMMON: Make INIFile use Path 2023-12-24 13:19:25 +01:00
Le Philousophe
93a8f7f4d6 COMMON: Move Archive API to Path 2023-12-24 13:19:25 +01:00
Le Philousophe
3c5fe56de6 BACKENDS: OPENGL: Small cleanups on paths 2023-12-24 13:19:25 +01:00
Le Philousophe
db41390587 BACKENDS: Make browser_lastpath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe
c34e475a0e VKEYBD: Migrate virtual keyboard to Path class 2023-12-24 13:19:25 +01:00
Le Philousophe
0e1d950dec BACKENDS: SDL: Make vkeybdpath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe
317432030d BACKENDS: SDL: Make controller_map_db a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe
2f34975164 COMMON: Make shaders API use the Path class 2023-12-24 13:19:25 +01:00
Le Philousophe
ce961cabbc COMMON: Make soundfont a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe
0a636d0d40 COMMON: Make pluginspath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe
db5041ecb0 COMMON: Make savepath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe
802c91554f COMMON: Make extrapath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe
bfc61439fb COMMON: Make themepath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe
dc7fadef28 COMMON: Make iconspath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe
b97da06876 COMMON: Make taskbar use Path 2023-12-24 13:19:25 +01:00
Le Philousophe
e689166a2c BACKENDS: Make screenshots use the Path class 2023-12-24 13:19:25 +01:00
Le Philousophe
d8db629cd5 BACKENDS: NETWORKING: Make rootpath a Path and use Path everywhere 2023-12-24 13:19:25 +01:00
Le Philousophe
87e9a406fa BACKENDS: NETWORKING: Use Path instead of String for local files
Use references when applicable too.
2023-12-24 13:19:25 +01:00
Le Philousophe
460be938f3 CLOUD: Make cloud use Path for local folders and files 2023-12-24 13:19:25 +01:00
Le Philousophe
d87571766e BACKENDS: NETWORKING: Use Path for cURL requests 2023-12-24 13:19:25 +01:00
Le Philousophe
01ebece807 COMMON: Make getDefaultConfigFileName return a Path instead of a String 2023-12-24 13:19:25 +01:00
Le Philousophe
d9a8131ba2 COMMON: Make getDefaultLogFileName return a Path instead of a String 2023-12-24 13:19:25 +01:00
Le Philousophe
fd0267cfd1 GUI: Make TextViewerDialog use a Path instead of a String 2023-12-24 13:19:25 +01:00
Le Philousophe
74a6158347 GUI: Add a PathWidget
It stores a Path and displays an optional placeholder if the path is
empty.
It is based on StaticTextWidget and doesn't allow edits.
2023-12-24 13:19:25 +01:00
Le Philousophe
088db8ca65 BASE: Various some path related cleanups 2023-12-24 13:19:25 +01:00
Le Philousophe
56552fa282 COMMON: Various path related fixes in archives 2023-12-24 13:19:25 +01:00
Le Philousophe
28b63470f0 COMMON: Migrate DumpFile to Path
Also display warnings using proper directory separator when opening
FSNode.
2023-12-24 13:19:25 +01:00
Le Philousophe
8b2e5ef649 COMMON: Make getPath() return a Path
Also add a compatibility shim which acts like a String.
In addition, simplify path related code to avoid stringification when
it's not needed.
Use the native path separator to display paths inside filesystem.
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
6f46727c77 COMMON: Check if string is puny encoded before trying to decode it
This avoids the following useless conversion String->U32String->String
while the content will not change.
2023-12-24 13:19:25 +01:00
Le Philousophe
23fda47ac8 COMMON: Improve punydecode performance
Avoid copies as much as we can by working in place.
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
7205774eef COMMON: Add replace char function to String
It allows to efficiently replace all character occurences in a string.
It uses strchr to allow optimized libc implementations of string
scanning.
2023-12-24 13:19:25 +01:00
Le Philousophe
0edfc8f6dd COMMON: Add append function to BaseString which takes a pointer range
This allows to add efficiently a substring to another
2023-12-24 13:19:25 +01:00
Le Philousophe
11d7381c3f COMMON: Allow inlining of BaseString::makeUnique 2023-12-24 13:19:25 +01:00
Paul Gilbert
c280079a57 M4: Teleport console cmd with no args shows current room 2023-12-23 23:04:03 -10:00
Paul Gilbert
7648fd346f M4: Beginnings of derived console class for Orion Burger 2023-12-23 23:01:22 -10:00
Torbjörn Andersson
6ee8212c37 SCUMM: Add enum for Mac GUI delay() return values
This should hopefully make it clearer what's intended. The delay can
either run its normal course, be interrupted (by clicking), or be
aborted (by quitting).
2023-12-24 08:31:20 +01:00
Torbjörn Andersson
54b27b02a2 SCUMM: Clean up Mac Loom "About" dialog a bit
There was a lot of unnecessary code duplication, and I had already
started to forget how I meant it to work. This should make things a bit
clearer.
2023-12-24 08:30:50 +01:00
Paul Gilbert
18d915f4d7 M4: Fix waking police by talking to them 2023-12-23 19:20:39 -10:00
Paul Gilbert
4282719871 M4: Fix global constructor warnings 2023-12-23 18:51:33 -10:00
Matthew Duggan
fd61d4c5e7 SYBERIA: Better variable names for head adjustments 2023-12-24 14:47:01 +11:00
Matthew Duggan
da4445974c TETRAEDGE: Fix Hans looking to the sky in Syberia 2
When the "looking at tall thing" flag is true, the head angle adjustment value
should be set as the absolute angle up, not added to the calculated angle.

This fixes Hans talking to Kate near the start of Syberia 2 where he would
gradually look higher and higher on every scene change.
2023-12-24 14:44:18 +11:00
Eugene Sandulenko
e28fae39a0
DIRECTOR: Do not complain in Window::ensureMovieIsLoaded() when it is loaded 2023-12-24 03:14:25 +01:00
Eugene Sandulenko
1f9e8a8a34
DIRECTOR: Made certain window operations load the movie immediately 2023-12-24 02:56:30 +01:00
Eugene Sandulenko
a250d0a77b
M4: Remove unused include 2023-12-24 02:31:33 +01:00
Eugene Sandulenko
0aecef3191
M4: BURGER: Comment out more unused variables 2023-12-24 02:28:26 +01:00