ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC.pm (file contents):
Revision 1.188 by root, Tue Sep 2 16:27:34 2008 UTC vs.
Revision 1.189 by root, Tue Sep 2 16:50:06 2008 UTC

145 print $msg, "\n"; 145 print $msg, "\n";
146} 146}
147 147
148package DC; 148package DC;
149 149
150our $RC_THEME = "theme-metal"; 150our @RC_THEME = ("theme-plain", ".");
151our $RC_BASE; 151our $RC_BASE;
152 152
153for (grep !ref, @INC) { 153for (grep !ref, @INC) {
154 $RC_BASE = "$_/Deliantra/Client/private/resources"; 154 $RC_BASE = "$_/Deliantra/Client/private/resources";
155 last if -d $RC_BASE; 155 last if -d $RC_BASE;
156} 156}
157 157
158sub find_rcfile($) { 158sub find_rcfile($) {
159 my $path; 159 my $path;
160 160
161 for (@RC_THEME) {
161 $path = "$RC_BASE/$RC_THEME/$_[0]"; 162 $path = "$RC_BASE/$_/$_[0]";
162 return $path if -r $path; 163 return $path if -r $path;
163 164 }
164 $path = "$RC_BASE/$_[0]";
165 return $path if -r $path;
166 165
167 die "FATAL: can't find required file \"$_[0]\" in \"$RC_BASE\"\n"; 166 die "FATAL: can't find required file \"$_[0]\" in \"$RC_BASE\"\n";
168} 167}
169 168
170sub read_cfg { 169sub read_cfg {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines