mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-14 13:14:08 +00:00
ads-game:: do not crash if list missing
This commit is contained in:
parent
01c7ff5bc6
commit
553bd8f466
@ -27,6 +27,7 @@ void init_textures() {
|
|||||||
earth_textures.clear();
|
earth_textures.clear();
|
||||||
string dir = "ds-images/";
|
string dir = "ds-images/";
|
||||||
fhstream f(dir + "list.txt", "rt");
|
fhstream f(dir + "list.txt", "rt");
|
||||||
|
if(!f.f) return;
|
||||||
string cur_copyright = "";
|
string cur_copyright = "";
|
||||||
while(!feof(f.f)) {
|
while(!feof(f.f)) {
|
||||||
string s = scanline_noblank(f);
|
string s = scanline_noblank(f);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user