Commit graph

2612 commits

Author SHA1 Message Date
Clownacy
f4ffee2c99 Remove redundant font flag 2020-09-06 20:30:39 +01:00
Clownacy
34d3b8e664 Improve font rendering
This change fixes uneven glyph heights
2020-09-06 20:30:30 +01:00
Clownacy
df42d9300f Disable font anti-aliasing by default
CSE2 Portable is meant to be a purist thing - experiencing Cave Story
the way it was meant to be. The crappy font rendering was definitely
not how it was meant to be.
2020-09-06 17:10:46 +01:00
Clownacy
f908e2a064 Style tweaks 2020-09-06 15:26:57 +01:00
Clownacy
2963977cf9 Merge branch 'accurate' into portable 2020-09-04 02:36:19 +01:00
Clownacy
92d50ae187 Comment on a weird-ass Sleep call 2020-09-04 02:35:31 +01:00
Clownacy
3eced7b3e4 Implement the Sleep(100) call
Okay, seriously, why does the game do this?
2020-09-04 02:29:50 +01:00
Clownacy
bc165d0f0a Remove Organya-sleeping
Turns out that 'Sleep' call is ran on the *main* thread.

I have absolutely no idea why the game does this.
2020-09-04 02:26:31 +01:00
Clownacy
e2b5809990 Remove another explicit array size 2020-09-04 01:19:42 +01:00
Clownacy
7b1661dcf9 Merge branch 'accurate' into portable 2020-09-04 01:00:17 +01:00
Clownacy
b311888a12 Remove ccache in Travis file
This matches the portable branch
2020-09-04 00:57:00 +01:00
Clownacy
5579c57738 Remove some explicit array sizes
These are just annoying, and chances are the source code never did
this.

I might just remove *all* of these at some point.
2020-09-04 00:54:23 +01:00
Clownacy
4caa023347 Merge branch 'accurate' into portable 2020-09-04 00:49:45 +01:00
Clownacy
ed01b9d591 Update screenshot
Moves Quote to the 'New' option, to match the accurate branch's
screenshot.
2020-09-04 00:44:29 +01:00
Clownacy
c81829e99a Remove a trailing comma
IIRC C89 doesn't allow them in enums. So who knows where else they're
not allowed?
2020-09-04 00:23:07 +01:00
Clownacy
9bba04b395 Rename some background enums 2020-09-04 00:19:49 +01:00
Clownacy
d16aa4cc70 Apply background constants to stage table 2020-09-04 00:09:38 +01:00
Clownacy
fe7765c914 Change some awkward wording 2020-09-03 23:57:07 +01:00
Clownacy
d5cf991733 Make the stage table neater 2020-09-03 23:56:44 +01:00
Clownacy
8f38cf56c1 Restore the original Waterway TSC file
No need for a manual bugfix anymore.
2020-09-03 22:20:32 +01:00
Clownacy
ad27a40ba3 Tiny cleanup 2020-09-03 22:17:06 +01:00
Clownacy
d250d0de7d Overhaul bin2h
Now it just outputs big lists of numbers, instead of a proper array.
This allows Resource.cpp to control the name of these arrays, while
also making the resource system in general more transparent.
2020-09-03 22:14:13 +01:00
Clownacy
71199c7693 Merge branch 'accurate' into portable 2020-09-03 21:58:40 +01:00
Clownacy
dce5e215c8 Explain the gamepad button limit 2020-09-03 21:54:10 +01:00
Clownacy
9c63e5994b Document SelStage.cpp a little 2020-09-03 21:52:05 +01:00
Clownacy
aa396092b5 Translate error messages with FIX_BUGS 2020-09-03 21:39:36 +01:00
Clownacy
7cff891452 Remove that FRAMERATE thing 2020-09-03 21:31:49 +01:00
Clownacy
b1090cd8f9 Correct some mistakes that this branch has 2020-09-03 21:29:48 +01:00
Clownacy
a05b802904 Merge branch 'accurate' into portable 2020-09-03 21:11:16 +01:00
Clownacy
0c367cecf7 Add FIX_MAJOR_BUGS option
This one specifically fixes bugs that either invoke undefined
behaviour or cause memory leaks. Essentially, they affect stability.
Bugs that just affect gameplay will remain covered by FIX_BUGS.
2020-09-03 21:05:14 +01:00
Clownacy
e43160825e Add bugfix for the broken Waterway TSC script 2020-09-03 20:35:51 +01:00
Clownacy
987b81c946 Fix other audio backends 2020-09-03 19:59:37 +01:00
Clownacy
7abab0039b Pre-convert the Organya callback timer
Oh no, I used the naughty 'm' word :(
2020-09-03 19:19:55 +01:00
Clownacy
be6f46fabd Refactor audio software mixer
Now the various backends have far less duplicate code, and are part
of a separate backend system specifically for the software mixer.

Now, any modifications to the MixSoundsAndUpdateOrganya function
will apply to all backends, instead of needing to manually be applied
to each one.
2020-09-03 19:19:50 +01:00
Clownacy
ab09dc67eb Emulate the Organya thread pauses
Now there's a 100ms pause between songs.

Currently only the miniaudio backend supports this.
2020-09-03 18:14:52 +01:00
Clownacy
72eec8227c Merge branch 'accurate' into portable 2020-09-03 17:29:01 +01:00
Clownacy
541ec3695e Ignore error.log, remove enhanced branch stuff 2020-09-03 17:23:29 +01:00
Clownacy
9724f9d81b Scrub the enhanced branches from PHILOSOPHY.md 2020-09-03 17:20:32 +01:00
Clownacy
fbcb2f5f56 Optimise the linear-interpolator a little
Doesn't have to do two sets of shifts
2020-09-03 16:01:46 +01:00
Clownacy
b68eb076ca Rename a variable 2020-09-03 15:00:07 +01:00
Clownacy
47543eb382 Another Lanczos optimisation 2020-09-03 14:38:56 +01:00
Clownacy
67ee8b9829 Optimise the Lanczos resampler some more 2020-09-03 14:28:04 +01:00
Clownacy
9f002b6180 Convert Lanczos resampler from double to float
Forgot that C++98 has a float version of `sin`.
2020-09-01 19:57:08 +01:00
Clownacy
d946cfd579 Make DoConfig proof static 2020-08-31 21:00:34 +01:00
Clownacy
4c8598d460 Update miniaudio from v0.10.9 to v0.10.18 2020-08-31 20:56:38 +01:00
Clownacy
9e6d144b67 Update stb_image from v2.23 to v2.26 2020-08-31 20:55:42 +01:00
Clownacy
02bf38b8f6 Better logic 2020-08-31 20:55:31 +01:00
Clownacy
d15e1b7f41 Remove path length limit in DoConfig clone 2020-08-31 19:56:27 +01:00
Clownacy
9a79041c6c Optimise the Lanczos resampler a little
Apprently floating-point divisions are slower than multiplications
2020-08-31 17:28:35 +01:00
Clownacy
48386d443b Add optional Lanczos filter to the audio mixer
Should be higher-quality than the linear-interpolator, but also much
slower, so it's disabled by default.
2020-08-31 16:07:25 +01:00