Search for colors.txt in multiple locations, fixes #27

Locations (in order):
* <world path>/colors.txt
* $HOME/.minetest/colors.txt (Linux only)
* <share dir>/colors.txt (Linux only for now, defaults to /usr/local/share/minetest)
* current directory (<< this is the old behavior)
This commit is contained in:
sfan5
2016-08-09 17:31:56 +02:00
parent 73dab34d7c
commit 6f1b8284f4
3 changed files with 77 additions and 15 deletions

View File

@ -8,5 +8,7 @@
#define USE_CXX11 @USE_CXX11@
#define SHAREDIR "@SHAREDIR@"
#endif