Commit graph

40 commits

Author SHA1 Message Date
Clownacy
a3692d1c40 Add Caret enums 2020-08-05 21:45:59 +01:00
Clownacy
13985fb349 Added SoundMode enum
Controls whether a PlaySoundObject call start, stops, or loops a
sound
2020-07-08 18:52:32 +01:00
Clownacy
220f48a98b Backport some undefined-behaviour fixes 2020-07-06 15:11:45 +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
a5bf854408 Document gMC.equip
All raw values have been replaced with enums
2020-06-27 19:27:57 +01:00
Clownacy
03250d62a0 Make variables more accurate
This commit changes which variables are static: the Mac (and
presumably the Linux) debug data tells you what variables are static,
by prefixing their names with double_underscores.

The variable names themselves also hint at this: global variables are
prefixed with 'g', and use upper-camelcase, while static variables
use whatever_you_call_this.
2020-05-03 20:28:56 +01:00
Clownacy
a762f28837 Note some out-of-bounds array accesses
Thanks, Gabe
2020-02-01 12:45:32 +00:00
Clownacy
30dced2587 Correct the style of some pointer checks 2020-01-26 13:52:24 +00:00
Clownacy
6d400cfcd4 Minor code style tweak 2020-01-07 07:06:02 +00:00
Clownacy
e978543dad More-accurate MycParam.cpp variable arrangement 2020-01-07 07:05:26 +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
dcc0f14266 Clean-up MycParam.cpp 2019-11-14 23:02:10 +00:00
Clownacy
c5d6109df2 Comment tweaks 2019-11-10 12:17:07 +00:00
Gabriel Ravier
058881e4eb Documentation : Tried to clarify comment on random conversion to short
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-11-09 23:37:10 +01:00
Gabriel Ravier
5b18283e5f Documentation : Made some comments clearer
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-11-09 23:37:10 +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
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
451945e80c Ripped out SDL2, and begun made WinMain ASM-accurate
Almost there... see #74.
2019-09-01 14:39:16 +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
c80b593a3f Some #include fixes
Finally figured out how to get include-what-you-use working
2019-06-06 18:44:28 +00:00
Clownacy
00ca00f5dd Weed out some usage of C++ bools
Pixel used BOOL, the C89-friendly Windows-specific equivalent
2019-05-14 01:35:04 +01:00
Clownacy
9da92097a8 Deobfuscate some TimeCounter-related values 2019-05-11 02:22:10 +01:00
Clownacy
69a2697a0a Made MycParam.cpp ASM-accurate 2019-05-11 01:20:11 +01:00
Gabriel Ravier
2578302bb5 Reverted formatting change Clownacy didn't like
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-05-08 19:42:24 +02:00
Gabriel Ravier
052e018063 Corrected formatting for MycParam.cpp
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-05-08 11:29:44 +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
c9ac9d446d Made Shoot.cpp ASM-accurate 2019-05-06 18:09:19 +01:00
Clownacy
ec148c1072 Made the spriterects C++03-compatible 2019-02-19 22:30:43 +00:00
Clownacy
0bb9760d87 Rearranged #includes 2019-02-18 21:30:22 +00:00
Clownacy
e5caff593c Removed the SDL dependency from Draw.h
Should make compiling with VC++ 2003 simpler
2019-02-18 20:40:07 +00:00
Clownacy
132d3c5110 Applied SURFACE_ID constants to everything 2019-02-18 14:36:58 +00:00
Clownacy
c44186d93a Ditched SDL's file IO for stdio and our own convenience functions
ASM-accurate file stuff can come later.
2019-02-15 20:33:08 +00:00
Clownacy
ab7e5e7c0d Accuracy improvement 2019-02-10 19:49:08 +00:00
cuckydev
f2fed53e7f fixed nikumaru save 2019-02-10 14:11:34 -05:00
cuckydev
ded926b422 Saving Nikumaru Counter 2019-02-09 18:03:38 -05:00
cuckydev
efec3d420d Added Nikumaru Counter 2019-02-09 16:11:06 -05:00
cuckydev
10d946aca2 map system doesn't work 2019-01-29 09:17:13 -05:00
cuckydev
1e7b07a102 working on arms and items 2019-01-28 12:26:35 -05:00
cuckydev
7fa14698f0 ADDED OUCHIE 2019-01-27 14:54:05 -05:00