Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3348 for code/branches


Ignore:
Timestamp:
Jul 25, 2009, 1:14:30 AM (15 years ago)
Author:
rgrieder
Message:

Fixing a problem for the installed version on windows: Media path is not anymore a config value if you don't start orxonox from the build tree. But you can still temporarily change it or supply a new path as command line argument in any case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource/src/core/Core.cc

    r3345 r3348  
    142142                .callback(this, &CoreConfiguration::initializeRandomNumberGenerator);
    143143
    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            }
    147151        }
    148152
     
    199203        void tsetMediaPath(const std::string& path)
    200204        {
    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            }
    202215        }
    203216
Note: See TracChangeset for help on using the changeset viewer.