mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
Merge branch 'master' of https://github.com/raa-eruanna/qzdoom into qzdoom
This commit is contained in:
commit
22f07b06cd
4 changed files with 64 additions and 30 deletions
|
@ -205,7 +205,10 @@ CUSTOM_CVAR (String, vid_cursor, "None", CVAR_ARCHIVE | CVAR_NOINITCALL)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool disableautoload = false; // [SP] No auto load
|
// Controlled by startup dialog
|
||||||
|
CVAR (Bool, disableautoload, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
||||||
|
CVAR (Bool, autoloadbrightmaps, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
||||||
|
CVAR (Bool, autoloadlights, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
||||||
|
|
||||||
bool wantToRestart;
|
bool wantToRestart;
|
||||||
bool DrawFSHUD; // [RH] Draw fullscreen HUD?
|
bool DrawFSHUD; // [RH] Draw fullscreen HUD?
|
||||||
|
@ -2040,6 +2043,23 @@ static void AddAutoloadFiles(const char *autoname)
|
||||||
{
|
{
|
||||||
LumpFilterIWAD.Format("%s.", autoname); // The '.' is appened to simplify parsing the string
|
LumpFilterIWAD.Format("%s.", autoname); // The '.' is appened to simplify parsing the string
|
||||||
|
|
||||||
|
// [SP] Dialog reaction - load lights.pk3 and brightmaps.pk3 based on user choices
|
||||||
|
if (!(gameinfo.flags & GI_SHAREWARE))
|
||||||
|
{
|
||||||
|
if (autoloadlights)
|
||||||
|
{
|
||||||
|
const char *lightswad = BaseFileSearch ("lights.pk3", NULL);
|
||||||
|
if (lightswad)
|
||||||
|
D_AddFile (allwads, lightswad);
|
||||||
|
}
|
||||||
|
if (autoloadbrightmaps)
|
||||||
|
{
|
||||||
|
const char *bmwad = BaseFileSearch ("brightmaps.pk3", NULL);
|
||||||
|
if (bmwad)
|
||||||
|
D_AddFile (allwads, bmwad);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!(gameinfo.flags & GI_SHAREWARE) && !Args->CheckParm("-noautoload") && !disableautoload)
|
if (!(gameinfo.flags & GI_SHAREWARE) && !Args->CheckParm("-noautoload") && !disableautoload)
|
||||||
{
|
{
|
||||||
FString file;
|
FString file;
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
**
|
**
|
||||||
**---------------------------------------------------------------------------
|
**---------------------------------------------------------------------------
|
||||||
** Copyright 1998-2009 Randy Heit
|
** Copyright 1998-2009 Randy Heit
|
||||||
|
** Copyright (C) 2007-2012 Skulltag Development Team
|
||||||
|
** Copyright (C) 2007-2016 Zandronum Development Team
|
||||||
** All rights reserved.
|
** All rights reserved.
|
||||||
**
|
**
|
||||||
** Redistribution and use in source and binary forms, with or without
|
** Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -17,6 +19,15 @@
|
||||||
** documentation and/or other materials provided with the distribution.
|
** documentation and/or other materials provided with the distribution.
|
||||||
** 3. The name of the author may not be used to endorse or promote products
|
** 3. The name of the author may not be used to endorse or promote products
|
||||||
** derived from this software without specific prior written permission.
|
** derived from this software without specific prior written permission.
|
||||||
|
** 4. Redistributions in any form must be accompanied by information on how to
|
||||||
|
** obtain complete source code for the software and any accompanying software
|
||||||
|
** that uses the software. The source code must either be included in the
|
||||||
|
** distribution or be available for no more than the cost of distribution plus
|
||||||
|
** a nominal fee, and must be freely redistributable under reasonable
|
||||||
|
** conditions. For an executable file, complete source code means the source
|
||||||
|
** code for all modules it contains. It does not include source code for
|
||||||
|
** modules or files that typically accompany the major components of the
|
||||||
|
** operating system on which the executable file runs.
|
||||||
**
|
**
|
||||||
** THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
** THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||||
** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
@ -130,7 +141,9 @@ EXTERN_CVAR (Bool, queryiwad);
|
||||||
// Used on welcome/IWAD screen.
|
// Used on welcome/IWAD screen.
|
||||||
EXTERN_CVAR (Int, vid_renderer)
|
EXTERN_CVAR (Int, vid_renderer)
|
||||||
EXTERN_CVAR (Bool, fullscreen)
|
EXTERN_CVAR (Bool, fullscreen)
|
||||||
extern bool disableautoload;
|
EXTERN_CVAR (Bool, disableautoload)
|
||||||
|
EXTERN_CVAR (Bool, autoloadlights)
|
||||||
|
EXTERN_CVAR (Bool, autoloadbrightmaps)
|
||||||
|
|
||||||
extern HWND Window, ConWindow, GameTitleWindow;
|
extern HWND Window, ConWindow, GameTitleWindow;
|
||||||
extern HANDLE StdOut;
|
extern HANDLE StdOut;
|
||||||
|
@ -1170,7 +1183,11 @@ BOOL CALLBACK IWADBoxCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM lPa
|
||||||
// Check the current video settings.
|
// Check the current video settings.
|
||||||
SendDlgItemMessage( hDlg, vid_renderer ? IDC_WELCOME_OPENGL : IDC_WELCOME_SOFTWARE, BM_SETCHECK, BST_CHECKED, 0 );
|
SendDlgItemMessage( hDlg, vid_renderer ? IDC_WELCOME_OPENGL : IDC_WELCOME_SOFTWARE, BM_SETCHECK, BST_CHECKED, 0 );
|
||||||
SendDlgItemMessage( hDlg, IDC_WELCOME_FULLSCREEN, BM_SETCHECK, fullscreen ? BST_CHECKED : BST_UNCHECKED, 0 );
|
SendDlgItemMessage( hDlg, IDC_WELCOME_FULLSCREEN, BM_SETCHECK, fullscreen ? BST_CHECKED : BST_UNCHECKED, 0 );
|
||||||
|
|
||||||
|
// [SP] This is our's
|
||||||
SendDlgItemMessage( hDlg, IDC_WELCOME_NOAUTOLOAD, BM_SETCHECK, disableautoload ? BST_CHECKED : BST_UNCHECKED, 0 );
|
SendDlgItemMessage( hDlg, IDC_WELCOME_NOAUTOLOAD, BM_SETCHECK, disableautoload ? BST_CHECKED : BST_UNCHECKED, 0 );
|
||||||
|
SendDlgItemMessage( hDlg, IDC_WELCOME_LIGHTS, BM_SETCHECK, autoloadlights ? BST_CHECKED : BST_UNCHECKED, 0 );
|
||||||
|
SendDlgItemMessage( hDlg, IDC_WELCOME_BRIGHTMAPS, BM_SETCHECK, autoloadbrightmaps ? BST_CHECKED : BST_UNCHECKED, 0 );
|
||||||
|
|
||||||
// Set up our version string.
|
// Set up our version string.
|
||||||
sprintf(szString, "Version %s.", GetVersionString());
|
sprintf(szString, "Version %s.", GetVersionString());
|
||||||
|
@ -1215,7 +1232,8 @@ BOOL CALLBACK IWADBoxCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM lPa
|
||||||
|
|
||||||
// [SP] This is our's.
|
// [SP] This is our's.
|
||||||
disableautoload = SendDlgItemMessage( hDlg, IDC_WELCOME_NOAUTOLOAD, BM_GETCHECK, 0, 0 ) == BST_CHECKED;
|
disableautoload = SendDlgItemMessage( hDlg, IDC_WELCOME_NOAUTOLOAD, BM_GETCHECK, 0, 0 ) == BST_CHECKED;
|
||||||
|
autoloadlights = SendDlgItemMessage( hDlg, IDC_WELCOME_LIGHTS, BM_GETCHECK, 0, 0 ) == BST_CHECKED;
|
||||||
|
autoloadbrightmaps = SendDlgItemMessage( hDlg, IDC_WELCOME_BRIGHTMAPS, BM_GETCHECK, 0, 0 ) == BST_CHECKED;
|
||||||
ctrl = GetDlgItem (hDlg, IDC_IWADLIST);
|
ctrl = GetDlgItem (hDlg, IDC_IWADLIST);
|
||||||
EndDialog(hDlg, SendMessage (ctrl, LB_GETCURSEL, 0, 0));
|
EndDialog(hDlg, SendMessage (ctrl, LB_GETCURSEL, 0, 0));
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,7 +158,7 @@
|
||||||
//
|
//
|
||||||
#ifdef APSTUDIO_INVOKED
|
#ifdef APSTUDIO_INVOKED
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 150
|
#define _APS_NEXT_RESOURCE_VALUE 151
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1084
|
#define _APS_NEXT_CONTROL_VALUE 1084
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
|
@ -170,7 +170,8 @@
|
||||||
#define IDC_WELCOME_OPENGL 4020
|
#define IDC_WELCOME_OPENGL 4020
|
||||||
#define IDC_WELCOME_SOFTWARE 4021
|
#define IDC_WELCOME_SOFTWARE 4021
|
||||||
#define IDC_WELCOME_FULLSCREEN 4022
|
#define IDC_WELCOME_FULLSCREEN 4022
|
||||||
#define IDI_ICONST 151
|
|
||||||
|
|
||||||
// [SP] This is our's.
|
// [SP] This is our's.
|
||||||
#define IDC_WELCOME_NOAUTOLOAD 4023
|
#define IDC_WELCOME_NOAUTOLOAD 4023
|
||||||
|
#define IDC_WELCOME_LIGHTS 4024
|
||||||
|
#define IDC_WELCOME_BRIGHTMAPS 4025
|
||||||
|
|
|
@ -120,9 +120,9 @@ BEGIN
|
||||||
IDD_IWADDIALOG, DIALOG
|
IDD_IWADDIALOG, DIALOG
|
||||||
BEGIN
|
BEGIN
|
||||||
LEFTMARGIN, 5
|
LEFTMARGIN, 5
|
||||||
RIGHTMARGIN, 205
|
RIGHTMARGIN, 222
|
||||||
TOPMARGIN, 7
|
TOPMARGIN, 7
|
||||||
BOTTOMMARGIN, 179
|
BOTTOMMARGIN, 242
|
||||||
END
|
END
|
||||||
|
|
||||||
IDD_EAXPROPERTYLIST, DIALOG
|
IDD_EAXPROPERTYLIST, DIALOG
|
||||||
|
@ -237,33 +237,28 @@ END
|
||||||
*/
|
*/
|
||||||
// [SP] Upstreamed from Zandronum
|
// [SP] Upstreamed from Zandronum
|
||||||
IDD_IWADDIALOG DIALOGEX 0, 0, 224, 246
|
IDD_IWADDIALOG DIALOGEX 0, 0, 224, 246
|
||||||
STYLE DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION |
|
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||||
WS_SYSMENU
|
|
||||||
EXSTYLE WS_EX_APPWINDOW
|
EXSTYLE WS_EX_APPWINDOW
|
||||||
CAPTION "Welcome"
|
CAPTION "Welcome"
|
||||||
FONT 8, "MS Shell Dlg", 0, 0, 0x1
|
FONT 8, "MS Shell Dlg", 0, 0, 0x1
|
||||||
BEGIN
|
BEGIN
|
||||||
ICON IDI_ICON1,IDC_STATIC,7,7,32,32
|
ICON IDI_ICON1,IDC_STATIC,7,7,21,20
|
||||||
LTEXT "Welcome to QZDoom!",IDC_STATIC,42,8,180,8
|
LTEXT "Welcome to QZDoom!",IDC_STATIC,42,8,180,8
|
||||||
LTEXT "<Version info>",IDC_WELCOME_VERSION,42,18,180,8
|
LTEXT "<Version info>",IDC_WELCOME_VERSION,42,18,180,8
|
||||||
GROUPBOX "IWAD selection",IDC_STATIC,8,32,224-16,102
|
GROUPBOX "IWAD selection",IDC_STATIC,8,32,208,102
|
||||||
LTEXT "Select which game file (IWAD) to run.", IDC_STATIC,12,32+12,190,8
|
LTEXT "Select which game file (IWAD) to run.",IDC_STATIC,12,44,190,8
|
||||||
LISTBOX IDC_IWADLIST,12,32+24,224-24,72,LBS_NOINTEGRALHEIGHT |
|
LISTBOX IDC_IWADLIST,12,56,200,72,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
|
||||||
WS_VSCROLL | WS_TABSTOP
|
GROUPBOX "Video settings",IDC_STATIC,8,138,208,48
|
||||||
GROUPBOX "Video settings",IDC_STATIC,8,138,224-16,48
|
LTEXT "Choose how QZDoom will render the game.",IDC_STATIC,12,148,190,8
|
||||||
LTEXT "Choose how QZDoom will render the game.", IDC_STATIC,12,148,190,8
|
CONTROL "Hardware (OpenGL)",IDC_WELCOME_OPENGL,"Button",BS_AUTORADIOBUTTON,12,170,93,10
|
||||||
CONTROL "Hardware (OpenGL)",IDC_WELCOME_OPENGL,"Button",
|
CONTROL "Software (Doom)",IDC_WELCOME_SOFTWARE,"Button",BS_AUTORADIOBUTTON,12,160,93,10
|
||||||
BS_AUTORADIOBUTTON,12,170,93,10
|
CONTROL "Fullscreen",IDC_WELCOME_FULLSCREEN,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,124,160,48,10
|
||||||
CONTROL "Software (Doom)",IDC_WELCOME_SOFTWARE,"Button",
|
CONTROL "Disable autoload",IDC_WELCOME_NOAUTOLOAD,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,148,39,65,10
|
||||||
BS_AUTORADIOBUTTON,12,160,93,10
|
CONTROL "Lights.pk3",IDC_WELCOME_LIGHTS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,46,192,51,10
|
||||||
CONTROL "Fullscreen",IDC_WELCOME_FULLSCREEN,"Button",
|
CONTROL "Brightmaps.pk3",IDC_WELCOME_BRIGHTMAPS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,111,192,65,10
|
||||||
BS_AUTOCHECKBOX | WS_TABSTOP, 124,160,48,10
|
CONTROL "Don't ask me this again",IDC_DONTASKIWAD,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,73,211,87,10
|
||||||
CONTROL "Disable autoload",IDC_WELCOME_NOAUTOLOAD,"Button",
|
DEFPUSHBUTTON "Play QZDoom",IDOK,8,228,90,14
|
||||||
BS_AUTOCHECKBOX | WS_TABSTOP,72,192,87,10
|
PUSHBUTTON "Exit",IDCANCEL,166,228,50,14
|
||||||
CONTROL "Don't ask me this again",IDC_DONTASKIWAD,"Button",
|
|
||||||
BS_AUTOCHECKBOX | WS_TABSTOP,72,202,87,10
|
|
||||||
DEFPUSHBUTTON "Play QZDoom",IDOK,8,246-18,90,14
|
|
||||||
PUSHBUTTON "Exit",IDCANCEL,224-58,246-18,50,14
|
|
||||||
END
|
END
|
||||||
|
|
||||||
IDD_EAXPROPERTYLIST DIALOGEX 0, 0, 265, 404
|
IDD_EAXPROPERTYLIST DIALOGEX 0, 0, 265, 404
|
||||||
|
|
Loading…
Reference in a new issue