mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
- detect the add ons in the Megaton edition.
This commit is contained in:
parent
1bb1f2ae98
commit
3a522091b9
2 changed files with 40 additions and 2 deletions
|
@ -562,7 +562,10 @@ BOOL CALLBACK IWADBoxCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM lPa
|
||||||
filepart = WadList[i].Path;
|
filepart = WadList[i].Path;
|
||||||
else
|
else
|
||||||
filepart++;
|
filepart++;
|
||||||
FStringf work("%s (%s)", WadList[i].Name.GetChars(), filepart);
|
|
||||||
|
FString work;
|
||||||
|
if (*filepart) work.Format("%s (%s)", WadList[i].Name.GetChars(), filepart);
|
||||||
|
else work = WadList[i].Name.GetChars();
|
||||||
std::wstring wide = work.WideString();
|
std::wstring wide = work.WideString();
|
||||||
SendMessage(ctrl, LB_ADDSTRING, 0, (LPARAM)wide.c_str());
|
SendMessage(ctrl, LB_ADDSTRING, 0, (LPARAM)wide.c_str());
|
||||||
SendMessage(ctrl, LB_SETITEMDATA, i, (LPARAM)i);
|
SendMessage(ctrl, LB_SETITEMDATA, i, (LPARAM)i);
|
||||||
|
|
|
@ -191,6 +191,17 @@ grpinfo
|
||||||
gamefilter "Duke.DukeDC"
|
gamefilter "Duke.DukeDC"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addon
|
||||||
|
{
|
||||||
|
// This is for loading the addon from the megaton edition without setting the path.
|
||||||
|
name "Duke it out in D.C."
|
||||||
|
flags GAMEFLAG_DUKE|GAMEFLAG_ADDON
|
||||||
|
dependency DUKE15_CRC
|
||||||
|
mustcontain "addons/dc/dukedc.grp"
|
||||||
|
loadgrp "addons/dc/dukedc.grp"
|
||||||
|
gamefilter "Duke.DukeDC"
|
||||||
|
}
|
||||||
|
|
||||||
// These are a bit strange but without anything to check I do not know in what way.
|
// These are a bit strange but without anything to check I do not know in what way.
|
||||||
// { "Duke Caribbean: Life's a Beach (1.3D)", VACA13_CRC, 23559381, GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE13_CRC, NULL, process_vaca13},
|
// { "Duke Caribbean: Life's a Beach (1.3D)", VACA13_CRC, 23559381, GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE13_CRC, NULL, process_vaca13},
|
||||||
// { "Duke Caribbean: Life's a Beach (PPak)", VACAPP_CRC, 22551333, GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKEPP_CRC, NULL, process_vacapp15},
|
// { "Duke Caribbean: Life's a Beach (PPak)", VACAPP_CRC, 22551333, GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKEPP_CRC, NULL, process_vacapp15},
|
||||||
|
@ -209,7 +220,7 @@ grpinfo
|
||||||
grpinfo
|
grpinfo
|
||||||
{
|
{
|
||||||
name "Duke Caribbean: Life's a Beach"
|
name "Duke Caribbean: Life's a Beach"
|
||||||
scriptname "VACARION.CON"
|
scriptname "VACATION.CON"
|
||||||
size 22397273
|
size 22397273
|
||||||
crc 0x65B5F690
|
crc 0x65B5F690
|
||||||
flags GAMEFLAG_DUKE|GAMEFLAG_ADDON
|
flags GAMEFLAG_DUKE|GAMEFLAG_ADDON
|
||||||
|
@ -217,6 +228,17 @@ grpinfo
|
||||||
gamefilter "Duke.Vacation"
|
gamefilter "Duke.Vacation"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addon
|
||||||
|
{
|
||||||
|
// This is for loading the addon from the megaton edition without setting the path.
|
||||||
|
name "Duke Caribbean: Life's a Beach"
|
||||||
|
flags GAMEFLAG_DUKE|GAMEFLAG_ADDON
|
||||||
|
dependency DUKE15_CRC
|
||||||
|
mustcontain "addons/vacation/vacation.grp"
|
||||||
|
loadgrp "addons/vacation/vacation.grp"
|
||||||
|
gamefilter "Duke.Vacation"
|
||||||
|
}
|
||||||
|
|
||||||
grpinfo
|
grpinfo
|
||||||
{
|
{
|
||||||
name "Duke: Nuclear Winter"
|
name "Duke: Nuclear Winter"
|
||||||
|
@ -228,6 +250,19 @@ grpinfo
|
||||||
gamefilter "Duke.NWinter"
|
gamefilter "Duke.NWinter"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addon
|
||||||
|
{
|
||||||
|
// This is for loading the addon from the megaton edition without setting the path.
|
||||||
|
name "Duke: Nuclear Winter"
|
||||||
|
scriptname "NWINTER.CON"
|
||||||
|
flags GAMEFLAG_DUKE|GAMEFLAG_ADDON
|
||||||
|
dependency DUKE15_CRC
|
||||||
|
mustcontain "addons/nw/nwinter.grp"
|
||||||
|
loadgrp "addons/nw/nwinter.grp"
|
||||||
|
gamefilter "Duke.NWinter"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
grpinfo
|
grpinfo
|
||||||
{
|
{
|
||||||
name "Duke: Nuclear Winter Demo"
|
name "Duke: Nuclear Winter Demo"
|
||||||
|
|
Loading…
Reference in a new issue