John Törnblom
51e7a169a6
add initial language support using a simple MO parser
5 years ago
Jmgr
ef0ca794bc
Use system libfmt by default if version >= 7.0.0
...
Allow non-strict ansi functions
Cleanup
5 years ago
Jonathan Mercier-Ganady
bc8f586893
Fix cmake_dependent_option dependency
...
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
5 years ago
Jmgr
f3a401b5f6
Add the fmt library as a dependency and add some examples
...
Attempt at fixing missing functions on some platforms
5 years ago
obligaron
f51759b827
Include UnitTests
5 years ago
Gleb Mazovetskiy
4f31703b73
🔨 CMake Vita: Set pkgconfig path and fix prefix
...
1. Make CMake use VitaSDK's pkg-config wrapper.
Fix sent upstream: https://github.com/vitasdk/vita-toolchain/pull/182
2. Work around broken `prefix` in `pkgconfig` files:
https://github.com/vitasdk/vdpm/issues/69
5 years ago
Trihedraf
e0b99de789
Make .deb actually have dependencies
5 years ago
Gleb Mazovetskiy
362f24e9a7
🚚 Move SVid code to its own file
5 years ago
thebigMuh
50dcf587f4
Adding fancier XP bar ( #1597 )
5 years ago
Gleb Mazovetskiy
7fd088744e
SDL1 SVid: Clean up video mode code + add override
...
1. Cleans up SVidVideoMode detection.
2. For devices where detection is not possible but it is known
to work, adds an `SDL1_FORCE_SVID_VIDEO_MODE` define.
5 years ago
Gleb Mazovetskiy
472f86588e
OpenDingux: Update RG350 package to OD Beta
...
Unfortunately, OD Beta has a major regression with SDL joystick support,
as it always reports buttons as keyboard keys instead of actual buttons.
This partially breaks external keyboard support, where e.g. space no
longer acts as expected.
However, on balance, OD Beta is better than the 2014 firmware at this
point.
5 years ago
Jonathan Mercier-Ganady
e94e1eb2b9
Allow (C++14 || C++17) ( #1570 )
5 years ago
Gleb Mazovetskiy
86afa95d2a
Move file_util.h implementations to file_util.cpp
...
There is no reason for these functions to be in the header (inlining
won't benefit them one bit).
I put them in the header originally only because of the weird state
SourceS was in back then.
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
6e1a106a38
🚚 Move header we implement into the project
5 years ago
Anders Jenbo
67a7ff98c5
🚨 Clean up compiler warnings
5 years ago
Gleb Mazovetskiy
2f3e0cb18e
SDL1: Backport SDL2 logging
...
1. Backports SDL2 logging.
2. Adds a `--verbose` flag.
3. As an example, adds logging priority and category to a few log calls.
5 years ago
Michael Saunders
3c28d637a9
Copy devilutionx.mpq to the build directory when performing CMake. #1472
5 years ago
Epifanov Ivan
e108e30338
Use custom IME handler on Vita ( #1442 )
5 years ago
Anders Jenbo
53a3657b29
🚚 Move tests to a standard folder
5 years ago
Anders Jenbo
dc84643fe6
🚚 Move dx.cpp and sound.cpp back in to Source now that the name space is clean
5 years ago
Epifanov Ivan
fde936195c
Use custom IME handler on Vita ( #1442 )
5 years ago
Gleb Mazovetskiy
08d04d068d
CMake: Link libzt to ${BIN_TARGET}
...
BIN_TARGET is devilutionx by default but is devilutionx.elf on Switch and 3DS
5 years ago
Xadhoom
867dd96a73
Add ZeroTier support
5 years ago
Gleb Mazovetskiy
4a18ccb626
CMake: Add GPERF option
...
This option links the tcmalloc and gperf memory profiler.
It can then be used to memory-profile individual sections of the app.
On Ubuntu, the package that provides the profiler is
`libgoogle-perftools-dev`.
5 years ago
Anders Jenbo
f64e297d60
🔥 Remove Hellfire specific instructions (it is now unified)
5 years ago
Trihedraf
fea177eb95
Update SDL2 version to 2.0.14 for Windows MinGW builds. And remove note for SDL2 2.0.12 in readme
5 years ago
Gleb Mazovetskiy
88a68f503a
Disable streaming music and sound for 3DS / Switch ( #1264 )
...
Works around https://github.com/devkitPro/SDL/issues/72 at the cost of
~50 MiB extra RAM usage.
5 years ago
Anders Jenbo
a85b03ec72
👷 Set PIE to default for Switch
...
The issue has now been fixed in the build image
5 years ago
Gleb Mazovetskiy
3fb2d21f3a
Add a .clang-tidy config
...
1. Provides additional warnings and **can apply some automatic fixes**.
2. Suggest consistent identifier naming based on the Google Style Guide.
5 years ago
Gleb Mazovetskiy
8670034717
CMake: Fix sodium static build
...
The 4th argument to `cmake_dependent_option` is when to enable the option, not when to disable it like I'd thought.
https://cmake.org/cmake/help/latest/module/CMakeDependentOption.html
5 years ago
Anders Jenbo
932d093433
✅ Test GetDirection
5 years ago
pionere
a841be2708
✅ Test CrawlTable
5 years ago
Gleb Mazovetskiy
0f46e9c4c1
Thumb stick / DPad repeating navigation in DiabloUI, gmenu, and quest log ( #1206 )
5 years ago
Anders Jenbo
8dfff1c75d
👷 Enable additional warnings for Clang
5 years ago
Gleb Mazovetskiy
a545d0ce1c
CMake: An option to build libsodium from source
...
Adds an option to build libsodium from source instead of using the
system-provided one.
This is useful on systems that do not provide libsodium, or for testing
changes to libsodium along with devilutionx (by specifying
`-DFETCHCONTENT_SOURCE_DIR_LIBSODIUM`).
This also allows us to configure sodium to our liking when building it from source,
such as `SODIUM_MINIMAL`, which reduces the x64 release binary size from 4.3 MiB to 4.1 MiB.
5 years ago
Gleb Mazovetskiy
997650aa5d
Stream music instead of loading it all at once
...
RAM usage (my beefy desktop):
* Town: 176 MiB -> 121 MiB
* Cathedral: 191 MiB -> 138 MiB
Performance: 1170 FPS -> 1150 FPS
5 years ago
Gleb Mazovetskiy
c52505388b
Install devilutionx.mpq on Linux
...
1. Installs devilutionx.mpq on Linux.
2. Falls back to finding it in the install location.
5 years ago
Anders Jenbo
d7788522f2
⬆️ Bump CMake to 3.13
...
This allows us to have variables set in the toolchains which cleans up
the main file a bit.
5 years ago
Anders Jenbo
9ea85118d4
🐛 Disable LTO for Windows builds ( #1182 )
5 years ago
Trihedraf
4d70519244
replace ~/repo with ${PROJECT_SOURCE_DIR} on Windows CPacks
5 years ago
Trihedraf
7af5bd103f
remove devilutionx.mpq from bin
5 years ago
Gianluca Boiano
0583daf60c
Improve .desktop files and add Hellfire flavor to CMake build system ( #1127 )
5 years ago
Trihedraf
18cff4f3b9
Add devilutionx.mpq to Win and Linux circleci Packages
5 years ago
Xadhoom
12c7b715cd
Add test for vanilla pfile_write_hero()
5 years ago
lkk7
e616e21f80
Set up inventory tests; add scroll usage tests
5 years ago
Ivan Epifanov
e15e7ac880
Fix dolce->vitasdk vars
5 years ago
qndel
be895274dc
✨ Monster health bar
5 years ago
Oleksandr Kalko
b182bf0c1b
Normalize line endings to CRLF
5 years ago