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
1da4707f
Commit
1da4707f
authored
Feb 14, 2001
by
Morten Welinder
Committed by
Alexandre Julliard
Feb 14, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output the right number of backslashes in values.
parent
0124576c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
wineconf
tools/wineconf
+17
-10
No files found.
tools/wineconf
View file @
1da4707f
...
...
@@ -191,12 +191,12 @@ sub FindWindowsDir {
}
$::windir
=
&
ToDos
(
dirname
(
$winini
));
print
"[wine]\n"
;
print
"\"windows\" =
\"$::windir\
"\n"
;
print
"\"windows\" =
"
,
&
marshall
(
$::windir
),
"\n"
;
if
(
$::opt_sysdir
)
{
print
"\"system\" =
\"$::opt_sysdir\
"\n"
;
print
"\"system\" =
"
,
&
marshall
(
$::opt_sysdir
),
"\n"
;
}
else
{
print
"\"system\" =
\"$::windir\\SYSTEM\
"\n"
;
print
"\"system\" =
"
,
&
marshall
(
"$::windir\\SYSTEM"
),
"\n"
;
}
}
...
...
@@ -306,7 +306,7 @@ sub ReadAutoexecBat {
warn
"exist\n"
;
}
}
print
"\"path\" =
\""
.
join
(
";"
,
@::DOSpathlist
)
.
"\
"\n"
;
print
"\"path\" =
"
,
&
marshall
(
join
(
";"
,
@::DOSpathlist
)),
"\n"
;
}
else
{
# Code status: tested 1.4
...
...
@@ -326,15 +326,15 @@ sub ReadAutoexecBat {
$command
=~
s%[^/]+$%%
;
$::DOSexecdir
{
&
ToDos
(
$command
)}
++
;
}
print
"\"path\" =
\""
.
join
(
";"
,
print
"\"path\" =
"
.
&
marshall
(
join
(
";"
,
grep
(
s%\\$%%
,
sort
{
$::DOSexecdir
{
$b
}
<=>
$::DOSexecdir
{
$a
}}
(
keys
%::
DOSexecdir
)))
.
"\
"\n"
;
(
keys
%::
DOSexecdir
))))
.
"\n"
;
}
if
(
$::DOSenv
{
"temp"
}
&&
-
d
&
ToUnix
(
$::DOSenv
{
"temp"
}))
{
print
"\"temp\" =
\""
.
$::DOSenv
{
"temp"
}
.
"\
"\n"
;
print
"\"temp\" =
"
,
&
marshall
(
$::DOSenv
{
"temp"
}),
"\n"
;
}
else
{
my
$TheTemp
;
...
...
@@ -351,11 +351,11 @@ sub ReadAutoexecBat {
$TheTemp
=
'/tmp'
if
(
!
$TheTemp
&&
-
d
'/tmp'
);
if
(
$TheTemp
)
{
warn
"Using $TheTemp\n"
;
print
"\"temp\" =
\"$TheTemp\
"\n"
;
print
"\"temp\" =
"
,
&
marshall
(
$TheTemp
),
"\n"
;
}
else
{
warn
"Using C:\\\n"
;
print
"\"temp\" =
\"C:\\\
"\n"
;
print
"\"temp\" =
"
,
&
marshall
(
"C:\\"
),
"\n"
;
}
}
print
"\n"
;
...
...
@@ -427,6 +427,13 @@ sub InsertDefaultFile {
}
}
sub
marshall
{
my
(
$s
)
=
@_
;
$s
=~
s/\\/\\\\/g
;
return
"\"$s\""
;
}
sub
StandardStuff
{
if
(
!
$::opt_inifile
)
{
&
InsertDefaultFile
(
"./wine.ini"
,
"wineconf"
);
...
...
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