Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aleksandr Isakov
wine-fonts
Commits
20b2e353
Commit
20b2e353
authored
May 30, 2015
by
Sebastian Lackner
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Add checkbox to enable/disable HideWineExports registry key.
parent
7d7cda5c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
resource.h
programs/winecfg/resource.h
+1
-0
staging.c
programs/winecfg/staging.c
+22
-0
winecfg.rc
programs/winecfg/winecfg.rc
+1
-0
No files found.
programs/winecfg/resource.h
View file @
20b2e353
...
...
@@ -216,6 +216,7 @@
#define IDC_ENABLE_CSMT 9001
#define IDC_ENABLE_VAAPI 9002
#define IDC_ENABLE_EAX 9003
#define IDC_ENABLE_HIDEWINE 9004
/* About tab */
#define IDC_ABT_OWNER 8432
...
...
programs/winecfg/staging.c
View file @
20b2e353
...
...
@@ -74,11 +74,29 @@ static void eax_set(BOOL status)
set_reg_key
(
config_key
,
keypath
(
L"DirectSound"
),
L"EAXEnabled"
,
status
?
L"Y"
:
L"N"
);
}
/*
* Hide Wine exports from applications
*/
static
BOOL
hidewine_get
(
void
)
{
BOOL
ret
;
WCHAR
*
value
=
get_reg_key
(
config_key
,
keypath
(
L""
),
L"HideWineExports"
,
L"N"
);
ret
=
IS_OPTION_TRUE
(
*
value
);
HeapFree
(
GetProcessHeap
(),
0
,
value
);
return
ret
;
}
static
void
hidewine_set
(
BOOL
status
)
{
set_reg_key
(
config_key
,
keypath
(
L""
),
L"HideWineExports"
,
status
?
L"Y"
:
L"N"
);
}
static
void
load_staging_settings
(
HWND
dialog
)
{
CheckDlgButton
(
dialog
,
IDC_ENABLE_CSMT
,
csmt_get
()
?
BST_CHECKED
:
BST_UNCHECKED
);
CheckDlgButton
(
dialog
,
IDC_ENABLE_VAAPI
,
vaapi_get
()
?
BST_CHECKED
:
BST_UNCHECKED
);
CheckDlgButton
(
dialog
,
IDC_ENABLE_EAX
,
eax_get
()
?
BST_CHECKED
:
BST_UNCHECKED
);
CheckDlgButton
(
dialog
,
IDC_ENABLE_HIDEWINE
,
hidewine_get
()
?
BST_CHECKED
:
BST_UNCHECKED
);
}
INT_PTR
CALLBACK
StagingDlgProc
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
...
...
@@ -116,6 +134,10 @@ INT_PTR CALLBACK StagingDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
eax_set
(
IsDlgButtonChecked
(
hDlg
,
IDC_ENABLE_EAX
)
==
BST_CHECKED
);
SendMessageW
(
GetParent
(
hDlg
),
PSM_CHANGED
,
0
,
0
);
return
TRUE
;
case
IDC_ENABLE_HIDEWINE
:
hidewine_set
(
IsDlgButtonChecked
(
hDlg
,
IDC_ENABLE_HIDEWINE
)
==
BST_CHECKED
);
SendMessageW
(
GetParent
(
hDlg
),
PSM_CHANGED
,
0
,
0
);
return
TRUE
;
}
break
;
}
...
...
programs/winecfg/winecfg.rc
View file @
20b2e353
...
...
@@ -320,6 +320,7 @@ BEGIN
CONTROL "Enable &CSMT for better graphic performance (deprecated)",IDC_ENABLE_CSMT,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,40,230,8
CONTROL "Enable &VAAPI as backend for DXVA2 GPU decoding",IDC_ENABLE_VAAPI,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,55,230,8
CONTROL "Enable Environmental Audio E&xtensions (EAX)",IDC_ENABLE_EAX,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,70,230,8
CONTROL "&Hide Wine version from applications",IDC_ENABLE_HIDEWINE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,85,230,8
END
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment