Commit graph

462 commits

Author SHA1 Message Date
Clownacy
c533a8084a
Detail the CMake build system in the readme
Also note the Makefile's deprecation
2019-04-20 06:57:53 +01:00
Clownacy
2bf46dc700 A bunch of CMake file cleanup 2019-04-20 05:15:01 +01:00
Clownacy
014d128396 Remove the STATIC option from the CMake file
Instead it just automatically does static linking if it detects MSYS
2019-04-20 04:43:56 +01:00
Clownacy
5cf7c95dd7 Added DoConfig (clone, not a decompilation)
Right now only the CMake file builds it
2019-04-20 04:43:38 +01:00
Clownacy
3d3d6a2179 Make CMake output executables to the build_en/build_jp folders
MSVC copies SDL2.dll across too
2019-04-20 01:09:53 +01:00
Clownacy
33254c87dd Shut up MSVC's stupid warnings when using the CMake file 2019-04-19 17:37:10 +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
5a3e641492 Do the last commit except less stupid 2019-04-18 20:15:46 +01:00
Clownacy
eb11c7798d ...Do the previous commit only less stupid 2019-04-18 20:08:33 +01:00
Clownacy
2a9e8bd8cc Autodetect Raspberry Pi in CMake file
...instead of expecting the user to manually-define it
2019-04-18 20:04:49 +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
7e038bc24a Fix backwards-incompatible CMake nonsense 2019-04-16 18:57:55 +01:00
Clownacy
9effc5e0fe Lowered CMake minimum requirement to 3.7.2
Tested on Raspbian
2019-04-16 17:42:42 +00:00
Clownacy
e2ed9ad950 Okay, forget all that. Generating an output folder was stupid. 2019-04-14 18:25:12 +01:00
Clownacy
2c8ccc5a0b Actually, only generate the output folder during cmake's config stage 2019-04-14 04:14:45 +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
3cbe18b9c5 Rewrite stdint.h so it's not dependant on SDL2 2019-04-13 21:27:43 +01:00
Clownacy
4d9bc0a65f Remove the WINDOWS CMake option, and just detect Windows instead
Also remove the STATIC option from MSVC because why wouldn't you
2019-04-13 21:25:46 +01:00
Clownacy
bde0c979ff More CMake improvements (also FreeType is a static lib now)
The official(?) binaries weren't statically-linked, and being compiled
with MSVC2017 probably meant they weren't compatible with old OSes
anyway.

So now, the 32-bit one's compiled with MSVC2003. The other's still
MSVC2017 though. While I was at it, I made them both static. *Also*
while I was at it, I made sure subpixel-rendering was enabled.
2019-04-13 20:30:20 +01:00
Clownacy
ea6f67f87c CMake fixes 2019-04-13 18:04:17 +01:00
Clownacy
3e67b54d6f Make MSVC static linkage optional 2019-04-11 21:33:21 +01:00
Clownacy
5002e68be7 Disable the Windows console window explicitly on all backends
Not just MSVC
2019-04-11 02:10:31 +01:00
Clownacy
e866d7bd9b cmake tweaks 2019-04-11 01:15:50 +01:00
Clownacy
c63646e798 Got cmake file working on Arch
cmake why you so bad
2019-04-10 17:00:42 +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
f249f8c604 Added link-time optimisation to cmake file 2019-04-10 01:42:17 +01:00
Clownacy
2b7bda3b4a Some pairity between cmake and Makefile 2019-04-10 01:22:32 +01:00
Clownacy
e54c13e22f More cmake improvements
Added static build, notably
2019-04-10 01:12:23 +01:00
Clownacy
5261e6063d Add Windows icon support to cmake project 2019-04-09 22:29:06 +01:00
Clownacy
7b2fae78ac Fix a strange GCC build error in MapName.cpp 2019-04-09 22:28:52 +01:00
Clownacy
01297eab42 Add build options to the cmake project, and updated the README to note
the new Visual Studio 2003 directory location
2019-04-09 22:06:36 +01:00
Clownacy
d0e3fe115e Removed the MSVC2003-built FreeType library
For some reason, the MSVC2015 version from FreeType's website works with
MSVC2003 now.
2019-04-09 21:48:10 +01:00
Clownacy
39da44e899 Added cmake build setup 2019-04-09 21:38:25 +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
f043b9caaf Merge branch 'master' of https://github.com/cuckydev/Cave-Story-Engine-2 2019-04-08 13:50:50 +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