Commit Graph

24 Commits (master)

Author SHA1 Message Date
Sam Hellawell a51d560174 Move bone rename logic to ColladaDescriptionVisitor, undo formatting/refactoring 9 months ago
Sam Hellawell 2288a691d2 Replace osgAnimation bone underscore naming at load time, map bone instances, reset root bone transform each frame 9 months ago
uramer 0e2e386dc9 Lua actions take 3 1 year ago
Evil Eye 9c819b5705 Disallow formatting of UString 2 years ago
elsid 89eccab7f1
Add missing include
In file included from /home/elsid/dev/openmw/apps/openmw_test_suite/settings/testvalues.cpp:1:
/home/elsid/dev/openmw/components/misc/strings/conversion.hpp: In function ‘std::string Misc::StringUtils::toHex(std::string_view)’:
/home/elsid/dev/openmw/components/misc/strings/conversion.hpp:139:87: error: ‘uint8_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
  139 |             const std::ptrdiff_t space = static_cast<std::ptrdiff_t>(static_cast<std::uint8_t>(v) <= 0xf);
      |                                                                                       ^~~~~~~
      |                                                                                       wint_t
/home/elsid/dev/openmw/components/misc/strings/conversion.hpp:140:97: error: ‘uint8_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
  140 |             const auto [ptr, ec] = std::to_chars(out + space, out + space + 2, static_cast<std::uint8_t>(v), 16);
      |                                                                                                 ^~~~~~~
      |                                                                                                 wint_t
2 years ago
elsid 04d439485b
Log more info about navmesh shapes and jobs 2 years ago
Shi Han a90e3b8c3b Move from std::atoi to std::from_char 2 years ago
elsid dfcea389be
Add helper functions for string comparison to RefId 2 years ago
Andrzej Głuszak 9b0a499b58 Remove strerror usages 2 years ago
florent.teppe a4137e941c std::string_view can be used in map and unordered map
This avoids some unecessary dynamic allocations.
Also applies some review advice.
2 years ago
elsid 755067f0f3
Remove redundant ESM::RefId member functions 2 years ago
florent.teppe dc21df97c8 Fixed issue with getSummonedCreature( that returned a reference to a non const static value
Fix compile, and apply review comment

Fixed greater vs more typo.

getCellname is back to a string view.

Because in most cases was used as a strong not a refId.
and there was a fundamental issue with region names used as a cellname
2 years ago
florent.teppe d49f60d2d6 To change fewer things with the master implementation, the Id isn't changed to lower case on creation
lower case utility functions used in comparison functions
2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
Project579 5456ef1d50 Add new functions and overloads to support std::u8string and std::filesystem::path. 2 years ago
Evil Eye 02bbb0be45 Improve format workaround and add unit tests 2 years ago
Evil Eye 4e2e5ad002 Revert format change and ensure string_view args are null-terminated 2 years ago
Evil Eye 1d21330fcc Return string_view from getGameSettingString 2 years ago
elsid 5dc612aa54
Replace ciCompareLen with ciStartsWith where possible
`ciCompareLen(a, b, b.size()) == 0` expression is an equivalent of checking for
equality of `a` prefix with size `b.size()` with `b`.

`ciCompareLen(a, b, a.size()) == 0` is also the same thing but `a` is a prefix
`b` should start with.
2 years ago
Evil Eye 4ff12d8945 Make Class::getName return string_view 2 years ago
Matt e6868fd211 Allow constexpr hashing 2 years ago
Evil Eye de8d9b8db3 Use Fowler-Noll-Vo hash instead of std::hash 2 years ago
Evil Eye de51525c76 Allow string_view lookups in MWWorld::Store and get some use out of that 2 years ago
elsid f99ed6f1db
Split components/misc/stringops.hpp into multiple headers
Replace all ciEqual overloads with one having std::string_view as argument.
2 years ago