1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-27 03:47:40 +00:00

allow setting the resource dir; autoconf should move *.dat file to resource dir

This commit is contained in:
Zeno Rogue
2020-05-16 01:30:33 +02:00
parent 61e249a3af
commit bf83959b4a
4 changed files with 13 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ EX namespace sn {
void tabled_inverses::load() {
if(loaded) return;
FILE *f = fopen(fname.c_str(), "rb");
// if(!f) f = fopen("/usr/lib/soltable.dat", "rb");
if(!f) f = fopen((rsrcdir + fname).c_str(), "rb");
if(!f) { addMessage(XLAT("geodesic table missing")); pmodel = mdPerspective; return; }
ignore(fread(&PRECX, 4, 1, f));
ignore(fread(&PRECY, 4, 1, f));