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

the documentation.
oldstable
Tony Lambregts 2003-02-12 01:12:18 +00:00 committed by Alexandre Julliard
parent f21887f431
commit 816c86c407
2 changed files with 4 additions and 4 deletions

View File

@ -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
;[AppDefaults\\pickygame.exe\\dsound] ;[AppDefaults\\pickygame.exe\\dsound]
;"EmulDriver" = "N" ;"EmulDriver" = "N"
# </wineconf> # [/wineconf]

View File

@ -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 {