* fix some global vars
* make sound support optional
* removes LOG_TRACE calls
* now compiles under msvc 4.2
* removes unused functions, adds ignored functions to report
* bump BRender dependency
* adds docker container for running msvc 4.2
---------
Co-authored-by: Jeff Harris <jeff@1amstudios.com>
* Fix bugs exposed by Portuguese Carmageddon
* Fixes for warnings/errors found in rec2
* Macos says "no"
* Last argument of _partSet can be a pointer
* feof is a macro dereferencing f on some systems
* Allow longer program_name in addr2ine
* Fix casing issue with sounds
French Carmageddon provides DATA/SOUND/fyeah1.WAV where it expects DATA/SOUND/FYEAH1.WAV
* tools: add encode capability to decode script
* Replace font id integers with enum
* Result of BrFileGetLine is not used
* Document the StripControls fix
Co-authored-by: Dethrace Engineering Department <78985374+dethrace-labs@users.noreply.github.com>
---------
Co-authored-by: Dethrace Engineering Department <78985374+dethrace-labs@users.noreply.github.com>
* Add enum for splatpack xmas: they have a different demo screen (splatpack demo has smk, xmas demo has a flic)
* Simplify sign
* Fix DecodeLine2 + decode_datatxt.py
* Compare against pointers
* Use float cos and sin functions
* Implement StopGroovidelic
* Implement TestAutoSpecialVolume
* Use floats in SmokeCircle related functions
* gOffset is initialized to 0
* Don't stub DrawTheGlow: every crash is an opportunity to find a bug
* Decrease indentation of LineBoxColl (no functional change)
* Use BrVector3XXX macro's in GetBoundsEdge (no functional change)
* Fix address sanitzier warning when using APC
* Use BrVector3XXX macro in GetPlaneNormal (no functional change)
* Get rid of global is_full_screen variable
* Add command line argument to start DethRace in full screen mode
* cmake: move DETHRACE_FIX_BUGS cmake option to top cmake script
* Add DETHRACE_FIX_BUGS macro when DETHRACE_FIX_BUGS cmake variable is defined
* harness: prescale mouse pointer so it works seamlessly with hires
* Fix IWANTTOFIDDLE
* Add comments for the fixes
* Revert "Don't stub DrawTheGlow: every crash is an opportunity to find a bug"
This reverts commit 3345649201.
* Change type of DRPixelmapCleverText2 to char*
* Fix warnings emitted due to -Wreturn-type
* Fix BR_ONE_LS redefinition warning
* Fix warnings emitted by -Wparentheses
* Tag FatalError and PDFatalError with noreturn attribute, fixing -Wreturn-type warnings
* Fix string type of TransBrPixelmapText~
* Fix a few -Wmaybe-uninitialized warnings
* Fix -Wformat and -Wpointer-sign warnings in test_datafile.c
* Fix -Wshift-negative-value warning
* Fix -Wpointer-sign warning
* chdir is declared with attribute 'warn_unused_result'
* Fix -Wmaybe-uninitialized warning
* Fix -Warray-bounds warning
* Fix -Wmaybe-unitialized warning
* Fix -Wmaybe-unitialized warning
* Fix -Wmaybe-unitialized warning
* Fix -Wmaybe-unitialized warnings
* Fix a few -Wmaybe-uninitialized warnings
* cmake: unify warnings amongst gcc and clang
* fatalerror_fixup
* Fix -Wabsolute-value warning
* Fix all warnings when building with MinGW on Windows
* Fix warning caused by -Wimplicit-fallthrough
* Fix warnings caused by -Wcast-function-type
Fixes these types of warnings:
cast between incompatible function types from ‘br_uint_32 (*)(br_actor *, void *)’ {aka ‘unsigned int (*)(struct br_actor *, void *)’} to ‘intptr_t (*)(br_actor *, void *)’ {aka ‘long int (*)(struct br_actor *, void *)’} [-Wcast-function-type]
* Fix warning caused by -Wmissing-field-initializers
* Normalize direction_v vector and store in displacement
* dethrace: implement all missing brucetrk functions
* brender: use sqrtf in macros to avoid double->float conversion
* dethrace: implement a few key callbacks (will crash further along the line)
* dethrace: start earning some money (display credits message)
* dethrace: create spark/shrapnel objects (no render yet)
* ALL IN ONE
* brender: implement 'easy' euler functions
* brender: implement BrMatrix4PreTransform and BrTransformToTransform
* brender: add TAU constand (=2*pi)
* brender: add FIXME/STUB to render function (+ implement it)
* brender: add a few functions to the global brender header
* Add DETHRACE_FIX_BUGS macro to the cmake build system to optionally fix bugs/compiler warnings
* dethrace: implement 2 crush functions
* dethrace: use floats in FindFace + re-use local stack variable
* tNet_contents is an enum: the header aliases the start of the other messages
* dethrace: stub PDMouseButtons
* dethrace: implement a few utility functions
* dethrace: implement ChangeSelectionTo + de-inline ResetInterfaceTimeout
* dethrace: use chars instead of magic values + add fix for compiler warning about number formatting
* dethrace: compare a pointer against a NULL pointer
* dethrace: implement a lot of powerup functions
* dethrace: implement a few piping functions
* dethrace: implement a few opponent functions
* dethrace: completely implement load/save (or so I hope :D)
* dethrace: implement a few oily functions
* dethrace: implement got/lose/periodic powerup proc array
* brender: add BrXXXFindHook functions to brender header
* dethrace: register callback functions on missing material/model/map/tables
* dethrace: compare pointers with pointers and ints with ints
* Hide powercallback typedefs behind #ifdef
* dethrace: implement Del/End/PgDn APO buy buttons logic
* Add BrDiagHandlerSet to brender.h
* dethrace: SwithToRealResolution/SwitchToLoresMode call PD functions
* Use correct type when comparing against characters.
* dethrace: implement writing out and disposing crush data
* dethrace: add NonFatalError + fix entry in gError_messages
* dethrace: implement StopCarSmoking and StopCarSmokingInstantly
* dethrace: implement SkidNoise + ScrapeNoise + DamageUnitWithSmoke + DamageUnit
* dethrace: InitCarSkidStuff -> use floats instead of doubles
* Add BrPixelmapCopy + BrPixelmapPixelSet to brender header
* dethrace: implement DisableCar
* dethrace: stub out a lot of functions in sound.c
* dethrace: load and dispose pratcam data
* dethrace: minor additions to flicplay.c
* skidmark: compare floats with floats
* dethrace: implement some functions to convert face materials for different wall texturing levels
* add stub BrPixelmapCopy function + add STUB_ONCE calls in other methods
* MungeForwardSky does nothing, I think
* Use macros to initialize variables in AllocateCamera
* Implement AdjustSkid + use floats
* DRStdioOpenRead: Compare pointer against NULL
* dethrace: Implement IncrementLap
* dethrace: implement ChangeAmbientPratcam
* Implement SortOutRecover
* Implement CheckHornLocal
* Use COUNT_OF in dethrace
* Draw arrow blip on map
* Implement DRPixelmapCopy
* Fix error code value
* Stub GotPowerupX
* Add ability to run the game/tests without signal handler, this allows a debugger to attach
* Don't save a game in PDFatalError
* Fix loadsave recopy arrays
Co-authored-by: Dethrace Engineering Department <78985374+dethrace-labs@users.noreply.github.com>
* Include windows.h before imagehlp.h
This fixes a long list of undefined type errors when building with mingw (on Linux).
* Remove matherr function
This function is provided by the c library.
* Use GetFileAttributesA to filter files
dirent->d_type is not available in all implementation.
Posix only mandates the fields d_name and d_ino.
* Use FindOpenGL.cmake to get the opengl library
Mingw has no libGL.so, but has libopengl32.a. Use the CMake module to abstract this away.
* harness needs to link to dbghelp
This fixes undefined references to:
__imp_SymInitialize, __imp_SymGetModuleBase64,
__imp_SymFunctionTableAccess64, __imp_StackWalk64 and __imp_SymCleanup.
* Don't add -g to compile options.
CMAKE_BUILD_TYPE=(Debug|RelWithDebInfo) takes care of this
* Set test file name before running tests in suite.
This causes the message to contain the correct file name where an assertion failed/succeeded.
* Use wrapper to sleep for number on seconds in tests
sleep on Windows expects milliseconds.
sleep on Posix expects seconds.
* Use char* instead of void*
MSVC complained that it couldn't determine the size of void
* Don't test state of removed resource after deletion when building Debug
When building in Debug configuration, the compiler may mark deleted memory ranges with some value.
Therefore, we cannot expect deleted memory to remain unchanged.
(MSVC in Debug mode does this)
* Use helper to get system temporary folder.
Using /tmp on Windows failed hard.
* Header containing sse3 intrinsics is pmmintrin.h
See https://github.com/recp/cglm/pull/234
* Add errno.h include for ENOTSUP
* Fix test_utility_GetALineWithNoPossibleService: avoid strcpy of uninitialized s
Found by running the tests with CMAKE_BUILD_TYPE=Debug with MSVC
* Add mingw@Linux and mingw@Windows jobs to github workflow
* Rename build-windows.ps1 script to build-msvc.ps1.
Also bump the versions of SDL2 and ninja, used in this script.
* Run tests in github jobs running on Windows
Co-authored-by: Dethrace Engineering Laboratory <78985374+dethrace-labs@users.noreply.github.com>
* convert CollCheck to use inline BR functions
* convert CalcForce to use inline BR functions
* partial support for demo content
* harness interface tidy up
* cleaner platform handing