Merge branch 'archive_split'
|
@ -330,6 +330,7 @@ add_subdirectory( gdtoa )
|
|||
add_subdirectory( wadsrc )
|
||||
add_subdirectory( wadsrc_bm )
|
||||
add_subdirectory( wadsrc_lights )
|
||||
add_subdirectory( wadsrc_extra )
|
||||
add_subdirectory( src )
|
||||
|
||||
if( NOT CMAKE_CROSSCOMPILING )
|
||||
|
|
|
@ -51,7 +51,6 @@
|
|||
#include "doomerrors.h"
|
||||
#include "v_text.h"
|
||||
|
||||
|
||||
CVAR (Bool, queryiwad, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
|
||||
CVAR (String, defaultiwad, "", CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
|
||||
|
||||
|
@ -489,7 +488,7 @@ void FIWadManager::ValidateIWADs()
|
|||
|
||||
static bool havepicked = false;
|
||||
|
||||
int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad, const char *zdoom_wad)
|
||||
int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad, const char *zdoom_wad, const char *optional_wad)
|
||||
{
|
||||
const char *iwadparm = Args->CheckValue ("-iwad");
|
||||
FString custwad;
|
||||
|
@ -688,6 +687,10 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
|
|||
wadfiles.Clear();
|
||||
D_AddFile (wadfiles, zdoom_wad);
|
||||
|
||||
// [SP] Load non-free assets if available. This must be done before the IWAD.
|
||||
if (optional_wad)
|
||||
D_AddFile(wadfiles, optional_wad);
|
||||
|
||||
if (picks[pick].mRequiredPath.IsNotEmpty())
|
||||
{
|
||||
D_AddFile (wadfiles, picks[pick].mRequiredPath);
|
||||
|
@ -723,9 +726,9 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
const FIWADInfo *FIWadManager::FindIWAD(TArray<FString> &wadfiles, const char *iwad, const char *basewad)
|
||||
const FIWADInfo *FIWadManager::FindIWAD(TArray<FString> &wadfiles, const char *iwad, const char *basewad, const char *optionalwad)
|
||||
{
|
||||
int iwadType = IdentifyVersion(wadfiles, iwad, basewad);
|
||||
int iwadType = IdentifyVersion(wadfiles, iwad, basewad, optionalwad);
|
||||
//gameiwad = iwadType;
|
||||
const FIWADInfo *iwad_info = &mIWadInfos[iwadType];
|
||||
if (DoomStartupInfo.Name.IsEmpty()) DoomStartupInfo.Name = iwad_info->Name;
|
||||
|
|
|
@ -2352,6 +2352,8 @@ void D_DoomMain (void)
|
|||
}
|
||||
FString basewad = wad;
|
||||
|
||||
FString optionalwad = BaseFileSearch(OPTIONALWAD, NULL, true);
|
||||
|
||||
iwad_man = new FIWadManager(basewad);
|
||||
|
||||
// Now that we have the IWADINFO, initialize the autoload ini sections.
|
||||
|
@ -2384,7 +2386,7 @@ void D_DoomMain (void)
|
|||
{
|
||||
iwad_man = new FIWadManager(basewad);
|
||||
}
|
||||
const FIWADInfo *iwad_info = iwad_man->FindIWAD(allwads, iwad, basewad);
|
||||
const FIWADInfo *iwad_info = iwad_man->FindIWAD(allwads, iwad, basewad, optionalwad);
|
||||
gameinfo.gametype = iwad_info->gametype;
|
||||
gameinfo.flags = iwad_info->flags;
|
||||
gameinfo.ConfigName = iwad_info->Configname;
|
||||
|
|
|
@ -142,13 +142,13 @@ class FIWadManager
|
|||
void ParseIWadInfo(const char *fn, const char *data, int datasize, FIWADInfo *result = nullptr);
|
||||
int ScanIWAD (const char *iwad);
|
||||
int CheckIWADInfo(const char *iwad);
|
||||
int IdentifyVersion (TArray<FString> &wadfiles, const char *iwad, const char *zdoom_wad);
|
||||
int IdentifyVersion (TArray<FString> &wadfiles, const char *iwad, const char *zdoom_wad, const char *optional_wad);
|
||||
void CollectSearchPaths();
|
||||
void AddIWADCandidates(const char *dir);
|
||||
void ValidateIWADs();
|
||||
public:
|
||||
FIWadManager(const char *fn);
|
||||
const FIWADInfo *FindIWAD(TArray<FString> &wadfiles, const char *iwad, const char *basewad);
|
||||
const FIWADInfo *FindIWAD(TArray<FString> &wadfiles, const char *iwad, const char *basewad, const char *optionalwad);
|
||||
const FString *GetAutoname(unsigned int num) const
|
||||
{
|
||||
if (num < mIWadInfos.Size()) return &mIWadInfos[num].Autoname;
|
||||
|
|
8690
src/posix/zdoom.xpm
|
@ -96,13 +96,14 @@ const char *GetVersionString();
|
|||
// This is so that derivates can use the same savegame versions without worrying about engine compatibility
|
||||
#define GAMESIG "GZDOOM"
|
||||
#define BASEWAD "gzdoom.pk3"
|
||||
#define OPTIONALWAD "zd_extra.pk3"
|
||||
#define BASESF "gzdoom.sf2"
|
||||
|
||||
// More stuff that needs to be different for derivatives.
|
||||
#define GAMENAME "GZDoom"
|
||||
#define GAMENAMELOWERCASE "gzdoom"
|
||||
#define FORUM_URL "http://forum.drdteam.org"
|
||||
#define BUGS_FORUM_URL "http://forum.drdteam.org/viewforum.php?f=24"
|
||||
#define FORUM_URL "http://forum.zdoom.org/"
|
||||
#define BUGS_FORUM_URL "http://forum.zdoom.org/viewforum.php?f=2"
|
||||
|
||||
#if defined(__APPLE__) || defined(_WIN32)
|
||||
#define GAME_DIR GAMENAME
|
||||
|
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 293 KiB |
BIN
wadsrc/static/filter/game-doom/graphics/stcfn191.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-doom/graphics/stcfn193.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-doom/graphics/stcfn196.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-doom/graphics/stcfn197.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-doom/graphics/stcfn201.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-doom/graphics/stcfn205.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-doom/graphics/stcfn209.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-doom/graphics/stcfn211.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-doom/graphics/stcfn214.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-doom/graphics/stcfn218.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-doom/graphics/stcfn220.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-doom/graphics/stcfn223.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-raven/graphics/fonta164.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-raven/graphics/fonta165.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-raven/graphics/fonta182.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-raven/graphics/fonta188.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-raven/graphics/fonta191.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/filter/game-raven/graphics/fonta60.png
Normal file
After Width: | Height: | Size: 892 B |
BIN
wadsrc/static/filter/game-raven/graphics/fonta61.png
Normal file
After Width: | Height: | Size: 892 B |
BIN
wadsrc/static/filter/game-raven/graphics/fonta62.png
Normal file
After Width: | Height: | Size: 869 B |
BIN
wadsrc/static/filter/game-raven/graphics/fonta63.png
Normal file
After Width: | Height: | Size: 892 B |
Before Width: | Height: | Size: 650 B After Width: | Height: | Size: 202 B |
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 264 B |
BIN
wadsrc/static/graphics/clerface.png
Normal file
After Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 741 B After Width: | Height: | Size: 264 B |
BIN
wadsrc/static/graphics/fiteface.png
Normal file
After Width: | Height: | Size: 225 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 204 B After Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 213 B After Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 250 B |
BIN
wadsrc/static/graphics/mageface.png
Normal file
After Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 246 B |
BIN
wadsrc/static/graphics/stfbany.png
Normal file
After Width: | Height: | Size: 216 B |
BIN
wadsrc/static/graphics/stkeys6.png
Normal file
After Width: | Height: | Size: 197 B |
BIN
wadsrc/static/graphics/stkeys7.png
Normal file
After Width: | Height: | Size: 203 B |
BIN
wadsrc/static/graphics/stkeys8.png
Normal file
After Width: | Height: | Size: 200 B |
BIN
wadsrc/static/graphics/stpbany.png
Normal file
After Width: | Height: | Size: 205 B |
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 264 B |
BIN
wadsrc/static/graphics/wislash.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wadsrc/static/sounds/dsdgact.ogg
Normal file
3
wadsrc/static/sounds/dsdgact.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Edited from "Mr Dog_01.wav" by apolloaiello
|
||||
http://freesound.org/people/apolloaiello/sounds/276267/
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
BIN
wadsrc/static/sounds/dsdgatk.ogg
Normal file
3
wadsrc/static/sounds/dsdgatk.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Edited from "Mr Dog_01.wav" by apolloaiello
|
||||
http://freesound.org/people/apolloaiello/sounds/276267/
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
BIN
wadsrc/static/sounds/dsdgdth.ogg
Normal file
3
wadsrc/static/sounds/dsdgdth.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Edited from "DogYelp.wav" by TobiasKosmos
|
||||
http://freesound.org/people/TobiasKosmos/sounds/163280/
|
||||
https://creativecommons.org/licenses/by/3.0/
|
BIN
wadsrc/static/sounds/dsdgpain.ogg
Normal file
3
wadsrc/static/sounds/dsdgpain.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Edited from "DogYelp.wav" by TobiasKosmos
|
||||
http://freesound.org/people/TobiasKosmos/sounds/163280/
|
||||
https://creativecommons.org/licenses/by/3.0/
|
BIN
wadsrc/static/sounds/dsdgsit.ogg
Normal file
3
wadsrc/static/sounds/dsdgsit.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Edited from "DogYelp.wav" by TobiasKosmos
|
||||
http://freesound.org/people/TobiasKosmos/sounds/163280/
|
||||
https://creativecommons.org/licenses/by/3.0/
|
BIN
wadsrc/static/sounds/dsquake.ogg
Normal file
BIN
wadsrc/static/sounds/dssecret.ogg
Normal file
BIN
wadsrc/static/sounds/icebrk1a.ogg
Normal file
7
wadsrc/static/sounds/icebrk1a.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
Edited version of "Glass Break" by unfa
|
||||
http://freesound.org/people/unfa/sounds/221528/
|
||||
https://creativecommons.org/licenses/by/3.0/
|
||||
|
||||
Edited version of "Icecubes.wav" by Daphne_in_Wonderland
|
||||
http://freesound.org/people/Daphne_in_Wonderland/sounds/239486/
|
||||
https://creativecommons.org/publicdomain/zero/1.0/
|
BIN
wadsrc/static/sounds/icedth1.ogg
Normal file
3
wadsrc/static/sounds/icedth1.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Edited version of "Icecubes.wav" by Daphne_in_Wonderland
|
||||
http://freesound.org/people/Daphne_in_Wonderland/sounds/239486/
|
||||
https://creativecommons.org/publicdomain/zero/1.0/
|
BIN
wadsrc/static/sounds/railgf1.ogg
Normal file
7
wadsrc/static/sounds/railgf1.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
Edited from "O_17P.wav" from the Free Firearm Sound Library Page
|
||||
https://opengameart.org/content/the-free-firearm-sound-library
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
Edited from "laser_sustained.wav" by ledhed2222
|
||||
http://freesound.org/people/ledhed2222/sounds/397280/
|
||||
https://creativecommons.org/publicdomain/zero/1.0/
|
BIN
wadsrc/static/sounds/spark1.ogg
Normal file
BIN
wadsrc/static/sounds/spark2.ogg
Normal file
BIN
wadsrc/static/sounds/spark3.ogg
Normal file
Before Width: | Height: | Size: 315 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 842 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 842 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 575 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 416 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 466 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 479 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 451 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 405 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 155 B |