Commit graph

20 commits

Author SHA1 Message Date
Gleb Mazovetskiy
13c5da4e43 .editorconfig: Set .py to LF 2021-11-10 02:50:46 +01:00
ephphatha
38de1359a7 Add VS configuration for building in WSL using GCC
This is mainly to help me test code builds under GCC faster than pushing to the remote and letting the build server do it. If someone without WSL installed selects the build target they'll get an error in their IDE, but no harmful impact other than that. The variables should be populated for any WSL2 installation. No idea about WSL1.

The whitespace in this file is showing significant changes because visual studio regenerates the whole file when a change is made, I didn't think it was worth reverting since it'll happen again next time someone makes a change (seems it defaults to spaces...). Added an entry to .editorconfig documenting the format used.
2021-11-08 23:23:39 +01:00
Gleb Mazovetskiy
7e230df94a Allow forcing Hellfire with command-line flags
This is useful for systems such as batocera.linux that have dynamic
launcher items that depend on the presence of the appropriate MPQ files.
2021-10-25 13:52:14 +01:00
Gleb Mazovetskiy
4408ddc127 🧹 Fix some -Wformat warnings 2021-05-01 21:59:34 +02:00
staphen
ca09c704cf Use crlf for .txt files in editorconfig. 2021-05-01 21:15:49 +02:00
Gleb Mazovetskiy
acee2ef14c 🎉 Switch from SDL_mixer to SDL_audiolib
SDL_mixer can only stream a single music track
SDL_audiolib has unlimited streams.

With this change, we finally have streaming sounds (respecting
sfx_STREAM).

Audio options can now also be set via diablo.ini, which should help us
better diagnose the static noise issues.
2021-04-27 00:54:50 +01:00
Gleb Mazovetskiy
9a5b9706c2
Fix AppImage (#1263) 2021-03-25 08:08:52 +01:00
Gleb Mazovetskiy
c52505388b Install devilutionx.mpq on Linux
1. Installs devilutionx.mpq on Linux.
2. Falls back to finding it in the install location.
2021-03-15 10:49:22 +01:00
Gleb Mazovetskiy
e4212a0de9
Try uppercase DIABDAT.MPQ (#1184)
It's uppercase in GOG and on the retail CD.
Other MPQs are not known to be uppercase.
2021-03-14 12:45:13 +01:00
Juliano Leal Goncalves
7e8469774c 🔨 Standardize comment format to Doxygen-style
Comment blocks are auto-generated when inserting /**
2021-03-12 03:03:03 +01:00
Gleb Mazovetskiy
68a0c3a786 Use LF for Markdown files instead of CRLF
Ensures the contents can be easily copy-pasted into the terminal from
most editors on all systems.

Otherwise, on Linux, you get 2 newlines for each newline in the source
when copying from VS Code.
2020-03-08 03:09:42 +01:00
Gleb Mazovetskiy
1ea70f8ae8 Build Source and SourceX with UBSAN by default 2019-10-09 17:26:50 +02:00
Gleb Mazovetskiy
10733ffff6 CMake: Use LTO on all compilers where supported (#330)
* CMakeLists.txt: Fix indentation

* CMake: Bump minimum required version: 3.7 -> 3.10

This simplifies LTO support
2019-10-06 14:44:10 +02:00
Gleb Mazovetskiy
37936c6d15 DiabloUI: Refactor UI_Item to tagged unions
Makes the code easier to understand.
Also makes building lists easier.

Also fixes focus indicator in SELLOAD_DIALOG (this type of bug is
impossible with the new structs).
2019-09-29 18:55:16 +02:00
Anders Jenbo
18532e7c9b Format SourceX and SourceS
Fixes #262
2019-09-26 01:28:27 +02:00
Gleb Mazovetskiy
cf0f867ca0 DrawArt via SDL 2019-09-25 01:01:25 +02:00
Gleb Mazovetskiy
85295838a4 An option to use SDL1 instead of SDL2
Adds a USE_SDL1 build option to use SDL v1 instead of v2.

This is useful for porting Diablo on devices that don't support SDL2,
such as the RetroFW / OpenDingux devices (e.g. RG300 Retro Gaming Handheld)

Not yet supported:
* Fullscreen
* Upscaling
* Audio
2019-09-23 01:42:05 +02:00
Dennis Duda
7f98d3c54a Fixed editorconfig to not convert shellscripts to CRLF, changed are-we-d1-yet.sh to LF 2018-09-18 23:20:06 +02:00
Dennis Duda
779bb695e4 Changed newline to "crlf" to match the project. 2018-09-05 12:48:03 +02:00
Anders Jenbo
9f153b313e Add .editorconfig
This sets some basic code style settings for most IDEs/editors
2018-09-05 12:48:03 +02:00