Commit graph

329 commits

Author SHA1 Message Date
Clownacy
7d222231ae Added some missing headers 2019-04-26 01:41:36 +01:00
Clownacy
0c018a9fd6 Deobfuscated null characters 2019-04-25 16:26:37 +01:00
Clownacy
5f0754b23c Correct NPC069's name 2019-04-23 18:59:03 +01:00
Clownacy
b38aeaf064 Made TextScriptProc return 0 if it encounters an unknown command
This is what the original game does
2019-04-23 18:19:41 +01:00
Clownacy
468aa2efc1 Added error message boxes to the TSC parser 2019-04-23 09:50:15 +01:00
Clownacy
79bf011e3b Made GenericLoad.cpp ASM-accurate 2019-04-22 20:12:43 +01:00
Clownacy
ac904aa4ae Fixed uninitialised pointer 2019-04-22 00:40:03 +01:00
Clownacy
cc4eb82162 Added caching to the font system
I never liked how much of a bottleneck the font renderer was. Maybe now
the credits won't stutter like mad on the Raspberry Pi.
2019-04-21 23:54:05 +01:00
Clownacy
f25df2ce07 Remove SDL2 dependency from Font.cpp 2019-04-21 21:28:18 +01:00
Clownacy
295673b813 Sound cleanup and optimisation
PlaySoundObject is also more like it was in the original source code
2019-04-19 01:24:08 +01:00
Clownacy
d38c96622c Remove Raspberry Pi hack that forces SDL2 to use OpenGLES2
This was only for Void and Arch ARM, but I think I'm just setting them up
wrong. Raspbian doesn't need this hack to reach 60FPS.
2019-04-18 19:58:40 +01:00
Clownacy
5ec9fea302 The build folder is now automatically generated
This way, we don't need to tell everyone who uses the enhanced branch
that they need to copy res/data_en. It also gives the CMake project a
way to bundle everything into a neat little folder.
2019-04-14 03:36:57 +01:00
Clownacy
49014530e7 Clarify a bug 2019-04-10 11:55:23 +01:00
Clownacy
b92f1cbb1c Fix incorrectly-decompiled value in TextScr.cpp 2019-04-10 11:16:17 +01:00
Clownacy
5c68009e7a Made English MapName.cpp stuff match the Japanese version 2019-04-10 02:12:34 +01:00
Clownacy
7b2fae78ac Fix a strange GCC build error in MapName.cpp 2019-04-09 22:28:52 +01:00
Clownacy
9e7c36c1a6 Fixed a BOOL being set to 0 instead of FALSE 2019-04-09 12:46:28 +01:00
Clownacy
cfcee6d4c3 Made Triangle.cpp ASM-accurate 2019-04-08 16:57:20 +01:00
Clownacy
f8f46fc1e4 Made Star.cpp ASM-accurate 2019-04-08 16:50:28 +01:00
Clownacy
8a569b127f Made MapName.cpp ASM-accurate 2019-04-08 16:34:18 +01:00
Clownacy
f3a2c96ce6 Made PixTone.cpp ASM-accurate
I DID IT, SQUIDWARD

But really, that was annoying to figure out. Even though I already know
the way the stack frame is sorted has something to do with alphabetical
order, it's still affected by the order of declaration too.
2019-04-08 15:54:56 +01:00
Clownacy
ddaf7fc8bb Made Flags.cpp actually ASM-accurate 2019-04-08 14:43:04 +01:00
Clownacy
5ed2dac197 Made BossX.cpp ASM-accurate 2019-04-08 13:49:45 +01:00
Clownacy
de4c16b449 Made BossTwinD.cpp ASM-accurate 2019-04-08 12:38:47 +01:00
Clownacy
64dbeaa3c2 Made BossPress.cpp ASM-accurate 2019-04-08 12:16:44 +01:00
Clownacy
9e22db16fd Made BossOhm.cpp ASM-accurate
There were a few decompilation mistakes in here
2019-04-08 11:50:41 +01:00
Clownacy
3a856e4d9d Made BossLife.cpp ASM-accurate 2019-04-06 13:43:35 +01:00
Clownacy
a38ee793a2 Made BossIronH.cpp ASM-accurate 2019-04-06 13:30:02 +01:00
Clownacy
302c923d5b Made BossFrog.cpp ASM-accurate 2019-04-06 13:22:20 +01:00
Clownacy
98bab5ca80 Made BossBallos.cpp ASM-accurate
Turns out I made a mistake while decompiling this, and got a check
backwards.
2019-04-06 12:44:58 +01:00
Clownacy
aa9b66eb36 Made BossAlmo2.cpp ASM-accurate 2019-04-05 22:14:16 +01:00
Clownacy
533f641c91 Made BossAlmo1.cpp ASM-accurate 2019-04-05 21:41:44 +01:00
Clownacy
923cd5a6e3 Added some Raspberry Pi hacks
Also added a debug print that tells you what backend SDL2 is using
2019-03-18 20:54:03 +00:00
Clownacy
c4d514f789 Made ValueView.cpp ASM-accurate 2019-03-17 14:11:16 +00:00
Clownacy
c45326295a Minor Font.cpp cleanup 2019-03-11 22:19:12 +00:00
Clownacy
e864f7e142 Removed the alpha channel from the surfaces
It's not needed here, where we use a colour-key instead. The enhanced
branch will need it though.
2019-03-11 14:38:11 +00:00
Clownacy
c9b681299c Shut up some MSVC2003 warnings 2019-03-11 03:40:51 +00:00
Clownacy
6744235892 Added our own Shift-JIS to Unicode converter
This removes the dependency on iconv, meaning MSVC2003 should be able to
compile the Japanese build now.
2019-03-11 03:06:41 +00:00
Clownacy
5389fcf509 Minor accuracy improvement
Organya.cpp is hard as hell to make more accurate right now
2019-03-07 19:57:06 +00:00
Clownacy
ed74a46966 Merge branch 'master' of https://github.com/Clownacy/Cave-Story-Engine-2 2019-03-07 19:00:27 +00:00
Clownacy
07935c2e20 Added fix for the camera during the credits
Fixes the flying-Balrog scene (and also the Flying Dragon one?)
2019-03-07 18:59:23 +00:00
Clownacy
2165a4ebb1 Re-added widescreen/tallscreen-safe camera stuff 2019-03-07 18:33:55 +00:00
Clownacy
b57bb0fdbc Made Frame.cpp ASM-accurate
I'll re-add widescreen support next
2019-03-07 18:10:23 +00:00
Clownacy
ccc0c63ebe Fixed minimap
Oops
2019-03-07 14:37:24 +00:00
Clownacy
7eae431e3a Added missing newlines to printfs 2019-03-07 00:19:33 +00:00
Clownacy
168f69adf2 Shut up some -pedantic warnings 2019-03-07 00:18:48 +00:00
Clownacy
2266a5ee6d Font code cleanup 2019-03-07 00:18:24 +00:00
Clownacy
111313ec77 Fixed the Core's water not displaying properly
Also made PutFront ASM-accurate (with the exception of the black bars
stuff)
2019-03-04 00:34:02 +00:00
Clownacy
53b39cfa72 Note some bad code 2019-02-27 21:56:16 +00:00
Clownacy
d019b85616 Made MiniMap.cpp supposedly ASM-accurate
Goes toward #74
A few core functions like Flip_SystemTask and GetTrg have a different
number of parameters to the original version of the game, so they cause
the ASM to generate differently.
2019-02-26 00:41:13 +00:00