Commit 816c86c4 authored by Tony Lambregts's avatar Tony Lambregts Committed by Alexandre Julliard

Modify the wineconf tags so that the sample config can be included in

the documentation.
parent f21887f4
...@@ -67,7 +67,7 @@ WINE REGISTRY Version 2 ...@@ -67,7 +67,7 @@ WINE REGISTRY Version 2
;"ShowDotFiles" = "1" ;"ShowDotFiles" = "1"
"ShellLinker" = "wineshelllink" "ShellLinker" = "wineshelllink"
# <wineconf> # [wineconf]
[Version] [Version]
; Windows version to imitate (win95,win98,winme,nt351,nt40,win2k,winxp,win20,win30,win31) ; Windows version to imitate (win95,win98,winme,nt351,nt40,win2k,winxp,win20,win30,win31)
...@@ -313,4 +313,4 @@ WINE REGISTRY Version 2 ...@@ -313,4 +313,4 @@ WINE REGISTRY Version 2
;[AppDefaults\\pickygame.exe\\dsound] ;[AppDefaults\\pickygame.exe\\dsound]
;"EmulDriver" = "N" ;"EmulDriver" = "N"
# </wineconf> # [/wineconf]
...@@ -437,9 +437,9 @@ sub InsertDefaultFile { ...@@ -437,9 +437,9 @@ sub InsertDefaultFile {
if (open(DEFFILE, "$fileName")) { if (open(DEFFILE, "$fileName")) {
while (<DEFFILE>) { while (<DEFFILE>) {
$state = 0 if ($state == 1 && $_ =~ /^[ \t]*\#/o && index($_, "</$tag>") >= 0); $state = 0 if ($state == 1 && $_ =~ /^[ \t]*\#/o && index($_, "[/$tag]") >= 0);
print $_ if ($state == 1); print $_ if ($state == 1);
$state = 1 if ($state == 0 && $_ =~ /^[ \t]*\#/o && index($_, "<$tag>" ) >= 0); $state = 1 if ($state == 0 && $_ =~ /^[ \t]*\#/o && index($_, "[$tag]" ) >= 0);
} }
close(DEFFILE); close(DEFFILE);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment