Commits

Karl Stiefvater (qarl)  committed 731a609

EXT-7910 allow GPU and feature table to load from a custom location

  • Participants
  • Parent commits ff57872

Comments (0)

Files changed (2)

File indra/newview/app_settings/settings.xml

         <key>Value</key>
         <integer>0</integer>
     </map>
+	<key>FeatureManagerHTTPTable</key>
+      <map>
+        <key>Comment</key>
+        <string>Base directory for HTTP feature/gpu table fetches</string>
+        <key>Persist</key>
+        <integer>1</integer>
+        <key>Type</key>
+        <string>String</string>
+        <key>Value</key>
+        <string>http://viewer-settings.secondlife.com</string>
+    </map>
     <key>FPSLogFrequency</key>
     <map>
       <key>Comment</key>

File indra/newview/llfeaturemanager.cpp

 
 void fetch_table(std::string table)
 {
-	const std::string base       = "http://viewer-settings.s3.amazonaws.com/";
+	const std::string base       = gSavedSettings.getString("FeatureManagerHTTPTable");
 
 	const std::string filename   = llformat(table.c_str(), LLVersionInfo::getVersion().c_str());
 
-	const std::string url        = base + filename;
+	const std::string url        = base + "/" + filename;
 
 	const std::string path       = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, filename);