132{
133 if(!FileExists(GetExecutableDir() + PATH_SEPARATOR "Data" PATH_SEPARATOR "configs" PATH_SEPARATOR "texture_database_downloaded.terr3d"))
134 {
135 Log("No Textures downloaded yet");
137 }
138
139 bool tmp = false;
140 std::string tmpStr = ReadShaderSourceFile(GetExecutableDir() +
141 PATH_SEPARATOR "Data" PATH_SEPARATOR "configs" PATH_SEPARATOR
142 "texture_database_downloaded.terr3d", &tmp);
143
144 if(tmp == false)
145 {
146 Log("Failed to load downloaded texture database from file");
148 }
149
151
152 try
153 {
155 }
156
158 {
159 Log("Failed to parse downloaded texture database from file");
161 }
162
163 return tmpJ;
164}
static JSON_HEDLEY_WARN_UNUSED_RESULT basic_json parse(InputType &&i, const parser_callback_t cb=nullptr, const bool allow_exceptions=true, const bool ignore_comments=false)
deserialize from a compatible input
a class to store JSON values
exception indicating a parse error
basic_json<> json
default JSON class