Gleb Mazovetskiy
187355702b
🔨 CMake: Add ThreadSanitizer via `-DTSAN=ON -DASAN=OFF`
...
It immediately detects some data races
5 years ago
Jmgr
4fad8023ff
Fix fmt issue with a nullptr controller mapping
5 years ago
Anders Jenbo
5b474b4781
Enable warnings for MSVC builds
...
Also, fix warnings related to DVL_PRINTF_ATTRIBUTE
5 years ago
Gleb Mazovetskiy
0bfc147b78
🧹 Remove `DiabloAllocPtr` and friends ( #1824 )
5 years ago
Jonathan Mercier-Ganady
4274cc6f1f
Log format errors as critical and call app_fatal to terminate
5 years ago
Vladimir Olteanu
d9a4ff8729
Use std::string_view for towners' names ( #1750 )
5 years ago
Gleb Mazovetskiy
f33f7ae7eb
💨 Do not zero-initalize arrays we write to
...
`std::make_unique<T[]>(size)` always zero-initalizes the array.
C++20 has `std::make_unique_for_overwrite` to avoid that, while
older C++ versions can use the approach applied here.
5 years ago
Anders Jenbo
b177f77d21
🎨 Cleanup language.cpp
5 years ago
Anders Jenbo
d83fa8edb3
🌐 Apply plural translation where applicable
5 years ago
thebigMuh
cab62a7dbf
Load item graphics early so they are available for hero selection
5 years ago
Gleb Mazovetskiy
34b4ed759a
🐞 Clean up and fix inventory sprite handling
5 years ago
ybrbnf
9737864a72
Update russian translation
5 years ago
Gleb Mazovetskiy
5820948761
♻️ Make `SFileRw` own the Storm file handle
...
All of our use-cases for `SDL_RWops` Storm file require closing the file
when closing the `SDL_RWops` -- doing this automatically simplifies the
code.
5 years ago
Gleb Mazovetskiy
8e634ff02c
♻️ Remove `_iAnimWidth`
...
No longer needed as of #1796
We could probably go further and not expose `ItemAnimWidth`,
but it'd be dangerous because sometimes `_iAnimData` is null.
5 years ago
Gleb Mazovetskiy
0b18b8977b
🐞 items.cpp: Fix nullopt access
...
A better fix would probably be to not call this function in the first
place before the graphics are loaded.
5 years ago
Gleb Mazovetskiy
3d03990cb8
♻️ Replace `SBmpLoadImage` with a simpler method
...
The new approach only makes 2 read calls and does not do any seeks.
It is also less general and is internal to `art.cpp`, allowing us to
simplify it somewhat.
5 years ago
Anders Jenbo
370d87f9e6
🌐 Update Italien translation file
5 years ago
M0Rf30
d00bad2983
Update Italian localization
5 years ago
Anders Jenbo
93f9b852a2
🐛 Do not stop music when calling sound_stop()
...
Fixes #1782
5 years ago
Gleb Mazovetskiy
7bdfb0655c
🐞 Support multiple playback of the same sound
5 years ago
Anders Jenbo
22d7d41615
🌐 Fix remaning plural form of gold related texts
5 years ago
Gleb Mazovetskiy
c770ae676f
🎉 Stream videos on Linux and FreeBSD
...
Previously, we always loaded entire videos in memory before playing them.
`libsmacker` does not provide a streaming API but it does provide a
`FILE *` file pointer API.
We now take advantage of the `FILE *` API by streaming the videos on
platforms that support `fopencookie`.
This means faster startup and less memory usage on these platforms.
5 years ago
Gleb Mazovetskiy
63e0e60956
Add `MeasureSolidHorizontalBounds`
...
Adds a function to measure the X-coordinates of the solid
(non-transparent) bounding box of a CEL.
5 years ago
Anders Jenbo
2d8fc4f5be
🌐 Update and correct errors in translation files
5 years ago
Anders Jenbo
639e94b3d6
🌐 Use plural form translation for handeling gold related texts
5 years ago
Gleb Mazovetskiy
5bb6dc928a
🌍 Add some missing /*xgettext:no-c-format*/ annotations
5 years ago
Gleb Mazovetskiy
28182ca5e3
🧹 Fix a couple more compilation warnings
5 years ago
dv4mp1r3
22c6078d11
some new russian translations ( #1808 )
5 years ago
Gleb Mazovetskiy
8257837801
🎨 Fix line endings in Source/qol/*
5 years ago
Gleb Mazovetskiy
06ae2508bd
Storm: Apply upstream commit
...
62001d116a
5 years ago
Gleb Mazovetskiy
f454b29c11
🐞 Storm: Make `nLastError` thread-local
5 years ago
Gleb Mazovetskiy
47c93c2f9c
🧹 Fix more `-Wformat` warnings
5 years ago
Gleb Mazovetskiy
22ebebb2d1
🎨 Fix line endings in Source/qol/monhealthbar*
5 years ago
Gleb Mazovetskiy
4408ddc127
🧹 Fix some -Wformat warnings
5 years ago
Gleb Mazovetskiy
fe99f79bb0
🎨 Fix line endings in Source/qol/xpbar*
5 years ago
staphen
ca09c704cf
Use crlf for .txt files in editorconfig.
5 years ago
staphen
d2fd6660d2
Add readme to Packaging/ctr.
5 years ago
staphen
e0051d86ed
Add readme to Packaging/vita.
5 years ago
staphen
5a44eb082b
Modify line endings (to crlf) in switch readme.
5 years ago
KotenokTest
14eff62c40
Update ru.po
...
meow
5 years ago
Mathieu Maret
89fdb6f8e4
Add french translation
5 years ago
Gleb Mazovetskiy
052b4c12f5
♻️ LoadFileInMem: Remove `nullptr` at call sites
...
This is now the default argument, no need to provide it explicitly.
5 years ago
Gleb Mazovetskiy
1b8b62a8c2
♻️ Store CEL width with the sprite itself
...
Instead of passing the CEL sprite width when drawing, store the CEL
width at load time in the new `CelSprite` struct.
Implemented for most sprites except towners, missiles, or monsters.
5 years ago
Mathieu Maret
f4ef9de2e6
Fix Control Hit Translation
5 years ago
Mathieu Maret
dc28b7464e
Do not translate spacing
5 years ago
Mathieu Maret
e47d80f8df
Fix in-correct c-format in pot
...
Detected as c-format because of % presence
but are used as regular strcpy
checked that clang-format will not break it
5 years ago
Anders Jenbo
38d7b1e3c8
🐛 Do not utilize translations till after it has been initialize
5 years ago
Anders Jenbo
18f3a0c5ea
✨ Support for plural forms in translations
...
The implementation isn't robust, dynamic or pretty, but works for now.
5 years ago
qndel
d313a5fdc9
fix line endings in windows readme ( #1790 )
5 years ago
Mathieu Maret
a87f1d8d2e
Avoid a strcpy
...
if _iIdentified is true, the first strcpy was not usefull
5 years ago