mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 18:13:52 +00:00
%final.cfg is working.
This commit is contained in:
parent
21f91b02f3
commit
cd73d3d331
@ -2,12 +2,12 @@
|
||||
{utils/}
|
||||
{misc/} # Note: misc/tips.cfg is wired into the C++.
|
||||
|
||||
# These locations are wired into the C++
|
||||
{fonts.cfg}
|
||||
{english.cfg}
|
||||
{terrain.cfg}
|
||||
{terrain-graphics.cfg}
|
||||
{units.cfg}
|
||||
|
||||
{terrain-graphics/}
|
||||
{units.cfg}
|
||||
{campaigns/}
|
||||
|
||||
[advanced_preference]
|
||||
|
@ -12,8 +12,7 @@
|
||||
# the proper way to calculate the propabilities is described here
|
||||
# http://www.wesnoth.org/wiki/Terrain_Graphics_Probability
|
||||
|
||||
# The following should be kept on top of the file
|
||||
{terrain-graphics}
|
||||
# This file needs to be evaluated after everything else in this directory.
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
# forest/pine<->Castle|Encampment special cases, also used by some other
|
@ -180,7 +180,7 @@ void get_files_in_dir(const std::string& directory,
|
||||
if(!directory.empty() && directory[0] != '/' && !game_config::path.empty()){
|
||||
const std::string& dir = game_config::path + "/" + directory;
|
||||
if(is_directory(dir)) {
|
||||
get_files_in_dir(dir,files,dirs,mode);
|
||||
get_files_in_dir(dir,files,dirs,mode,reorder);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ preprocessor_file::preprocessor_file(preprocessor_streambuf &t, std::string cons
|
||||
: preprocessor(t)
|
||||
{
|
||||
if (is_directory(name))
|
||||
get_files_in_dir(name, &files_, NULL, ENTIRE_FILE_PATH);
|
||||
get_files_in_dir(name, &files_, NULL, ENTIRE_FILE_PATH, DO_REORDER);
|
||||
else
|
||||
new preprocessor_data(t, istream_file(name), "", name, 1, directory_name(name), t.textdomain_);
|
||||
pos_ = files_.begin();
|
||||
|
Loading…
x
Reference in New Issue
Block a user