minetest / minetestmapper

Generates a overview image of a minetest map.
BSD 2-Clause "Simplified" License
112 stars 40 forks source link

Determine world backend automatically #6

Closed ghost closed 10 years ago

ghost commented 10 years ago

It would be nice if the program used the world's "world.mt" to get the necessary information, rather than requiring user to specify it.

ShadowNinja commented 10 years ago

This would make it harder to test back-ends, so a command-line override should still be available.

rdnuk commented 10 years ago

todo this all we would need to do is read variable "backend = leveldb" in the world.mt file from the world folder.. that would determine what backend it uses? if im not mistaken?

rdnuk commented 10 years ago

sorry im half asleep, didnt read the op post correctly lol he already siad that haha, but yeah i think... it should auto detect by default, then use the existing option for overriding it.