Commit Graph

59 Commits

Author SHA1 Message Date
elsid 878f9f8433
Add extension path type 2025-12-08 20:38:23 +01:00
elsid b5196b2fd1
Use normalized path for correctResourcePath and related functions 2025-12-08 20:38:15 +01:00
elsid 66923870da
Use normalized path to implement correctResourcePath 2025-12-06 00:12:43 +01:00
elsid 1b362140ae
Remove duplicated and leading slashes in normalizeFilenameInPlace
To be consistent with correctResourcePath.
2025-12-06 00:12:43 +01:00
elsid 538e5d5502
Use normalizeFilename in correctResourcePath 2025-12-06 00:12:42 +01:00
Petr Mikheev 10dba7cda7 Initial support of ESM4 sounds; play opening sound of ESM4 doors. 2025-07-08 11:14:13 +02:00
elsid 22817dd6a1
Use normalized path for correctMeshPath 2024-11-16 12:49:11 +01:00
elsid 36198e9413
Use normalized path for getLODMeshName 2024-11-15 01:05:36 +01:00
elsid afa769408a
Use normalized path for correctActorModelPath 2024-11-03 13:50:17 +01:00
elsid 376911f645
Reduce duplication for getting file name 2024-11-03 13:50:17 +01:00
elsid d2ab366233
Use normalized path in PhysicsSystem 2024-10-18 13:45:29 +02:00
elsid 85edc49f2f
Remove unused argument 2024-09-18 23:53:04 +02:00
psi29a 023c0f7a46 Merge branch 'vfs_normalized_path_6' into 'master'
Use normalized path for music related functions

See merge request OpenMW/openmw!4038
2024-04-22 07:02:14 +00:00
elsid a863899eb1
Use normalized path for SoundManager::streamMusic 2024-04-20 21:14:09 +02:00
Alexei Kotov 1a961f3021 Extremely early handling for BGSM/BGEM files 2024-04-20 19:43:41 +03:00
elsid e11a5a4352
Use normalized path for SoundManager::playPlaylist 2024-04-19 22:43:20 +02:00
elsid ec9c829021
Use normalized path for correctSoundPath 2024-02-24 12:42:36 +01:00
Evil Eye 82c92a9a6c Merge branch 'bookart-is-textures-too' into 'master'
Consider bookart a valid prefix for regular textures and vice versa

Closes #7535

See merge request OpenMW/openmw!3342
2024-02-24 10:31:13 +00:00
AnyOldName3 6406095bfb s p a n 2024-02-23 01:34:01 +00:00
AnyOldName3 1717e696b1 Format before clang notices and sends me an angry email 2024-02-23 00:06:51 +00:00
AnyOldName3 db5a43db30 Allow top-level prefix to be found in the middle of a path 2024-02-23 00:04:48 +00:00
elsid 81a483fc7f
Remove unused vfs argument from correctMeshPath 2023-12-26 14:14:52 +01:00
AnyOldName3 4d0aece001 Clarify variable name 2023-12-11 00:05:41 +00:00
AnyOldName3 3a71a78d9e Combine topLevelDirectory and alternativeDirectories 2023-12-10 19:01:30 +00:00
AnyOldName3 f30676cbc7 Invert condition
Rebased to account for upstream normalising slashes to replace forward
slashes with backslashes, simplifying the part that needed to check for
both variants. Perhaps if it'd been like that in the first place, I
wouldn't have made the mistake that made the original version of this
commit necessary.
2023-12-10 18:25:00 +00:00
AnyOldName3 69bb65e47b Allow bookart to be in texutres and texutres to be in bookart.
Rebased to account for upstream normalising slashes to turn forward
slashes into backslashes. This simplifies some conditions that
previously needed to check for both kinds.
2023-12-10 18:24:07 +00:00
Petr Mikheev 4beed29404 Changes required during review 2023-10-07 17:21:25 +02:00
Alexei Kotov 1da9038b35 Updates to resource path handling
- Remove consecutive slashes
- Only use backslashes
- Try to find the top level directory in the path before prepending it
2023-10-04 15:54:28 +03:00
Andrei Kortunov e1cae5a029 Rework music system 2023-09-13 09:11:07 +04:00
Andrei Kortunov 7ce9fc25c5 Implement Lua bindings for sound system 2023-08-15 10:28:29 +04:00
psi29a 6601b0cb15 Merge branch 'fastandloose' into 'master'
Drop support for --fs-strict

Closes #7394

See merge request OpenMW/openmw!3093
2023-07-02 19:24:14 +00:00
Petr Mikheev 2f16a8d27c Fix incorrect model part for records created by Lua scripts 2023-06-18 00:19:50 +02:00
Evil Eye eeda48ec50 Drop support for --fs-strict 2023-06-08 21:10:09 +02:00
Evil Eye 3138eb406b Fix case sensitive comparison 2023-05-22 18:18:01 +02:00
Alexei Kotov 6ff9b5d326 Make use of ends_with for KF 2023-01-15 01:48:06 +03:00
Alexei Kotov 4d0788e016 Use xnif if its xkf is present even if xnif isn't 2023-01-14 03:35:50 +03:00
florent.teppe 65cdd489fb create a specific esm reader function for RefID to avoid allocation for string and then again for RefId
Fixed some types

removed useless header

applied clang format

fixed compile tests

fixed clang tidy, and closer to logic before this MR

Removed hardcoded refids

unless there is a returned value we don't use static RefIds
can use == between RefId and hardcoded string

Fix clang format

Fixed a few instances where std::string was used, when only const std::string& was needed

removed unused variable
2022-12-27 19:15:57 +01:00
fteppe 7da38113be Changed more hardcoded RefId to be static to avoid multiple runtime creations
adresses multiple review comments
2022-12-27 19:15:56 +01:00
fteppe 2f2e401559 is Hidden marker now takes a const RefId& instead of a string_view 2022-12-27 19:15:55 +01:00
Cédric Mocquillon 7e77e69a3c Use a wider type when converting to a signed type 2022-12-18 21:31:51 +01:00
elsid 843753da14
Remove unused includes 2022-10-09 16:44:18 +02:00
clang-format-bot ddb0522bbf
Apply clang-format to code base 2022-09-22 21:35:26 +03:00
Cédric Mocquillon 83ee25711e Use the pattern according to the esm version 2022-09-03 18:55:06 +02:00
Cédric Mocquillon 6a3d27ce82 Add a dictionary to retrieve the LOD mesh name of a mesh cache 2022-09-03 18:52:27 +02:00
Evil Eye 150d1840d6 Use more string_view and const string& 2022-08-22 16:55:53 +02:00
elsid f99ed6f1db
Split components/misc/stringops.hpp into multiple headers
Replace all ciEqual overloads with one having std::string_view as argument.
2022-08-03 22:06:24 +02:00
uramer 1fb136a417 Correct icon and mesh paths in Lua records 2022-06-12 11:30:29 +02:00
Cédric Mocquillon 512d64e514 Extract correctSoundPath method to avoid code duplication. Add unit test for the new method 2021-11-10 23:06:35 +01:00
Bo Svensson 0371072631
removes lowerCaseInPlace (#3217)
This PR removes unneeded `lowerCaseInPlace` calls in in a hot path of `objectpaging.cpp` that are no longer necessary after PR #3197. In addition, I have been informed that these changes should by coincidence address a compiler specific compilation error we currently experience.
2021-11-04 22:20:06 +01:00
elsid 3caf45807f
Use common implementation to filter hidden markers 2021-08-12 22:35:16 +02:00