Changeset 3348 for code/branches/resource/src
- Timestamp:
- Jul 25, 2009, 1:14:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/core/Core.cc
r3345 r3348 142 142 .callback(this, &CoreConfiguration::initializeRandomNumberGenerator); 143 143 144 SetConfigValue(mediaPathString_, mediaPath_.string()) 145 .description("Relative path to the game data.") 146 .callback(this, &CoreConfiguration::mediaPathChanged); 144 // Only show this config value for development builds 145 if (Core::isDevelopmentRun()) 146 { 147 SetConfigValue(mediaPathString_, mediaPath_.string()) 148 .description("Relative path to the game data.") 149 .callback(this, &CoreConfiguration::mediaPathChanged); 150 } 147 151 } 148 152 … … 199 203 void tsetMediaPath(const std::string& path) 200 204 { 201 ModifyConfigValue(mediaPathString_, tset, path); 205 if (Core::isDevelopmentRun()) 206 { 207 ModifyConfigValue(mediaPathString_, tset, path); 208 } 209 else 210 { 211 // Manual 'config' value without the file entry 212 mediaPathString_ = path; 213 this->mediaPathChanged(); 214 } 202 215 } 203 216
Note: See TracChangeset
for help on using the changeset viewer.