1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 01:07:57 +00:00

find_file to find files in HYPERPATH

This commit is contained in:
Zeno Rogue
2022-08-26 12:23:58 +02:00
parent 7be773ea03
commit 31b2bd9690
4 changed files with 21 additions and 4 deletions

View File

@@ -28,6 +28,10 @@ struct textureinfo : basic_textureinfo {
};
#endif
#if HDR
string find_file(string s);
#endif
EX namespace texture {
#if HDR
@@ -120,8 +124,8 @@ struct texture_config {
texture_config() {
// argh, no member initialization in some of my compilers
texturename = "textures/hyperrogue-texture.png";
configname = "textures/hyperrogue.txc";
texturename = find_file("textures/hyperrogue-texture.png");
configname = find_file("textures/hyperrogue.txc");
itt = Id;
grid_color = 0;
mesh_color = 0;