Commit graph

27 commits

Author SHA1 Message Date
Clownacy
6be5aac70d Prevent error if Resource table is empty 2020-03-31 20:25:31 +01:00
Clownacy
cf75cbcad2 Don't embed font in executable
Creating a Japanese build would require 4GB+ of RAM because of this.
It's about time it got removed. It was a silly idea anyway.
2020-03-17 21:14:15 +00:00
Clownacy
976e2425fc Use native window/taskbar icons on Windows
This used to be a feature before the accurate-portable split, I'm
just restoring it.

Previously, while the EXE itself had a unique icon, the window and
taskbar both used the generic 'small' icon, which the original EXE
only used for the window.

SDL2 gives us a way to assign separate icons to each, but it's a
little clunky: it's Windows-only, requires the icons be in .ico
format, and needs them to be embedded in the EXE as resource files.
Also, for some reason, SDL2 doesn't let us refer to them by name - we
have to use their numerical ID.
2020-01-21 11:27:32 +00:00
Clownacy
5838eaba1f Add a FOSS Japanese font
It doesn't seem that great at 320x240, but I don't speak Japanese so
what do I know?
2019-09-27 11:18:26 +00:00
Clownacy
ae8aeae2ac Restored the new font system 2019-09-04 15:43:28 +00:00
Clownacy
0be5e9ead8 Restored the window icon and custom cursor 2019-09-04 14:39:37 +00: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
1f3728c177 Restore the new resource file system 2019-09-02 23:32:19 +01:00
Clownacy
e67c1e3640 Migrated to the native Windows resource file system 2019-08-27 23:59:57 +01:00
Clownacy
66364275c2 Fix NONPORTABLE builds 2019-08-25 22:17:01 +01:00
Clownacy
a6ac6787d3 Embed the fonts in the EXE
Now CSE2.exe should be drop-in replacement for Doukutsu.exe, with
no extra files needed.
2019-05-05 14:03:16 +01:00
Clownacy
1d064204d5 This #include is needless 2019-05-05 02:38:38 +01:00
Clownacy
ddf61dd791 Added Wave.dat's original file extension
beebd77d73/source/Sound.cpp (L477)

Thank goodness for the Org2 source release
2019-05-05 02:20:37 +01:00
Clownacy
f7c1ca86c3 Remove Resource.cpp's dependence on SDL2
This also makes its API a lot more similar to Windows'
2019-05-05 01:57:23 +01:00
Clownacy
d2f1b2c1a9 Renamed some of the resource files
The Linux port's get_resource function seems to be using the original
filenames, rather than the 8.3 filenames used by the Windows EXE's
resource system. Too bad it doesn't tell us the original file extensions.
2019-05-04 18:26:41 +01:00
Clownacy
7d222231ae Added some missing headers 2019-04-26 01:41:36 +01:00
Clownacy
c9b681299c Shut up some MSVC2003 warnings 2019-03-11 03:40:51 +00:00
Clownacy
0bb9760d87 Rearranged #includes 2019-02-18 21:30:22 +00:00
Clownacy
8942c6cc48 Gave the music file extensions 2019-02-14 15:42:50 +00:00
Clownacy
4e61be56d0 Renamed the SDL icon file
Turns out it has an actual name in the original EXE
2019-02-10 17:03:55 +00:00
Clownacy
d4c0cde748 Added Windows-specific icon files 2019-02-10 16:55:54 +00:00
Clownacy
6265f81b14 Added cursors 2019-02-10 16:35:23 +00:00
cuckydev
bea22e72e0 bullet 2019-01-30 16:03:10 -05:00
Clownacy
b325efd981 Improved Japanese build a little 2019-01-25 12:02:52 +00:00
cuckydev
66f545af41 gave credits its music code, changed language related stuff, bleh bleh blah blah bluh bluh blyh 2019-01-22 20:01:35 -05:00
Clownacy
2d9abcc50b Added automatic compile-time resource conversion
I've included the .h files in the repo since I might add automatic
resource generation in the future, and in order for that to work, all .h
files must be present on the first pass.
2019-01-20 21:53:39 +00:00
cuckydev
b1bb48148b resource and japanese 2019-01-20 15:55:28 -05:00