Modify the wineconf tags so that the sample config can be included in
the documentation.
This commit is contained in:
parent
f21887f431
commit
816c86c407
|
@ -67,7 +67,7 @@ WINE REGISTRY Version 2
|
|||
;"ShowDotFiles" = "1"
|
||||
"ShellLinker" = "wineshelllink"
|
||||
|
||||
# <wineconf>
|
||||
# [wineconf]
|
||||
|
||||
[Version]
|
||||
; 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]
|
||||
;"EmulDriver" = "N"
|
||||
|
||||
# </wineconf>
|
||||
# [/wineconf]
|
||||
|
|
|
@ -437,9 +437,9 @@ sub InsertDefaultFile {
|
|||
|
||||
if (open(DEFFILE, "$fileName")) {
|
||||
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);
|
||||
$state = 1 if ($state == 0 && $_ =~ /^[ \t]*\#/o && index($_, "<$tag>" ) >= 0);
|
||||
$state = 1 if ($state == 0 && $_ =~ /^[ \t]*\#/o && index($_, "[$tag]" ) >= 0);
|
||||
}
|
||||
close(DEFFILE);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue