From 787002ec11bf41bba01b899c53a38830768fc260 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 25 Oct 2010 12:40:53 +0000 Subject: directory prefix is no required for ini files, merge ui.ini and menu.ini --- src/client/client.cc | 5 ----- src/client/video.cc | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src/client') diff --git a/src/client/client.cc b/src/client/client.cc index a40023b..318a0d4 100644 --- a/src/client/client.cc +++ b/src/client/client.cc @@ -415,13 +415,10 @@ void Client::func_list_ui(std::string const &args) void Client::func_ui_restart(std::string const &args) { if (ui::root()) { - ui::root()->load_menus(); ui::root()->load_settings(); - ui::root()->apply_render_options(); } } - void Client::func_ui_console(std::string const &args) { ui::console()->toggle(); @@ -469,9 +466,7 @@ void Client::func_ui(std::string const &args) } else if (command.compare("visible") == 0) { ui::root()->list_visible(); } else if (command.compare("restart") == 0) { - ui::root()->load_menus(); ui::root()->load_settings(); - ui::root()->apply_render_options(); } else { func_ui_help(); } diff --git a/src/client/video.cc b/src/client/video.cc index 5610f36..cd675f7 100644 --- a/src/client/video.cc +++ b/src/client/video.cc @@ -200,7 +200,7 @@ bool init() render::init(width, height); // apply render options - ui::root()->apply_render_options(); + ui::root()->load_settings(); // initialize target drawer targets::init(); -- cgit v1.2.3