Commit graph

2373 commits

Author SHA1 Message Date
Clownacy
44465ee4f9 Fix a bug in SDL2
https://bugzilla.libsdl.org/show_bug.cgi?id=5143

Ikuyo noticed that `wcslcat` wasn't linking properly on their setup.
2020-06-30 17:34:09 +01:00
Clownacy
a3a8c4df94 Remove an include which isn't needed 2020-06-30 17:33:03 +01:00
Clownacy
e934cae696 Merge branch 'accurate' into portable 2020-06-30 17:32:19 +01:00
Gabriel Ravier
3092c34681 src: Add #include <stddef.h> where appropriate in order to have NULL/size_t and others from the proper header
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-30 18:26:44 +02:00
Clownacy
353798bf41
Merge pull request #131 from GabrielRavier/accurateMinimizeIncludes
Remove unnecessary includes
2020-06-30 17:25:31 +01:00
Clownacy
946667ab60 Replace Noto Japanese font with Migu 1M
Noto is massive, and draws too far down for some reason. Also, it
draws too big at 20x20 (the size needed to get MS Gothic to display
accurately). This new font has none of those problems.

Big thanks to joexyz for recommending this font.
2020-06-30 16:08:28 +01:00
Clownacy
770f3be74e Make font sizes more accurate to the vanilla EXE
This is such a nightmare
2020-06-30 16:04:25 +01:00
Clownacy
78da025796
Merge pull request #130 from GabrielRavier/portableSupportPathsAboveFilenameMax
Support paths above PATH_MAX (for portable)
2020-06-30 14:09:57 +01:00
Clownacy
47367614a3 More accuracy improvements
That one comment should go in the accurate branch, not here
2020-06-30 14:04:53 +01:00
Clownacy
56bf0f8c76 Fix some typos 2020-06-30 13:52:11 +01:00
Clownacy
ccffba8a80 Remove user-sabotage
They could have their reasons.
2020-06-30 13:49:14 +01:00
Clownacy
27a1fd900f Revert more unnecessary edits 2020-06-30 13:48:46 +01:00
Clownacy
2970242ff7 Remove unused attributes 2020-06-30 13:00:34 +01:00
Clownacy
3d7ee30314 Clean-up ArmsItem
Undoes edits unrelated to the PR, and adds an include
2020-06-30 12:58:59 +01:00
Gabriel Ravier
a62141e185 src: Added back stddef.h where accurate to get NULL/size_t properly (stdio.h provides them, but it's for file I/O, not essential definitions and types)
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-30 01:52:38 +02:00
Gabriel Ravier
66e4995135 src: Remove unnecessary includes
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-30 00:12:17 +02:00
Clownacy
a5c09b67f7 Wii U renderer cleanup 2020-06-29 22:13:03 +01:00
Clownacy
f6fe0537ed Add vertex-batching to Wii U port
Should remove the last bit of lag that port has (like the Labyrinth
fight where you team-up with Curly)
2020-06-29 21:37:05 +01:00
Clownacy
9925c16b29 Minor cleanup 2020-06-29 19:19:50 +01:00
Clownacy
990390adbd Fix CMake error when LTO is enabled 2020-06-29 18:40:17 +01:00
Clownacy
93535c5501 Sync OpenGL3 renderer with Wii U renderer 2020-06-29 18:36:38 +01:00
Gabriel Ravier
771b944d17 src: Some cleanup for the MAX_PATH std::string PR
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-29 19:02:25 +02:00
Gabriel Ravier
564d42dbd2 src: Change from using asprintf-based code to using std::string-based code
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-29 18:33:22 +02:00
Clownacy
1523f1d3a6 Unified the Wii U vertex buffers 2020-06-29 16:40:32 +01:00
Clownacy
c7bd79e13f Comment style tweaks 2020-06-29 15:25:01 +01:00
Gabriel Ravier
32a879ca58 src: Removed MAX_PATH and made the path/string handling better in general (ported over from supportPathsAboveFilenameMax)
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-29 00:14:30 +02:00
Clownacy
1fbdbf6015 Audio backend notes 2020-06-28 22:18:00 +01:00
Clownacy
63dd995343 Make 320x240 monochrome fonts not look terrible
Turns out, for all this time, I never enabled FreeType's
mono-hinting.

Now, the English font looks pretty good. I can't say the same for the
Japanese one though - that one looks identical. I guess Noto doesn't
come with hinting data? FreeType's auto-hinter just makes it look
worse...
2020-06-27 23:13:09 +01:00
Clownacy
48935eb10d Fix Windows builds when path contains accent char 2020-06-27 19:34:09 +01:00
Clownacy
cc8e875cb1 Merge branch 'accurate' into portable 2020-06-27 19:28:09 +01:00
Clownacy
a5bf854408 Document gMC.equip
All raw values have been replaced with enums
2020-06-27 19:27:57 +01:00
Clownacy
2701c001ad Re-apply SDL2 fixes
Goddammit SDL2 - fix your CMake already.
2020-06-24 17:58:01 +01:00
Clownacy
ef7ae860c7 Update built-in SDL2 to 2.0.12 2020-06-24 17:57:21 +01:00
Clownacy
b990790eec Update built-in FreeType to v2.10.2 2020-06-24 17:47:31 +01:00
Clownacy
27a621f923 Update miniaudio to v0.10.9
Had to add a small bugfix to get it to work
2020-06-24 17:40:08 +01:00
Clownacy
dae87c6106 Update Wii U audio backend 2020-06-24 17:34:25 +01:00
Clownacy
f64f924b54 Update miniaudio backend 2020-06-24 17:24:41 +01:00
Clownacy
3fa4a91dc1 Reword audio backend logic
This will make it easier to integrate into the enhanced branch, and
also improved audio quality slightly (samples are mixed as 16-bit
instead of 8-bit).
2020-06-24 17:03:13 +01:00
Clownacy
70e431d35d Add missing(?) header 2020-06-24 16:02:28 +01:00
Clownacy
1ff5772843 Fix typo 2020-06-24 12:12:28 +01:00
Clownacy
2ee1bf131e Update miniaudio backend to new mixer 2020-06-24 01:15:21 +01:00
Clownacy
479fff2ccf New mostly-integer-only sound mixer
The mixer itself is integer-only, but the millibel stuff is still
float-based (I don't know if it's worth adding a 10001-value-long
lookup table to replace it).

Anyway, according to a quick test, this new mixer is significantly
faster than the old floating-point one - rarely going above 100
clock() ticks per callback, with the old one almost always running
above that.

For now, only the SDL2 backend supports it - I'll add the others in
upcoming commits.

This will no-doubt cause problems with the enhanced (lite) branch,
where clownaudio always outputs float samples.
2020-06-24 01:11:02 +01:00
Clownacy
7334440c27 Merge branch 'accurate' into portable 2020-06-23 19:42:32 +01:00
Clownacy
d9e01225a9 Update URLs in readme 2020-06-23 16:30:12 +01:00
Clownacy
93852242f4 Just use 'CSE2' everywhere, instead of the full name
Since Nicalis reobtained the 'Cave Story' trademark back in April,
it looks like we're going to have to go the route of the Wine project
and change what the abbreviation is short for...

Can't Sue Everyone 2?
Clownacy Saga, Episode 2?
Code-Stealing Eyesore 2?
2020-06-22 17:25:34 +01:00
Clownacy
49b4ffb722 Clear-up some README wording 2020-06-15 23:34:44 +01:00
Clownacy
8247aa30fc Fix a typo in PHILOSOPHY.md 2020-06-05 15:41:25 +01:00
Clownacy
1df1248e2e Clarify enhanced-lite's purpose a little
I realised GZDoom is a pretty poor comparison, since that thing goes
out of its way to add stuff like swimming, crouching, and jumping.

Boom specifically prioritised preserving the 'feel' of Doom, which I
think makes it much closer to CSE2E.
2020-06-05 14:38:28 +01:00
Clownacy
e45d69fd2d Fix typo in licence.txt
Thanks, joexyz
2020-05-20 19:30:11 +01:00
Clownacy
659332ba35 Merge branch 'accurate' into portable 2020-05-20 19:04:06 +01:00