Subversion Repositories eduke32

Rev

Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
4773 2330d 18h hendricks266 /polymer/eduke32/source/startgtk.game.c Fix POLYMER=0 GTK C++ build. DONT_BUILD.  
4770 2330d 21h hendricks266 /polymer/eduke32/source/startgtk.game.c GTK: Fix warnings and errors related to the banners. DONT_BUILD.  
4541 2462d 12h hendricks266 /polymer/eduke32/source/startgtk.game.c Replace the funkily-formatted GNU.TXT with the FSF's official gpl-2.0.txt. Also, update the FSF's address in all source files that contain it.

DONT_BUILD.
 
3814 2883d 15h terminx /polymer/eduke32/source/startgtk.game.c Fix a reference to "RDR_POLYMER" that was missed in startgtk  
3784 2891d 17h terminx /polymer/eduke32/source/startgtk.game.c Sanitize hard coded render mode numbers... replace all references to rendmode 0, 3, 4, etc with proper REND_CLASSIC, REND_POLYMOST, REND_POLYMER labels.  
3718 2908d 2h terminx /polymer/eduke32/source/startgtk.game.c Fix GTK build  
3708 2913d 3h terminx /polymer/eduke32/source/startgtk.game.c Support adding custom grps to the selector in the startup window. To use this feature, create a file with a ".grpinfo" extension in your EDuke32 directory, following this template:

grpinfo
{
name "YourGameName"
scriptname "yourgame.con"
defname "yourgame.def"
size yourgrpsize
dependency DUKE15_CRC
flags GAMEFLAG_ADDON
crc yourgrpcrc
}

The "flags" field can also take the value "GAMEFLAG_DUKE" to define a new base game. Since this is the first commit of a new feature, certain semantics of the implementation and syntax are liable to change as necessary.
 
3654 2930d 2h terminx /polymer/eduke32/source/startgtk.game.c Add support for the versions of Duke it out in D.C., Duke Caribbean: Life's a Beach, and Duke: Nuclear Winter packaged with Duke Nukem 3D: Megaton Edition on Steam. This allows them to be launched directly from the startup window and also adds an "-addon" command line parameter that should allow the duke3d.exe included with Megaton Edition to be replaced with a copy of EDuke32.  
3168 3074d 6h helixhorned /polymer/eduke32/source/startgtk.game.c Split r3159..r3161, part 3: MSVC, nedmalloc, *layer, startup windows.  
3165 3074d 6h helixhorned /polymer/eduke32/source/startgtk.game.c Revert "Fix the warnings when building with C++, add MSVC C++ build support."

This reverts r3159..r3161.

Conflicts:
eduke32/build/include/compat.h
(Handled so that r3163's changes are kept applied.)
 
3159 3074d 21h terminx /polymer/eduke32/source/startgtk.game.c Fix the warnings when building with C++, add MSVC C++ build support. This also changes the internal type of lotags, hitags and cstat type fields to uint16_t instead of int16_t to clean up some dubious behavior wherein the code was using a value of 32768 as a flag in these fields for certain types of things, like invisible sprites (using the value as if it was uint16_t) where it was elsewhere checking if the value was < 0 (using the value as if it was int16_t). This change may break a few specific effects if any part of the relevant code was missed when looking for areas that needed to be addressed.

I think there's also a fix for the CON precache system breakage in here (lost it in my local tree when I started getting the C++ build working in MSVC, sorry!)
 
3121 3083d 16h Plagman /polymer/eduke32/source/startgtk.game.c Fix build error after C++ conversion.  
3116 3084d 18h hendricks266 /polymer/eduke32/source/startgtk.game.c Work-in-progress adjustment to the C code to compile under C++. It builds for me without errors using Win32 MinGW-GCC, but it still generates warning soup. No guarantees about MSVC or anything using SDL. Enable C++ by building with CPLUSPLUS=1. C remains the default and should compile with no change in setup.

Credit to Plagman for the idea and doing the work on the game side, which is included in this commit.

(Building as C++ will give us features with which we can make improvements and optimizations on the multiplayer code and Polymer.)
 
2726 3239d 5h hendricks266 /polymer/eduke32/source/startgtk.game.c The handling for grp, con, and def filenames has been massively cleaned up and factored into common.c. A new header, common_game.h, was created because common.h was placed in build/include (see r2542) and we need a common header for things that strictly should not be in the engine. RTS file names were also improved but some of the patterned changes were already made in r2420, and they were not factored because they are strictly part of the game, not the editor.

NAM and Napalm can now share their con, def, and rts files if the one for their respective game is not present because the con and rts files are identical.

Also, decapitalize two string literals missed in r2540.
 
2563 3306d 1h helixhorned /polymer/eduke32/source/startgtk.game.c Make g_grpNamePtr memory-clean, extern clearGrpNamePtr().  
2561 3306d 1h helixhorned /polymer/eduke32/source/startgtk.game.c Clear up handling of g_*NamePtr in the game.

The primary change is that things have been made memory-clean. Some of these
pointers may point to wildly different places during the course of the program
such as statically or dynamically allocated storage, the buffer returned by
getenv() (which must not be modified according to the docs), or an element of
argv[]. Consequently, we need to strdup, or better, dup_filename them if they
are ever to be passed to a function that modifies their pointed-to data.

Specifically:
- added statics or consts according to usage
- 3 new functions clear{Grp,Def,Script}NamePtr, only 'Def' one extern for now
- in G_CheckCommandLine, don't strip 'const'; use Bstrncpyz where appropriate
- remove multiple declarations

Also, warn if an application parameter has been ignored (not matched).
 
2543 3307d 23h helixhorned /polymer/eduke32/source/startgtk.game.c Capitalize numgrpfiles macro to NUMGRPFILES.  
1786 3728d 2h terminx /polymer/eduke32/source/startgtk.game.c Oops, missed a segment when applying the patch from bioman by hand  
1785 3728d 17h terminx /polymer/eduke32/source/startgtk.game.c Patch from bioman to fix an issue with static linking GTK and to correct the alignment of the fullscreen checkbox in the startup window when building with POLYMER=0  
1664 3941d 19h plagman /polymer/eduke32/source/startgtk.game.c Make the "Start" button of the GTK start-up window the default button of the window, which means pressing Enter now works at you'd expect.  

Show All