mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-07-01 16:10:23 +02:00
Allow specifying location of colors.txt file
This commit is contained in:
@ -230,9 +230,8 @@ void TileGenerator::parseColorsFile(const std::string &fileName)
|
||||
{
|
||||
ifstream in;
|
||||
in.open(fileName.c_str(), ifstream::in);
|
||||
if (!in.is_open()) {
|
||||
return;
|
||||
}
|
||||
if (!in.is_open())
|
||||
throw std::runtime_error("Specified colors file could not be found.");
|
||||
parseColorsStream(in);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user