nix: update to emscripten 3.1.64
Remove use of legacy GL_PERSPECTIVE_CORRECTION_HINT
Disable intro plugscreens for emscripten builds for now
Use stored background color instead of glGetFloatv() call that is slow in emscripten due to wasm<>javascript context switch
Co-authored-by: Thibault Lemaire <thibault.lemaire@protonmail.com>
(cherry picked from commit 5a9e78a3be)
Note: Support for building on windows or mac was (probably) broken while cherry-picking
Signed-off-by: Thibault Lemaire <thibault.lemaire@protonmail.com>
With sanitizers enabled, the game now gets to the main menu and is able
to load non-trivial saves without crashing.
I'm hoping having builds with sanitizers enabled will help debugging as
you don't have to run the game through gdb to get a backtrace in case of
crashes. So this is accessible to less tech-savvy people.
fix: linux: Compiling with clang
nix: fix: dlopen() with sanitizers
---
I rewrote feFindChildren mostly to understand it, but the problem was
getting the `atom` from region->userID, and not region->atom
macOS: The game now compiles and runs on modern (macOS 11.5+) macs, both
on x86_64 and arm64
macOS: When compiled for Raider Retreat, the game now uses a separate directory
macOS: utility_mac.c and File_Mac.c are now used by the build system
instead of utility.c and File.c respectively. This reduces the overall
amount of hard to read `#if`ed code on all platforms.
kas2c's lexer.l #includes parser.h which is only generated as a
side-effect of transpiling parser.y.
When running a compilation with parallel jobs, it invariably tried to
build lexer.l before parser.h was generated.
I have to specify the dependency manually, however parser.h is not a
known output of any job (apparently), so I'll just use parser.c in its
place, since they are both generated at the same time.
https://www.gnu.org/software/automake/manual/html_node/Built-Sources-Example.html#Recording-Dependencies-manually
Tested for x86 and seems okay. will test for x86_64
after commit.
Next commit will be the start of the .c files but there
is a non-trivial ammount of changes to include.......
Probably be about 2 days for the next commit.
Please test and let me know what/if anything seems broken.
Aunxx.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@660 026c9d8a-83c9-0310-a9c7-971d0a006279
Initial commit of all changes to the header files.
Additional changes to the sound code are all in the
definitions of the variable types. Use of long and
unsigned long are different sizes within the different
architectures. Incuded Types.h to standardise on
sdword and udword instead.
I've adopted a type of memsize and smemsize which will
be difined on the size of the pointers. for x86 it is
udword and sdwords, but for x86_64 it'll be uqword and
sqword.
These are the variables which may need to hold a pointer.
Tested and all seems well, but cannot test everything.
Updates to follow:
1) Changes to the configure and makefile templates
2) updates to the code.(staggered by chunks).
3) Stuff I've forgotten to make it work....
Aunxx.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@659 026c9d8a-83c9-0310-a9c7-971d0a006279
by themamboman007 on Relic News' forums:
http://forums.relicnews.com/showthread.php?t=177488
Pretty much a raw dump except that I've unarchived rar/zip files and
removed duplicate binaries where I spotted them.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@645 026c9d8a-83c9-0310-a9c7-971d0a006279
Windows #defines remaining). Removing duplicate definitions in
liflist.c that exist in src/SDL/texreg.h.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@635 026c9d8a-83c9-0310-a9c7-971d0a006279
Rework of configure process :
- configure.in moved to configure.ac
- cleaning of configure.ac options
- testing of the avcodec, avformat and SDL_net libraries and headers
- cleaning of src/Makefile.am and tools/kas2c/Makefile.am
- new bootstrap script which only need configure.ac and automates configuration using "autoreconf -i" command
Cleaning of others Makefile.am on his way
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@616 026c9d8a-83c9-0310-a9c7-971d0a006279
- updating monochrome-btg README to mention use of DISABLE_RANDOM_STARS
- fixing some whitespace issues in monochrome-btg
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@358 026c9d8a-83c9-0310-a9c7-971d0a006279
for Homeworld. Primarily for use when taking screenshots where the
subject matter is to be extracted from the main image for website
graphics, montages etc.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@342 026c9d8a-83c9-0310-a9c7-971d0a006279