Commit graph

212 commits

Author SHA1 Message Date
Hubert Maier
9040364cfb JANITORIAL: TETRAEDGE: Fix typos 2024-09-17 00:38:49 +03:00
Filippos Karapetis
31476365f5 TETRAEDGE: Switch path suffixes to Common::Path in findFile()
This avoids constant re-creation of Common::Paths from strings when
looking for files and constructing file paths
2024-08-04 13:00:01 +03:00
Filippos Karapetis
b5e79d9d64 TETRAEDGE: Cache FSNode lookups
This is based on @andrewglass's work in PR #5714, and allows us to
cache the remaining cases where Common::FSNode is used
2024-08-04 12:47:37 +03:00
Filippos Karapetis
a3d51fc698 TETRAEDGE: Switch more code to Common::Path
This allows us to remove convertPathToFSNode()
2024-08-04 12:47:37 +03:00
Filippos Karapetis
18f44255c8 TETRAEDGE: Disable code meant for save/load debugging 2024-08-04 12:47:37 +03:00
Filippos Karapetis
d83e86665e TETRAEDGE: Switch more resource loading code to Common::Path 2024-08-04 12:47:37 +03:00
Filippos Karapetis
c40375b062 TETRAEDGE: Rename findFileNew() to findFile() 2024-08-04 12:47:37 +03:00
Filippos Karapetis
c9e0806c05 TETRAEDGE: Remove all leftover uses of findFile() with Common::FSNode 2024-08-04 12:47:37 +03:00
Filippos Karapetis
0cced00f36 TETRAEDGE: Use baseName() to get file names 2024-08-04 12:47:37 +03:00
Filippos Karapetis
1808a76e49 TETRAEDGE: Switch the camera code to Common::Path. Some cleanup 2024-08-04 12:47:37 +03:00
Filippos Karapetis
a5fd4b4cf3 TETRAEDGE: Switch the image, sprite and tile code to use Common::Path
This allows us to remove some more getResource() template functions
2024-08-04 12:47:37 +03:00
Filippos Karapetis
f25c49ef0b TETRAEDGE: Move a folder check inside findFile() 2024-08-04 12:47:37 +03:00
Filippos Karapetis
388f4e0fec TETRAEDGE: Switch the texture and font code to use Common::Path 2024-08-04 12:47:37 +03:00
Filippos Karapetis
c80002eb5b TETRAEDGE: Switch the LUA handling code to use Common::Path 2024-08-04 12:47:37 +03:00
Filippos Karapetis
cad0a89c59 TETRAEDGE: Start switching to Common::Path
This is the first set of changes, and affects a smaller scope of the file access code
2024-08-04 12:47:37 +03:00
Filippos Karapetis
0b01ac88cb TETRAEDGE: Create new functions that use Common::Path instead of Common::FSNode
The results of Common::Path are cached, and are relative to the game's folder,
whereas the results of Common::FSNode aren't cached, and Common::FSNode should
be avoided in engine code. This sets up a compatibility layer, so that game
functions can be gradually switched to use Common::Path
2024-08-04 12:47:37 +03:00
Filippos Karapetis
7c0bee67fa TETRAEDGE: Cleanup 2024-08-04 12:47:37 +03:00
Cameron Cawley
89c57d29ef COMMON: Move more maths functions into the Math namespace 2024-07-27 14:00:48 +03:00
Cameron Cawley
7e0dfe0081 GRAPHICS: Use custom stream callbacks for loading TTF fonts 2024-07-23 15:33:43 +01:00
Matthew Duggan
1cb60d485e TETRAEDGE: Remove deprecated call warning 2024-07-13 21:11:43 +10:00
Cameron Cawley
ff530edcb1 GRAPHICS: Deprecate ManagedSurface methods that implicitly copy pixel data 2024-07-02 13:31:18 +01:00
Cameron Cawley
1357bfe672 COMMON: Avoid including engine headers in common code for DebugChannelDef 2024-06-20 20:15:57 +01:00
Torbjörn Andersson
a1c8db3201 JANITORIAL: Clean up some whitespace and double semicolons 2024-01-29 19:32:00 +01:00
Cameron Cawley
f3fbd2477c GRAPHICS: Allow specifying separate xdpi and ydpi values in loadTTFFont 2024-01-08 23:41:50 +01:00
Le Philousophe
468cdd81bd TETRAEDGE: Migrate engine to Path 2023-12-24 13:19:25 +01:00
Cameron Cawley
d00915fe59 TETRAEDGE: Call setOutputPixelFormat() after loading the video 2023-12-14 17:55:32 +00:00
Matthew Duggan
7069a37577 TETRAEDGE: Set Theora decoder pixel format (fixes #14748) 2023-12-13 20:24:15 +11:00
BLooperZ
0f750eeec3 TETRAEDGE: Prioritize language specific files 2023-10-16 17:29:08 +02:00
Matthew Duggan
0a42f638b1 TETRAEDGE: Disable workaround for texture edges
Speculative fix for non-power-2 textures which might be causing bug #14418.
2023-09-05 17:20:38 +09:00
Matthew Duggan
e01f0a1ce9 TETRAEDGE: Clean right side of textures if they are non-power-2 size
Speculative fix for bug #14539.
2023-09-05 17:17:22 +09:00
Le Philousophe
5bdd9e6f50 ALL: Unify zlib and gzio API
zlib is used when available and falls back on gzio.
This allows performance improvements as our CRC32 and gzio
implementations are slower than base zlib.
As zlib is available when libpng is present, this is sensible to
benefit from it.
2023-08-28 21:49:03 +02:00
D G Turner
52c58cc4d0 TETRAEDGE: Remove Unused Freetype2 Related Code in Font Headers
The freetype2 dependency is still present in the configure.engine
file, but I think this is an implicit requirement via the OSystem
TTFfont API usage.
2023-07-29 18:37:00 +01:00
Donovan Watteau
ad64bb6843 TETRAEDGE: Fix TeImage output on big-endian hosts 2023-05-23 17:04:38 +09:00
Matthew Duggan
421b735fd7 TETRAEDGE: Ensure video anim is stopped on unload 2023-05-08 19:20:26 +09:00
Matthew Duggan
49a1f045bd TETRAEDGE: Add search paths from iPhone Amerzone 2023-05-08 19:20:26 +09:00
Matthew Duggan
c8ed379a09 TETRAEDGE: Fix small coverity-identified bugs 2023-05-08 19:20:26 +09:00
Matthew Duggan
c620fc7542 TETRAEDGE: Don't lose callbacks on failed srpite load 2023-05-08 19:20:26 +09:00
Matthew Duggan
0fd0e0199e TETRAEDGE: Correctly render blank characters 2023-05-08 19:20:26 +09:00
Matthew Duggan
d047b3aa25 TETRAEDGE: Fix typo in error message. PVS-Studio V524 2023-05-08 19:20:26 +09:00
Matthew Duggan
f2f2e68786 TETRAEDGE: Clean up and add more checks in TeWarp loading 2023-05-08 19:20:26 +09:00
Matthew Duggan
cdd6805f00 TETRAEDGE: Add more search paths used by Amerzone 2023-05-08 19:20:26 +09:00
Matthew Duggan
df0adb9ddf TETRAEDGE: Mostly fix rendering of Amerzone objects
Mostly.. they still pop in and out a bit so Frustum is probably not right.
2023-05-06 16:48:32 +09:00
Matthew Duggan
4fc9b914e0 TETRAEDGE: Remove some dead code 2023-05-06 16:46:14 +09:00
Matthew Duggan
99668f5161 TETRAEDGE: Fix Amerzone font rendering 2023-05-06 16:46:13 +09:00
Matthew Duggan
58ddc72537 TETRAEDGE: Fix potential crash on marker update 2023-05-06 16:46:13 +09:00
Matthew Duggan
dc324cdd14 TETRAEDGE: Enable load/save support for Amerzone 2023-05-04 11:53:47 +09:00
Matthew Duggan
1072856f89 TETRAEDGE: Add loading support for tef font format
Still needs some fixes on the rendering side, but loading is working.
2023-05-04 10:28:47 +09:00
Matthew Duggan
7248c55ed1 TETRAEDGE: Simplify rotation calculations
This should also fix a tiny bug in Syberia 2 where the clock hands rotate too
fast and to the wrong spot.
2023-05-04 10:28:47 +09:00
Matthew Duggan
9595183f27 TETRAEDGE: Begin adding Amerzone puzzle support 2023-04-30 19:12:34 +09:00
Matthew Duggan
31ce22edd9 TETRAEDGE: Clean up some coverity issues 2023-04-30 09:54:30 +09:00