Commit graph

1392 commits

Author SHA1 Message Date
Clownacy
05fb5cf106 Fix build error with MinGW 2020-03-13 22:01:02 +00:00
Clownacy
406ff18909 Add CMakeLists.txt and Visual Studio 6 support
The CMake file allows you to compile the accurate branch with
whatever version of Visual Studio you have lying around, without
having to clumbsily convert the VS2003 project.

I've tested this with VS2019, VS2003, and VS6. VS6 is goofy - it's
missing a few types and constants, and it's not smart enough to
realise that ints and longs are the same in ILP32 data models. I've
added a few small hacks to address this. Might undo them. Who knows.

For now, I want to support VS6 because Mint compiled CSE2 with it
before, and because VS6 uses `msvcrt.dll` as its C runtime, which
apparently comes pre-installed in Windows, as opposed to all those
other annoying runtime versions that require they be installed
separately (which is why MinGW targets it specifically).

Also, VS6 *should* give us Win95-compatible builds. The internet says
MSVC2003 is Win95-compatible too, but Mint claims the vanilla EXE
doesn't run on there. I imagine it has something to do with its
static runtime library (VS2003 links the static one by default for
some reason).
2020-03-13 21:35:51 +00:00
Clownacy
e4a20a983e
Similar fixes 2020-02-20 15:59:04 +00:00
Clownacy
ed97e374f8
Fix screen centering in wide/tallscreen
Previously, it would misbehave if the screen is slightly wider than the level
(because it wasn't accounting for the fact that the game hides half of the
border tiles)
2020-02-20 13:11:39 +00:00
Clownacy
a7f1d80a06 Fix compilation with modern Visual Studio 2020-02-13 18:16:01 +00:00
Clownacy
fd19806eaf Travis: Add FIX_BUGS and JAPANESE to matrix
Also changed it to only produce release builds
2020-02-05 21:05:20 +00:00
Clownacy
a762f28837 Note some out-of-bounds array accesses
Thanks, Gabe
2020-02-01 12:45:32 +00:00
Clownacy
c204ba140e Update PHILOSOPHY.md 2020-02-01 11:49:18 +00:00
Clownacy
3597addf51 Add PHILOSOPHY.md 2020-01-30 17:30:37 +00:00
Clownacy
30dced2587 Correct the style of some pointer checks 2020-01-26 13:52:24 +00:00
Clownacy
0bcf978424 Rename HookDirectInputDevice 2020-01-24 21:00:34 +00:00
Clownacy
946d816a3b Add save data to .gitignore 2020-01-24 14:22:05 +00:00
Clownacy
917d69fc4a Move the data folder back to the game folder
The whole 'copy data folder from assets folder to the game folder
when Makefile is ran' thing just made modding annoying.
2020-01-24 13:44:57 +00:00
Clownacy
53f7c02f5f Fix typo in Travis file
I hate learning new languages...
2020-01-23 22:08:01 +00:00
Clownacy
a3bd721df2 Clean-up Travis file 2020-01-23 22:01:30 +00:00
Clownacy
8905a2ee49 Try to get ccache working again 2020-01-23 17:27:44 +00:00
Clownacy
0090c9a226 And again 2020-01-23 17:08:39 +00:00
Clownacy
d24006c966 Try to get environment variables right 2020-01-23 17:07:41 +00:00
Clownacy
7f88a86916 Travis = >:( 2020-01-23 17:05:25 +00:00
Clownacy
2a74ab6d27 Place your bets
Will this random change fix it?
2020-01-23 17:02:14 +00:00
Clownacy
1b64bb71b7 Life is pain 2020-01-23 17:00:12 +00:00
Clownacy
e504f07650 ...Try again 2020-01-23 16:59:20 +00:00
Clownacy
91f71d4030 Try to split 32-bit/64-bit builds 2020-01-23 16:57:58 +00:00
Clownacy
a20b906257 Fix some stupid error that was caused by...
...literally nothing
2020-01-23 16:38:51 +00:00
Clownacy
d4214e6dc9 ??? 2020-01-23 16:27:45 +00:00
Clownacy
057e762279 Screw you Travis 2020-01-23 16:25:31 +00:00
Clownacy
871e443f90 swearing 2020-01-23 16:20:09 +00:00
Clownacy
31fa8f7352 Say it with me: "this is annoying" 2020-01-23 16:19:07 +00:00
Clownacy
ae016bbcf6 ...And again 2020-01-23 16:15:24 +00:00
Clownacy
e45bac46db Clearly I don't understand Bash syntax 2020-01-23 16:14:51 +00:00
Clownacy
cd415916ac Travis: Try to fix WINDRES and 32-bit builds 2020-01-23 16:12:33 +00:00
Clownacy
5ac0f5d160 Install regular make? 2020-01-23 15:55:36 +00:00
Clownacy
c793e302db Dummy out 32-bit for now
Travis's example Windows script is 64-bit-only. I'll hack it up in a
bit.
2020-01-23 15:38:13 +00:00
Clownacy
05e0b49c29 Work already dammit 2020-01-23 15:28:41 +00:00
Clownacy
cbe6262e74 Try to fix whatever syntax error Travis isn't...
...telling me about.

Also this 50 letter limit is stupid
2020-01-23 15:26:25 +00:00
Clownacy
d8d08bf553 Try to get a Travis native Windows build working 2020-01-23 15:21:14 +00:00
Clownacy
d33e007d0f Apparently Travis's 'sudo' is deprecated now? 2020-01-23 15:03:04 +00:00
Clownacy
5fd0b5839b More Travis cleanup 2020-01-23 14:32:29 +00:00
Clownacy
35ac2aead8 Er, don't break the Travis file 2020-01-23 14:25:30 +00:00
Clownacy
55090dc7cc Attempt to build release and debug binaries
Also build static binaries, since that's what's intended for the
Windows builds
2020-01-23 14:23:02 +00:00
Clownacy
29eecc26c9 Build both 32-bit and 64-bit binaries in Travis 2020-01-23 14:17:54 +00:00
Clownacy
03755933ba Added Travis badge to readme
These were already in the portable and enhanced branches, but not
here
2020-01-23 13:59:27 +00:00
Clownacy
7a30be8a4a Cleanup, support WINDRES as an environment variable
Also reenabled the Discord stuff even though it worked without those
lines(???)
2020-01-23 13:56:25 +00:00
Clownacy
c731f7077f Fix WINDRES in the Travis script 2020-01-23 13:51:38 +00:00
Clownacy
2f206d1ef8 Add a Travis file
Not really sure how to test this beyond just spamming commits to the
repo until it works, so bear with me
2020-01-23 13:43:38 +00:00
Clownacy
0237844e14 Actually, this fix doesn't seem right 2020-01-23 01:50:03 +00:00
Clownacy
4091d152ee Minor style tweak 2020-01-23 01:36:19 +00:00
Clownacy
a65c4bc1e3 Added bugfix to Organya 2020-01-23 01:34:55 +00:00
Clownacy
ede9fa213d Fix compilation with FIX_BUGS enabled 2020-01-23 00:03:54 +00:00
Clownacy
f687c5f68b Remove the RGB macro
This is a leftover part of the window.h emulator in that got moved to
the portable branch
2020-01-22 23:50:27 +00:00