Anders Jenbo
22dbe63f75
Fix MSVC builds
7 years ago
Gleb Mazovetskiy
31816a0ed0
[performance] Make DrawArt faster
...
Profiling the menu, DrawArt goes from 94% to 86%, though it's hard to
measure exactly.
7 years ago
Anders Jenbo
3de9b4b1e9
Clean up MPQ loading and make it more portable
7 years ago
Anders Jenbo
5b2a878945
Remove check for multiple application instances
...
(it's currently not working any way)
7 years ago
Anders Jenbo
55717bb429
Remove RegisterClassEx part of miniwin
7 years ago
Anders Jenbo
d26f4b0ad0
Build macOS package via CMake exclusively
7 years ago
Anders Jenbo
d5d2ae6df2
Add the font to the macOS package
7 years ago
Anders Jenbo
dc9e440361
Move Haiku icon to the Packaging folder
7 years ago
Anders Jenbo
0f1a70e8d5
Build macOS package via CPack
7 years ago
alexey.lysiuk
d6a457791b
Create proper macOS application bundle with CMake
7 years ago
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
7 years ago
Mathieu Maret
19f5686770
Catch exception by reference
7 years ago
Mathieu Maret
89ec0538f5
Correct copy elision warning
...
moving a local object in a return statement prevents copy elision
7 years ago
Anders Jenbo
049178cb2e
Clean up load/save code
...
Remove most call to memcpy in preperation for Big Endian support
Document what pointers are being skipped
Align save and load code (easier to verify that both are correct)
7 years ago
Anders Jenbo
a41753e813
Fix crash when exiting and font isn't loaded
7 years ago
Anders Jenbo
b90ef1336d
Fix Segfault when loading game
...
Fixes #224
Not this breaks save games generated with master since 2019-07-15
7 years ago
Anders Jenbo
5cadee74c2
Fix a few compiler warnings
7 years ago
Robin Eklind
d16f603537
all: remove unused storm imports
...
While no storm functions are called from these source files
it is determined that they included storm in the original
source files as made visible by the inclusion of infinity
in the data segments of the respective source files.
ref: diasurgical/devilution#1695 .
7 years ago
Anders Jenbo
c5a9917aee
Merge branch 'master' of github.com:diasurgical/devilution
7 years ago
Anders Jenbo
1c9801986c
Fix S_StartTalk
7 years ago
qndel
8741ddc6c2
SetupItem cleanup
7 years ago
qndel
afa1306e91
GetUniqueItem cleanup
7 years ago
qndel
2f6a428f4b
ProcessItems cleanup
7 years ago
qndel
a47a797468
RecreateEar cleanup
7 years ago
Robin Eklind
46add07dbf
Merge pull request #1654 from qndel/SortSmith
...
SortSmith cleanup
7 years ago
Robin Eklind
c9f9e70139
Merge pull request #1653 from qndel/SortHealer
...
SortHealer cleanup
7 years ago
Robin Eklind
4b170cab01
Merge pull request #1652 from qndel/SortWitch
...
SortWitch cleanup
7 years ago
qndel
33b3711662
SortSmith cleanup
7 years ago
qndel
b47af60b6f
SortHealer cleanup
7 years ago
qndel
a5de88ab39
SortWitch cleanup
7 years ago
qndel
a05071551a
CalcPlrItemMin cleanup
7 years ago
Anders Jenbo
f8616e3e1e
Merge pull request #1616 from qndel/InitThemes
...
InitThemes cleanup
7 years ago
Anders Jenbo
b22e2451e3
Merge pull request #1618 from qndel/SetReturnLvlPos
...
SetReturnLvlPos cleanup
7 years ago
Anders Jenbo
4d5e2ac7dd
Merge pull request #1620 from qndel/ResyncQuests
...
ResyncQuests cleanup
7 years ago
qndel
5fb15255a8
Apply enums to quests
7 years ago
qndel
3668c20fe3
NewTownerAnim cleanup
7 years ago
qndel
eab02de82f
ResyncQuests cleanup
7 years ago
qndel
72883c0621
SetReturnLvlPos cleanup
7 years ago
qndel
d269ef5045
InitThemes cleanup
7 years ago
Robin Eklind
72bdad4ceb
Merge pull request #1605 from diasurgical/sizeof-TMegaPkt
...
Use sizeof(TMegaPkt)
7 years ago
Anders Jenbo
c52464d227
Promote 64bit builds to stable
7 years ago
Anders Jenbo
bf973d0872
Use sizeof directly instead of definging TMEGAPKT_SIZE
7 years ago
Anders Jenbo
b7a4d32e91
Use sizeof(TMegaPkt)
7 years ago
Nam Nguyen
7e2bd7c967
detect 64-bit platform on windows, gcc, clang, arm and ppc
...
sources:
Use of #ifdef __LP64__ suggested by @brynet .
https://stackoverflow.com/a/40033930
7 years ago
Nam Nguyen
f707e696db
glpMsgTbl stores 64-bit pointers to turn_t variables. This won't fit inside int.
7 years ago
Nam Nguyen
111d147d72
Fix copying from framesize_t (4 bytes) to nextsize (8 bytes)
...
Copy framesize_t (4 bytes) to nextsize (8 bytes) then shift 32 bits to zero out
the most significant 32 bits.
Use of #ifdef __LP64__ suggested by @brynet .
7 years ago
Nam Nguyen
f7ceadf6dc
pack the TMegaPkt struct. define TMEGAPKT_SIZE.
...
memcpy((char *)&packeta[1] - packeta->dwSpaceLeft, packet, dwSize);
Source/msg.cpp does this calculation, which will be wrong if any padding is
added. To get this to work correctly, pack the structures, as suggested by
@AJenbo .
Also, define TMEGAPKT_SIZE because pNext can be 4 or 8 bytes.
7 years ago
Anders Jenbo
14f8c9368a
Merge branch 'master' of github.com:diasurgical/devilution
7 years ago
Anders Jenbo
4bc2386cf3
Update 32bit Xcode config
7 years ago
Anders Jenbo
0d39f6fe08
Remove unused miniwin poarts
7 years ago