AIO: Merge Vista/7/10, don't delete existing config when updating
This commit is contained in:
@@ -927,10 +927,15 @@ public:
|
||||
int width = GetPrivateProfileIntW(_iniSectionName, _iniVarName, -39, _iniFilePath);
|
||||
int height = GetPrivateProfileIntW(_iniSectionName, _iniVarName2, -39, _iniFilePath);
|
||||
if (width == -39 || height == -39) {
|
||||
tempSysStr = Convert::ToInt32(_defaultVal.width).ToString() + L"x" + Convert::ToInt32(_defaultVal.height).ToString();
|
||||
combobox->Text = tempSysStr;
|
||||
if (_defaultVal.width == -1 || _defaultVal.height == -1)
|
||||
width = -1;
|
||||
else
|
||||
{
|
||||
tempSysStr = Convert::ToInt32(_defaultVal.width).ToString() + L"x" + Convert::ToInt32(_defaultVal.height).ToString();
|
||||
combobox->Text = tempSysStr;
|
||||
}
|
||||
}
|
||||
else if (width == -1 || height == -1) { // -1 -> Match window/screen
|
||||
if (width == -1 || height == -1) { // -1 -> Match window/screen
|
||||
if (_opts & RESOPT_INCLUDE_MATCH_WINDOW)
|
||||
combobox->Text = RESOPT_MATCH_WINDOW_TEXT;
|
||||
else if (_opts & RESOPT_INCLUDE_MATCH_SCREEN)
|
||||
|
||||
@@ -273,9 +273,7 @@ ConfigOptionBase* componentsArray[] = {
|
||||
|
||||
new BooleanOption(L"player_data_manager", COMPONENTS_SECTION, COMPONENTS_FILE, L"Player Data Manager", L"Loads user-defined values into the PlayerData struct.\nRequired for modules and game mode modifiers.", false, true),
|
||||
|
||||
new BooleanOption(L"frame_rate_manager", COMPONENTS_SECTION, COMPONENTS_FILE, L"Frame Rate Manager", L"Adjusts animations to the correct speed at different frame rates.\nOnly needed when FPS isn't locket at 60.", false, true),
|
||||
|
||||
new BooleanOption(L"stage_manager", COMPONENTS_SECTION, COMPONENTS_FILE, L"Stage Manager", L"Allows for playing unlimited songs per session.", false, true),
|
||||
new BooleanOption(L"frame_rate_manager", COMPONENTS_SECTION, COMPONENTS_FILE, L"Frame Rate Manager", L"Adjusts animations to the correct speed at different frame rates.\nOnly needed when FPS isn't locked at 60.", false, true),
|
||||
|
||||
new BooleanOption(L"fast_loader", COMPONENTS_SECTION, COMPONENTS_FILE, L"Fast Loader", L"Skip or speed up unnecessary loading steps.", false, true),
|
||||
|
||||
|
||||
@@ -33,17 +33,18 @@ namespace Launcher {
|
||||
this->ClientSize = Drawing::Size(444, 323);
|
||||
TabPadding^ tabpad = gcnew TabPadding(tabControl);
|
||||
|
||||
|
||||
// if components.ini has no section name, add one
|
||||
if (!IsLineInFile("[components]", COMPONENTS_FILE))
|
||||
{
|
||||
PrependFile("[components]\n", COMPONENTS_FILE);
|
||||
*ComponentsConfigChanged = true;
|
||||
}
|
||||
|
||||
// if playerdata.ini has no section name, add one
|
||||
if (!IsLineInFile("[playerdata]", PLAYERDATA_FILE))
|
||||
{
|
||||
PrependFile("[playerdata]\n", PLAYERDATA_FILE);
|
||||
*PlayerdataConfigChanged = true;
|
||||
}
|
||||
|
||||
// if keyconfig.ini has no section name, add one
|
||||
|
||||
Reference in New Issue
Block a user