goat3dgfx
diff src/dataset.inl @ 5:18879c956eb1
- skycube example
- added fatal_log
- changed the dataset to keep the whole path while searching for data files
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 17 Nov 2013 03:22:40 +0200 |
parents | 1873dfd13f2d |
children | 7d6b667821cf |
line diff
1.1 --- a/src/dataset.inl Sat Nov 16 21:09:42 2013 +0200 1.2 +++ b/src/dataset.inl Sun Nov 17 03:22:40 2013 +0200 1.3 @@ -35,14 +35,7 @@ 1.4 return iter->second; 1.5 } 1.6 1.7 - const char *fname, *slash; 1.8 - if((slash = strrchr(name, '/'))) { 1.9 - fname = slash + 1; 1.10 - } else { 1.11 - fname = name; 1.12 - } 1.13 - 1.14 - std::string path = datafile_path(fname); 1.15 + std::string path = datafile_path(name); 1.16 if(path.empty()) { 1.17 fprintf(stderr, "can't find data file: %s\n", name); 1.18 return 0;