Commit graph

1208 commits

Author SHA1 Message Date
Clownacy
79886f5ae4 Add debug prints for listing SDL2 drivers
These list what video/render/audio backends are available, and which
are currently being used.

SDL2 allows you to choose a specific video/audio driver with the
SDL_VIDEODRIVER and SDL_AUDIODRIVER environment variables,
respectively, but there's no such option for the render driver.
2020-01-20 15:27:05 +00:00
Clownacy
1cf5df2d72 Remove a debug print 2020-01-20 14:49:18 +00:00
Clownacy
767262ed8c Handle a malloc failure better
No memory leak
2020-01-20 14:48:12 +00:00
Clownacy
0423614dca More-efficient OpenGL ES 2.0 font textures 2020-01-20 13:52:50 +00:00
Clownacy
ede541db0a Clean up the OpenGL shaders a bit 2020-01-20 13:51:32 +00:00
Clownacy
4cbc56e272 Add OpenGL ES 2.0 renderer 2020-01-20 13:49:30 +00:00
Clownacy
0352af333b Fix another typo 2020-01-17 11:08:36 +00:00
Clownacy
a40c3d7b1b Perform cleanup when OpenGL's Backend_Init fails 2020-01-17 10:54:49 +00:00
Clownacy
0c9c0115cf Whoops. Fix typo. 2020-01-17 10:54:34 +00:00
Clownacy
22622ae69a Merge branch 'accurate' into portable 2020-01-17 10:37:21 +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
faa96094b4 Use SDL's GetProcAddress function for OpenGL
Also added extra sanity checks
2020-01-17 10:25:18 +00:00
Clownacy
54189c598d Explicitly init SDL2's video subsystem 2020-01-16 16:36:03 +00:00
Clownacy
776f01777a Merge branch 'accurate' into portable 2020-01-15 07:28:18 +00:00
Clownacy
d76b074aa0 Switched from GLEW to GLAD
One less set of license obligations to satisfy (GLAD-generated files
are public-domain).
2020-01-15 07:11:43 +00:00
Clownacy
449a09b09e Fix an occational invalid memory read
Stupid floating-point rounding errors. Had to undo a fancy
optimisation to avoid it.
2020-01-09 09:10:24 +00:00
Clownacy
78a066ce75 Note some inaccurate stack frames 2020-01-09 06:58:04 +00:00
Clownacy
242aa05920 Remove some whitespace 2020-01-09 05:43:05 +00:00
Clownacy
4faf94e951 Add missing #include 2020-01-08 19:12:12 +00:00
Clownacy
406087bebb Added a missing #include in Organya.cpp 2020-01-08 13:34:54 +00:00
Clownacy
31adc338e4 Remove a newline that isn't in the accurate branch 2020-01-08 13:34:00 +00:00
Clownacy
9cbaa0be00 Merge branch 'accurate' into portable 2020-01-08 13:16:21 +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