Anders Jenbo
47feeda0ce
🐛 Only initialize the subsystems that we use
...
Fixes #1391
For now this stops the initalization of sensor subsystem, but in the
future SDL may add more that we do not care about.
5 years ago
Anders Jenbo
433edc63ea
♻️ Consistently use pragma once to guard the headers
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Gleb Mazovetskiy
87dcbcb6d7
Save 1.5 MiB RAM in-game by freeing more DiabloUI art
5 years ago
Anders Jenbo
6f1498d315
🚚 Move structures to there respective headers
5 years ago
Anders Jenbo
bc3dc545da
🔥 Remove unused parts of game creation logic
5 years ago
Juliano Leal Goncalves
9021f8daa5
♻️ Pluralize global 'item' array variable
5 years ago
Gleb Mazovetskiy
33b4c9581d
ttf_render_wrapped: std functions instead of SDL
...
Some SDL ports, such as the 3DS one and the PSP one, are missing these
SDL functions.
5 years ago
Gleb Mazovetskiy
21a4a671e4
Cleanup DiabloAllocPtr
...
1. Removes a lock around allocation. `malloc` is required to be thread-safe in C11.
2. Defines it as a macro so that:
1. We provide the correct location for the OOM error.
2. We get better attribution from memory profilers.
5 years ago
Gleb Mazovetskiy
a6019f4e55
DiabloUI: Render to DiabloUiSurface()
...
Use that instead of using `GetOutputSurface()` directly.
For the rg99 port, we'll want to render this to the `pal_surface`
instead of output surface directly.
Might also be useful for 3ds, perhaps to render to the bottom screen.
5 years ago
staphen
77767eab37
Fixed order of evaluation in SBmpLoadImage size allocation.
5 years ago
Anders Jenbo
b53c624f59
💄 Change animal type color to yellow
5 years ago
Anders Jenbo
c8f2f09e03
♻️ Improve HP guard
5 years ago
Anders Jenbo
ccad226092
🐛 Fix health bar poping when mosnter healt is 0
5 years ago
Anders Jenbo
ae82fb0b23
🐛 Make health bar take panels in to consideration
...
Fixes #1350
5 years ago
Anders Jenbo
3a8b4cef9f
🐛 Update hero list after canceling out of create game dialog
5 years ago
Anders Jenbo
37fbe80930
🐛 Correct avalible heros in shaware
5 years ago
danie1kr
8555b1352f
Fix broken KeySupport for Gameshell (and others) ( #1343 )
5 years ago
Juliano Leal Goncalves
1bb12b1bfb
♻️ Refactor 'HasRoomForGold' function for readability/robustness
5 years ago
Juliano Leal Goncalves
18b9b51a5e
🐛 Check correct inventory gold piles when auto-picking up gold
...
Off by one error in the logic when indexing into 'InvList'
5 years ago
Gleb Mazovetskiy
6e846ee89d
Also disallow Barbarian in shareware
...
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
5 years ago
Gleb Mazovetskiy
0f3951744f
diablo.ini: Rename "Fast Walk" to "Run in Town" ( #1326 )
5 years ago
Gleb Mazovetskiy
80c310c760
Fix --diablo new hero stats pane with Bard/Barb
...
Fixes #1325
5 years ago
Anders Jenbo
e2eea6c377
✨ Load variable size heros.pcx and individual portraits
...
closes #936
5 years ago
Bardur Arantsson
184fbde1fd
Issue app_fatal() message if we cannot find QoL assets
5 years ago
Anders Jenbo
1ebf1c6b4e
🐛 Do not render health bar if graphics are missing
5 years ago
Bardur Arantsson
15ade5ccb5
Avoid static non-PODs
5 years ago
Gleb Mazovetskiy
5814838d26
Move SFile helpers to storm.h
5 years ago
Gleb Mazovetskiy
ec2a3cc9d7
storm_sdl_rw: Use 64-bit file pointers for consistency
5 years ago
Gleb Mazovetskiy
be21f80f42
Fix `SBmpLoadImage` size allocation
...
SBmpLoadImage tried to get the size of the rest of the file incorrectly
by subtracting the current file position from the total size.
This was incorrect because file positions do not always begin at 0.
The only semi-portable way to get a size from file positions is to
subtract two file positions.
5 years ago
Anders Jenbo
a2656637e4
🎨 Format source
5 years ago
Anders Jenbo
30d013edf9
💄 Lower icons to not obscure long names
5 years ago
Anders Jenbo
699e451611
💄 Adjust visual style of new UI elements
5 years ago
Anders Jenbo
cee6029da0
🔥 Rely less on storm.h
5 years ago
Juliano Leal Goncalves
800dbce066
♻️ Move options-related structs to new 'options.h' file
5 years ago
Anders Jenbo
8425a23585
♻️ Only write ini file once
5 years ago
Anders Jenbo
6e3908aa58
🚨 Fix a few warnings from various builds
5 years ago
Anders Jenbo
fbd86cd3c5
🎨 Mark noreturn functions as such
5 years ago
Yuri Pourre
df56d6a03b
Rollback joystick changes
5 years ago
Anders Jenbo
25168dd599
Update support_lines.cpp
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
Gleb Mazovetskiy
fb2e76889f
Fix a small memory leak in game_controller.cpp
5 years ago
Gleb Mazovetskiy
7ead76e8d2
Remove SFileDdaSetVolume
...
It is only used in one place and does not actually control the volume of any specific file.
5 years ago
Trihedraf
508e4c635c
Add --ttf-dir to specify location of path to ttf ( #1253 )
5 years ago
Anders Jenbo
f2140688e7
Load and save all ini values the same way ( #1260 )
5 years ago
Gleb Mazovetskiy
7d926a4619
controller.cpp: Fix missing <cmath> include
5 years ago
Gleb Mazovetskiy
4ccb91d166
Fix #if HAS_KBCTRL == 1
5 years ago
Yuri Pourre
07111bb434
Add missing semicolon
5 years ago
Yuri Pourre
6ce5590f40
Update const joystick
5 years ago