Clownacy
afb2b22e58
Merge branch 'accurate' into portable
2020-10-23 19:10:36 +01:00
Clownacy
d81c46a79c
Release custom code under the MIT licence
...
Of course, Pixel's code is still proprietary.
2020-10-23 19:09:55 +01:00
Clownacy
d3e18d795d
Merge branch 'accurate' into portable
2020-09-17 22:10:24 +01:00
Clownacy
2882f6651a
Apply some Windows types to InitBack
...
Thanks, Cucky
2020-09-17 21:07:43 +01:00
Clownacy
4caa023347
Merge branch 'accurate' into portable
2020-09-04 00:49:45 +01:00
Clownacy
9bba04b395
Rename some background enums
2020-09-04 00:19:49 +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
71970c1f74
Merge branch 'accurate' into portable
2020-08-29 17:11:28 +01:00
Clownacy
02295489d2
More background documentation
2020-08-05 19:42:18 +01:00
Clownacy
a18be9c450
Document background stuff a little more
2020-08-05 19:30:13 +01:00
Clownacy
ca1ed4f642
Restore a lost FIX_BUGS
2020-07-08 00:39:01 +01:00
Clownacy
e934cae696
Merge branch 'accurate' into portable
2020-06-30 17:32:19 +01:00
Clownacy
27a1fd900f
Revert more unnecessary edits
2020-06-30 13:48:46 +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
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
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
9cbaa0be00
Merge branch 'accurate' into portable
2020-01-08 13:16:21 +00:00
Clownacy
36f203ca16
More-accurate Back.cpp variable arrangement
2020-01-07 05:11:43 +00:00
Clownacy
84626ea710
Merge branch 'accurate' into portable
2020-01-07 04:55:16 +00:00
Clownacy
58d7a45392
Empty Tags.h
...
There's no evidence Tags.h contained these variables (if anything, it
appears that Pixel manually declared them in every file that used
them).
gg Pixel
2020-01-06 21:20:17 +00:00
Clownacy
0ec5d85d56
Merge branch 'accurate' into portable
2019-11-17 18:30:44 +00:00
Clownacy
5914ce01ef
Clean-up Back.cpp
2019-11-17 16:31:34 +00:00
Clownacy
18ed6aa9e1
Merge branch 'accurate' into portable
2019-09-20 16:01:05 +00:00
Clownacy
602315fa39
Deobfuscate a value without affecting ASM
...
Doing 'fx / 32 / 0x200' produces different assembly.
2019-09-15 18:46:52 +01:00
Clownacy
0510e017e1
Merge branch 'accurate' into portable
2019-09-10 02:03:58 +00:00
Clownacy
2cb7bfbd3d
Tiny cleanup
2019-09-10 01:59:26 +00:00
Clownacy
385d7e5844
Clean up Back.cpp a little
2019-09-10 01:04:09 +01:00
Clownacy
5b5d5ae729
Revert "Restore the Windows-style path separators"
...
This reverts commit 42e1b36fd8
.
2019-09-05 14:19:17 +01:00
Clownacy
84c3cd825e
Merge branch 'accurate' into portable
2019-09-05 14:18:42 +01:00
Clownacy
42e1b36fd8
Restore the Windows-style path separators
2019-09-05 14:05:27 +01:00
Clownacy
4e50046d4b
Remove WINDOWS and NONPORTABLE
...
Now that the portable stuff gets its own branch, these are unneeded
2019-09-04 02:14:15 +01:00
Clownacy
73e18b4610
Removed the WINDOWS and NONPORTABLE stuff
...
Now that all the ASM-accurate stuff is in its own branch, we don't
need these anymore.
2019-09-04 00:54:11 +01:00
Clownacy
5ea356a3bd
Weed out a lot of the Windows dependency
...
Storytime: Cucky's original SDL2 port work involved using SDL2's
threading API to emulate the original WinAPI threading.
I can't be assed with that stuff, so I used the same trick Cucky did
for the Wii port, and hooked Organya up to the SDL2 audio callback.
This actually opens up the possibility for perfectly-synchronised
Organya playback. By that I mean, instead of needing a super
low-latency audio callback, I can have the callback synchronise its
audio mixing with Organya itself. I haven't done it yet, I plan to
soon.
2019-09-04 00:28:23 +01:00
Clownacy
35344c5f4f
Fixes
...
What is it with Pixel's official code, and relying on non-standard
stuff? Even his PxTone library had portability issues.
2019-09-02 02:02:25 +01:00
Clownacy
03e513365b
PATH_LENGTH is actually Windows's MAX_PATH
...
When MAX_PATH isn't available, use FILENAME_MAX. This might be a bad
idea.
2019-08-31 01:44:53 +01:00
Clownacy
0b697e557c
Made Back.cpp almost ASM-accurate
...
See #74
2019-08-28 22:02:49 +01:00
Clownacy
c80b593a3f
Some #include fixes
...
Finally figured out how to get include-what-you-use working
2019-06-06 18:44:28 +00:00
Clownacy
d2b5872c95
Weeded out some bool usage
...
Cave Story was written in C89. No bools. I've left in Sound.cpp's
though, since that's written in C++98 currently.
2019-05-24 10:07:30 +01:00
Gabriel Ravier
bf4aa6b6c0
Did some formatting and grammatical/orthographic corrections
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-05-10 09:46:05 +02:00
Clownacy
cb730ff9d7
Merge branch 'master' of https://github.com/Clownacy/Cave-Story-Engine-2
2019-05-07 16:42:41 +01:00
Clownacy
08de04bad7
Some accuracy-related things for Back.cpp
2019-05-07 16:35:41 +01:00
Gabriel Ravier
4f208b3b8e
Make comment style consistent
...
Just added a space if there was no space after "//"
Also I changed my regex to "((//|\;)[^ ]|(for|while|if|while|do|void|int|bool)\(|(for|while|if|while|do)\ \(.*\)\;)"
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-05-07 12:44:32 +02:00
Gabriel Ravier
960fa6f456
Removed all trailing spaces and added newline at EOF (when not present)
...
Also changed a "linux" to "Linux"
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-05-07 11:55:42 +02: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
532661b0cf
Made Map.cpp and some of NpcAct020.cpp ASM-accurate
...
Also added a new constant 'NONPORTABLE', for enabling bits of code that
are non-portable, but needed for accuracy
2019-02-24 14:35:35 +00:00
Clownacy
01ddc5e923
Fixed some warning MSVC2003 was giving in /W3 mode
2019-02-23 21:45:57 +00:00
Clownacy
3eca2d7cf3
Add all GetCortBoxColor calls back (also I found a vanilla bug)
2019-02-21 20:56:27 +00:00
Clownacy
995a4f7a79
Work around a portability issue for now
...
We'll maybe need a new compiler flag or something. I don't like leaving
something like this enabled by default.
2019-02-20 19:55:45 +00:00