shadowm

Untitled

Sep 22nd, 2011
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.95 KB | None | 0 0
  1. diff --git a/src/game_controller.cpp b/src/game_controller.cpp
  2. index 95ba648..9e5848b 100644
  3. --- a/src/game_controller.cpp
  4. +++ b/src/game_controller.cpp
  5. @@ -1228,6 +1228,8 @@ void game_controller::load_game_cfg(const bool force)
  6.  
  7.         ::init_strings(game_config());
  8.  
  9. +       theme::set_known_themes(&game_config());
  10. +
  11.     } catch(game::error& e) {
  12.         ERR_CONFIG << "Error loading game configuration files\n";
  13.         gui2::show_error_message(disp().video(), _("Error loading game configuration files: '") +
  14. diff --git a/src/play_controller.cpp b/src/play_controller.cpp
  15. index fef5073..65f60b4 100644
  16. --- a/src/play_controller.cpp
  17. +++ b/src/play_controller.cpp
  18. @@ -245,7 +245,6 @@ void play_controller::init(CVideo& video){
  19.     mouse_handler_.set_gui(gui_.get());
  20.     menu_handler_.set_gui(gui_.get());
  21.     resources::screen = gui_.get();
  22. -   theme::set_known_themes(&game_config_);
  23.  
  24.     LOG_NG << "done initializing display... " << (SDL_GetTicks() - ticks_) << "\n";
Advertisement
Add Comment
Please, Sign In to add comment