Commit graph

49 commits

Author SHA1 Message Date
Clownacy
584ea57c5d Split SDL2 code from Profile.cpp and TextScr.cpp 2020-03-31 16:28:28 +01:00
Clownacy
4f7bd116f6 Add missing SDL.h #includes 2020-01-26 23:57:09 +00:00
Clownacy
31adc338e4 Remove a newline that isn't in the accurate branch 2020-01-08 13:34:00 +00:00
Clownacy
9cbaa0be00 Merge branch 'accurate' into portable 2020-01-08 13:16:21 +00:00
Clownacy
74cd1b0473 More-accurate Profile.cpp variable arrangement 2020-01-07 21:50:36 +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
15f711b2ec ASM-accuracy improvement for Profile.cpp
I don't know how I missed an entire function before
2019-11-14 01:42:06 +00:00
Clownacy
8344716548 Merge branch 'accurate' into portable 2019-11-09 14:24:55 +00:00
Gabriel Ravier
f96b7fa566 Use "memcmp(a, b) != 0" instead of "memcmp(a, b)" so it's clearer we're searching for a difference
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-11-05 17:25:08 +01:00
Clownacy
a8fb0839fa Note Shift-JIS strings 2019-09-28 15:35:41 +00: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
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
bee35b5750 Convert Profile.cpp to UTF-8
The MessageBoxA strings are ShiftJIS-encoded, but to avoid compiler
warnings (from Clang, namely), I'm using those weird '\x' things.
2019-08-25 20:47:54 +01:00
Clownacy
b7d01aae3f Overhauled the Music ID enum
This should be ASM-accurate, since SurfaceID was
2019-08-21 18:26:20 +00:00
Clownacy
427fe69374 MessageBoxA usage cleanup 2019-06-20 21:17:32 +01:00
Clownacy
546631fad7 Made Profile.cpp ASM-accurate 2019-06-20 21:10:27 +01:00
Clownacy
078dc440c7 Made TextScr.cpp ASM-accurate
Yes! Finally!

Working towards #74
2019-06-20 20:33:47 +01:00
Gabriel Ravier
16e66971d5
Reformatted Profile.cpp
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-06-14 16:54:43 +02:00
Gabriel Ravier
3a80d8f4fb
Did initial sweep with regexes
Changed regex to "((//|\;)[^ \t\n]|(for|while|if|while|do|void|int|bool)\((for|while|if|while|do)\ \(.*\)\;|\(\ |\ \)|//\ [a-z]|\ \ )|break;\n[\t]*[^\n\t\}(\/\/ Fallthrough]|[^\t\n]\{[^\n]|[^\n\t]\}[^\n]|\,[^\ ]"

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-06-14 16:49:32 +02:00
Clownacy
b2812053b7 Shut up a warning GCC was giving me 2019-05-14 01:47:30 +01:00
Clownacy
c9d5b3d03a Made Ending.cpp ASM-accurate 2019-05-13 20:43:43 +01:00
Clownacy
676ee004fe Removed the dependency on stdint.h
This doesn't exist in MSVC2003, and nothing in the Linux port's debug
symbols indicate Pixel used it.
2019-05-13 15:18:33 +01:00
Clownacy
f3d073affe Made Profile.cpp mostly ASM-accurate
The original code used MessageBoxA, but we haven't ported any of the
WinAPI stuff yet, so there's no hWnd available.
2019-05-10 20:40:58 +01: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
25e68bfb9d Mark string pointers as const 2019-05-06 20:18:24 +01:00
Clownacy
53b39cfa72 Note some bad code 2019-02-27 21:56:16 +00:00
Clownacy
0bb9760d87 Rearranged #includes 2019-02-18 21:30:22 +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
cuckydev
42f7bb55c0 STAR 2019-02-03 13:26:43 -05:00
cuckydev
66e96f47b7 omega 2019-02-02 01:19:12 -05:00
cuckydev
9fb2e33e17 Profile saving stuff 2019-02-01 15:56:19 -05:00
Clownacy
905ae02d77 Merge branch 'master' of https://github.com/cuckydev/Cave-Story-Engine-2 2019-01-31 18:42:19 +00:00
Clownacy
687f02119f Added SelStage.cpp (teleporter menu) 2019-01-31 18:38:21 +00:00
cuckydev
c284afdadd Mapping 2019-01-31 12:31:25 -05:00
Clownacy
5c8f80e611 Added some TSC commands and BossLife.cpp 2019-01-31 14:36:54 +00: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
cuckydev
17b0b503a9 got a bit of tsc done (still need to finish PutTextScript, then it's just commands as far as I know) 2019-01-26 19:40:25 -05:00
cuckydev
f43a3c1130 Org and sound 2019-01-19 21:23:04 -05:00