Navigation Menu

Skip to content

Commit

Permalink
Remove code related to UI.ini
Browse files Browse the repository at this point in the history
We don't use it for anything, we just create it and leave it empty.
  • Loading branch information
JosJuice committed May 2, 2018
1 parent ad09828 commit 6e96f62
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion Source/Core/Common/CommonPaths.h
Expand Up @@ -78,7 +78,6 @@
#define GFX_CONFIG "GFX.ini"
#define DEBUGGER_CONFIG "Debugger.ini"
#define LOGGER_CONFIG "Logger.ini"
#define UI_CONFIG "UI.ini"

// Files in the directory returned by GetUserPath(D_LOGS_IDX)
#define MAIN_LOG "dolphin.log"
Expand Down
6 changes: 3 additions & 3 deletions Source/Core/Common/Config/Config.cpp
Expand Up @@ -88,9 +88,9 @@ void ClearCurrentRunLayer()
}

static const std::map<System, std::string> system_to_name = {
{System::Main, "Dolphin"}, {System::GCPad, "GCPad"}, {System::WiiPad, "Wiimote"},
{System::GCKeyboard, "GCKeyboard"}, {System::GFX, "Graphics"}, {System::Logger, "Logger"},
{System::Debugger, "Debugger"}, {System::UI, "UI"}, {System::SYSCONF, "SYSCONF"}};
{System::Main, "Dolphin"}, {System::GCPad, "GCPad"}, {System::WiiPad, "Wiimote"},
{System::GCKeyboard, "GCKeyboard"}, {System::GFX, "Graphics"}, {System::Logger, "Logger"},
{System::Debugger, "Debugger"}, {System::SYSCONF, "SYSCONF"}};

const std::string& GetSystemName(System system)
{
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Common/Config/Enums.h
Expand Up @@ -30,7 +30,6 @@ enum class System
GFX,
Logger,
Debugger,
UI,
};

constexpr std::array<LayerType, 7> SEARCH_ORDER{{
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/Common/FileUtil.cpp
Expand Up @@ -779,7 +779,6 @@ static void RebuildUserDirectories(unsigned int dir_index)
s_user_paths[F_GFXCONFIG_IDX] = s_user_paths[D_CONFIG_IDX] + GFX_CONFIG;
s_user_paths[F_DEBUGGERCONFIG_IDX] = s_user_paths[D_CONFIG_IDX] + DEBUGGER_CONFIG;
s_user_paths[F_LOGGERCONFIG_IDX] = s_user_paths[D_CONFIG_IDX] + LOGGER_CONFIG;
s_user_paths[F_UICONFIG_IDX] = s_user_paths[D_CONFIG_IDX] + UI_CONFIG;
s_user_paths[F_MAINLOG_IDX] = s_user_paths[D_LOGS_IDX] + MAIN_LOG;
s_user_paths[F_RAMDUMP_IDX] = s_user_paths[D_DUMP_IDX] + RAM_DUMP;
s_user_paths[F_ARAMDUMP_IDX] = s_user_paths[D_DUMP_IDX] + ARAM_DUMP;
Expand All @@ -805,7 +804,6 @@ static void RebuildUserDirectories(unsigned int dir_index)
s_user_paths[F_GFXCONFIG_IDX] = s_user_paths[D_CONFIG_IDX] + GFX_CONFIG;
s_user_paths[F_DEBUGGERCONFIG_IDX] = s_user_paths[D_CONFIG_IDX] + DEBUGGER_CONFIG;
s_user_paths[F_LOGGERCONFIG_IDX] = s_user_paths[D_CONFIG_IDX] + LOGGER_CONFIG;
s_user_paths[F_UICONFIG_IDX] = s_user_paths[D_CONFIG_IDX] + UI_CONFIG;
break;

case D_CACHE_IDX:
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Common/FileUtil.h
Expand Up @@ -55,7 +55,6 @@ enum
F_GFXCONFIG_IDX,
F_DEBUGGERCONFIG_IDX,
F_LOGGERCONFIG_IDX,
F_UICONFIG_IDX,
F_MAINLOG_IDX,
F_RAMDUMP_IDX,
F_ARAMDUMP_IDX,
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Core/ConfigLoaders/BaseConfigLoader.cpp
Expand Up @@ -71,7 +71,6 @@ const std::map<Config::System, int> system_to_ini = {
{Config::System::GFX, F_GFXCONFIG_IDX},
{Config::System::Logger, F_LOGGERCONFIG_IDX},
{Config::System::Debugger, F_DEBUGGERCONFIG_IDX},
{Config::System::UI, F_UICONFIG_IDX},
};

// INI layer configuration loader
Expand Down

0 comments on commit 6e96f62

Please sign in to comment.