Clownacy
76e4fb5e8a
Improve MSVC6 hacks
2020-03-14 14:08:25 +00:00
Clownacy
c6b77fb015
Move the windows.h include to the right place
2020-03-14 13:25:25 +00:00
Clownacy
8a3b5c1f7a
Use macros instead of __stdcall
...
Wow Microsoft's documentation sucks: it constantly omits these,
making you think they're just plain `__cdecl`.
2020-03-14 13:22:36 +00:00
Clownacy
4e0a168533
Move the MSVC6 hacks to WindowsWrapper.h
...
Now the wrapper has a purpose again, and it keeps things neat.
2020-03-14 12:55:22 +00:00
Clownacy
05fb5cf106
Fix build error with MinGW
2020-03-13 22:01:02 +00:00
Clownacy
406ff18909
Add CMakeLists.txt and Visual Studio 6 support
...
The CMake file allows you to compile the accurate branch with
whatever version of Visual Studio you have lying around, without
having to clumbsily convert the VS2003 project.
I've tested this with VS2019, VS2003, and VS6. VS6 is goofy - it's
missing a few types and constants, and it's not smart enough to
realise that ints and longs are the same in ILP32 data models. I've
added a few small hacks to address this. Might undo them. Who knows.
For now, I want to support VS6 because Mint compiled CSE2 with it
before, and because VS6 uses `msvcrt.dll` as its C runtime, which
apparently comes pre-installed in Windows, as opposed to all those
other annoying runtime versions that require they be installed
separately (which is why MinGW targets it specifically).
Also, VS6 *should* give us Win95-compatible builds. The internet says
MSVC2003 is Win95-compatible too, but Mint claims the vanilla EXE
doesn't run on there. I imagine it has something to do with its
static runtime library (VS2003 links the static one by default for
some reason).
2020-03-13 21:35:51 +00:00
Clownacy
e4a20a983e
Similar fixes
2020-02-20 15:59:04 +00:00
Clownacy
ed97e374f8
Fix screen centering in wide/tallscreen
...
Previously, it would misbehave if the screen is slightly wider than the level
(because it wasn't accounting for the fact that the game hides half of the
border tiles)
2020-02-20 13:11:39 +00:00
Clownacy
a7f1d80a06
Fix compilation with modern Visual Studio
2020-02-13 18:16:01 +00:00
Clownacy
a762f28837
Note some out-of-bounds array accesses
...
Thanks, Gabe
2020-02-01 12:45:32 +00:00
Clownacy
30dced2587
Correct the style of some pointer checks
2020-01-26 13:52:24 +00:00
Clownacy
0bcf978424
Rename HookDirectInputDevice
2020-01-24 21:00:34 +00:00
Clownacy
0237844e14
Actually, this fix doesn't seem right
2020-01-23 01:50:03 +00:00
Clownacy
4091d152ee
Minor style tweak
2020-01-23 01:36:19 +00:00
Clownacy
a65c4bc1e3
Added bugfix to Organya
2020-01-23 01:34:55 +00:00
Clownacy
ede9fa213d
Fix compilation with FIX_BUGS enabled
2020-01-23 00:03:54 +00:00
Clownacy
f687c5f68b
Remove the RGB macro
...
This is a leftover part of the window.h emulator in that got moved to
the portable branch
2020-01-22 23:50:27 +00:00
Clownacy
4ebfe064ff
Fix compilation
2020-01-22 23:33:59 +00:00
Clownacy
d50c012446
Input.cpp corrections
...
Typical Microsoft: make the return type a BOOL, but the make the
actual values some random enum.
2020-01-21 11:58:29 +00:00
Clownacy
6764f17ab9
Added bugfix for StartDirectDraw failure
...
The original code didn't account for it failing, which leads to
annoying bugs happening whenever it does fail.
Now, the game just closes, like it does with any other init error.
2020-01-17 10:35:43 +00:00
Clownacy
78a066ce75
Note some inaccurate stack frames
2020-01-09 06:58:04 +00:00
Clownacy
406087bebb
Added a missing #include in Organya.cpp
2020-01-08 13:34:54 +00:00
Clownacy
a5df6ebc72
Remove SET_RECT macro
...
I should probably remove WindowsWrapper.h from this branch now, and
just make files use windows.h directly.
2020-01-07 23:15:33 +00:00
Clownacy
cb4bd02ab5
More-accurate ValueView.cpp variable arrangement
...
Finally done with this
2020-01-07 22:20:22 +00:00
Clownacy
5adc06536b
More-accurate Triangle.cpp variable arrangement
2020-01-07 22:13:37 +00:00
Clownacy
3f2d5c3e25
More-accurate Stage.cpp variable arrangement
2020-01-07 22:08:10 +00:00
Clownacy
32d635581a
Sound.cpp variable arrangement tweaks
...
Not much can be done for this file, considering how heavily it was
modified in the Linux port.
While I was here, I noted the unused .wav loading function.
2020-01-07 22:03:49 +00:00
Clownacy
e459364a33
More-accurate Shoot.cpp variable arrangement
2020-01-07 21:58:35 +00:00
Clownacy
cef901792b
More-accurate SelStage.cpp variable arrangement
2020-01-07 21:53:21 +00:00
Clownacy
74cd1b0473
More-accurate Profile.cpp variable arrangement
2020-01-07 21:50:36 +00:00
Clownacy
10a014dabd
More-accurate PixTone.cpp variable arrangement
...
Also added the Linux port's optimisation, for anyone that's curious
2020-01-07 21:45:43 +00:00
Clownacy
5abf8a8878
More-accurate Organya.cpp variable arrangement
...
Also found some authentic variable names
2020-01-07 21:38:34 +00:00
Clownacy
718cb714ee
More-accurate NpcTbl.cpp variable arrangement
...
For some reason, the Linux debug data notes a 2000-line gap before
any declarations. Might be the SDL header or something.
2020-01-07 20:58:46 +00:00
Clownacy
ce4373481b
More-accurate NpcHit.cpp variable arrangement
2020-01-07 20:52:58 +00:00
Clownacy
63e855c7fa
More-accurate NpChar.cpp variable arrangement
2020-01-07 20:48:21 +00:00
Clownacy
affaf25e5c
Sorted out the other NPCs' variables too
2020-01-07 20:35:15 +00:00
Clownacy
6e20f4cc15
More-accurate NpcAct000.cpp variable arrangement
2020-01-07 07:10:30 +00:00
Clownacy
6d400cfcd4
Minor code style tweak
2020-01-07 07:06:02 +00:00
Clownacy
e978543dad
More-accurate MycParam.cpp variable arrangement
2020-01-07 07:05:26 +00:00
Clownacy
24b36ccda8
More-accurate MycHit.cpp variable arrangement
2020-01-07 06:57:03 +00:00
Clownacy
f0273ecf3f
More-accurate MyChar.cpp variable arrangement
2020-01-07 06:52:36 +00:00
Clownacy
7c33b0ac5f
More-accurate MiniMap.cpp variable arrangement
2020-01-07 06:47:55 +00:00
Clownacy
295e70ded8
Correct a misnamed variable
2020-01-07 06:43:04 +00:00
Clownacy
86412f0528
More-accurate Map.cpp variable arrangement
2020-01-07 06:40:58 +00:00
Clownacy
d83665ff2a
More-accurate Main.cpp variable arrangement
2020-01-07 06:29:04 +00:00
Clownacy
bd6f2fe81d
More-accurate GenericLoad.cpp variable arrangement
2020-01-07 06:25:12 +00:00
Clownacy
34bee5073f
More-accurate Generic.cpp variable arrangement
...
Also found some authentic variable names
2020-01-07 06:23:19 +00:00
Clownacy
fb64e057ca
More-accurate Frame.cpp variable arrangement
2020-01-07 06:09:46 +00:00
Clownacy
e0a8bd5114
More-accurate Flash.cpp variable arrangement
2020-01-07 06:08:23 +00:00
Clownacy
b6d689aaa6
More-accurate Fade.cpp variable arrangement
2020-01-07 06:06:54 +00:00