find_file to find files in HYPERPATH

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

No files matched your search

+6 -2
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;