Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'generator/generator_tool/generator_tool.cpp')
-rw-r--r--generator/generator_tool/generator_tool.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/generator/generator_tool/generator_tool.cpp b/generator/generator_tool/generator_tool.cpp
index 3224a5b7a0..3008ed9037 100644
--- a/generator/generator_tool/generator_tool.cpp
+++ b/generator/generator_tool/generator_tool.cpp
@@ -80,8 +80,10 @@ int main(int argc, char ** argv)
google::ParseCommandLineFlags(&argc, &argv, true);
+ Platform & pl = GetPlatform();
+
string const path =
- FLAGS_data_path.empty() ? GetPlatform().WritableDir() : AddSlashIfNeeded(FLAGS_data_path);
+ FLAGS_data_path.empty() ? pl.WritableDir() : AddSlashIfNeeded(FLAGS_data_path);
if (FLAGS_version)
{
@@ -115,9 +117,9 @@ int main(int argc, char ** argv)
if (FLAGS_generate_features || FLAGS_generate_geometry ||
FLAGS_generate_index || FLAGS_calc_statistics || FLAGS_dump_types)
{
- classificator::Read(path + "drawing_rules.bin",
- path + "classificator.txt",
- path + "visibility.txt");
+ classificator::Read(pl.GetReader("drawing_rules.bin"),
+ pl.GetReader("classificator.txt"),
+ pl.GetReader("visibility.txt"));
classificator::PrepareForFeatureGeneration();
}