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
+1
View File
@@ -911,6 +911,7 @@ EX namespace reg3 {
void load_ruleset(string fname) {
FILE *f = fopen(fname.c_str(), "rb");
if(!f) f = fopen((rsrcdir + fname).c_str(), "rb");
string buf;
buf.resize(1000000);
int qty = fread(&buf[0], 1, 1000000, f);