Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
wine
wine-winehq
Commits
fc0061f8
Commit
fc0061f8
authored
Feb 14, 2005
by
Michael Jung
Committed by
Alexandre Julliard
Feb 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for command line parameter '/D' to do drive detection
from wineprefixcreate.
parent
6c152520
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
main.c
programs/winecfg/main.c
+30
-1
No files found.
programs/winecfg/main.c
View file @
fc0061f8
...
@@ -190,6 +190,32 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
...
@@ -190,6 +190,32 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
return
PropertySheet
(
&
psh
);
return
PropertySheet
(
&
psh
);
}
}
/******************************************************************************
* Name : ProcessCmdLine
* Description: Checks command line parameters for 'autodetect drives' option
* Parameters : lpCmdLine - the command line
* Returns : TRUE - if '/D' was found. Drive autodetection was carried out.
* FALSE - no '/D' option found in command line
* Notes : This is a very simple implementation, which only works
* correctly if the one and only cmd line option is '/D' or
* no option at all. Has to be reworked, if more options are to
* be supported.
*/
BOOL
ProcessCmdLine
(
LPSTR
lpCmdLine
)
{
if
((
lpCmdLine
[
0
]
==
'/'
||
lpCmdLine
[
0
]
==
'-'
)
&&
(
lpCmdLine
[
1
]
==
'D'
||
lpCmdLine
[
1
]
==
'd'
))
{
gui_mode
=
FALSE
;
if
(
autodetect_drives
())
{
apply_drive_changes
();
}
return
TRUE
;
}
return
FALSE
;
}
/*****************************************************************************
/*****************************************************************************
* Name : WinMain
* Name : WinMain
...
@@ -203,7 +229,10 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
...
@@ -203,7 +229,10 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
int
WINAPI
int
WINAPI
WinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hPrev
,
LPSTR
szCmdLine
,
int
nShow
)
WinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hPrev
,
LPSTR
szCmdLine
,
int
nShow
)
{
{
if
(
ProcessCmdLine
(
szCmdLine
))
{
return
0
;
}
/* Until winecfg is fully functional, warn users that it is incomplete and doesn't do anything */
/* Until winecfg is fully functional, warn users that it is incomplete and doesn't do anything */
if
(
!
getenv
(
"WINECFG_NOWARN"
))
{
if
(
!
getenv
(
"WINECFG_NOWARN"
))
{
WINE_FIXME
(
"The winecfg tool is not yet complete, and does not actually alter your configuration.
\n
"
);
WINE_FIXME
(
"The winecfg tool is not yet complete, and does not actually alter your configuration.
\n
"
);
...
...
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