Patch Notes: -Added Wireless ADB that persists when PC is rebooted or ADB.exe is closed, does not persist on Android Device reboot. Either keep on charge or wake then put back on hold before sideloading. Set DHCP assigned IP for best results. -Fixed Install.txt automation to make Manual installs automatic(ask for BMBF tester if interested, will be functional when official repo is updated.) -Added QU Settings for their newest patch method. Can be found under Quest Options, this will allow you to change settings for any games that include "-QU" in the version/filename. Click Enable box to reveal the options. NOTE: Clicking enable again will remove the settings file, if you re-enable you MUST click apply again for it to work. -QU Settings are applied automatically via any games Downloaded/Installed via Rookie as long as they have been enabled and applied in Quest Options. -They can also be applied by selecting the game you wish to add them to in the menu at the top of RSL in the main window, the same list used to uninstall games, then clicking on Install QU Setting. -To remove a setting for a game, select it from the same menu and click Remove QU Setting. -If you click Delete Custom Settings in Quest Options it will not delete any games installed while it was enabled, you must do this with the previously mentioned Remove QU Setting option. -Clear Settings just clears the values entered in the fields. -Settings entered into those fields will persist between instances of RSL. -Added Enable Wireless ADB and Remove Wireless ADB to main menu. -Added ">" symbols on collapsible and expandable menu items to let user know they can be expanded/collapsed. -"Hand/Finger pointer" symbol added above clickable main menu buttons to let user know they're clickable. -Added logic to allow entire list to load and compare installed versions with Rclone versions before populating and added informative text of this step to the bottom/title bar. -Probably some other things I am forgetting.
101 lines
4.1 KiB
C#
101 lines
4.1 KiB
C#
using JR.Utils.GUI.Forms;
|
|
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace AndroidSideloader
|
|
{
|
|
public partial class SettingsForm : Form
|
|
{
|
|
public SettingsForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void SettingsForm_Load(object sender, EventArgs e)
|
|
{
|
|
this.CenterToParent();
|
|
|
|
intSettings();
|
|
|
|
intToolTips();
|
|
}
|
|
|
|
//Init form objects with values from settings
|
|
private void intSettings()
|
|
{
|
|
checkForUpdatesCheckBox.Checked = Properties.Settings.Default.checkForUpdates;
|
|
enableMessageBoxesCheckBox.Checked = Properties.Settings.Default.enableMessageBoxes;
|
|
deleteAfterInstallCheckBox.Checked = Properties.Settings.Default.deleteAllAfterInstall;
|
|
updateConfigCheckBox.Checked = Properties.Settings.Default.autoUpdateConfig;
|
|
userJsonOnGameInstall.Checked = Properties.Settings.Default.userJsonOnGameInstall;
|
|
if (Properties.Settings.Default.BandwithLimit.Length>1)
|
|
{
|
|
BandwithTextbox.Text = Properties.Settings.Default.BandwithLimit.Remove(Properties.Settings.Default.BandwithLimit.Length - 1);
|
|
BandwithComboBox.Text = Properties.Settings.Default.BandwithLimit[Properties.Settings.Default.BandwithLimit.Length-1].ToString();
|
|
}
|
|
|
|
}
|
|
|
|
void intToolTips()
|
|
{
|
|
ToolTip checkForUpdatesToolTip = new ToolTip();
|
|
checkForUpdatesToolTip.SetToolTip(this.checkForUpdatesCheckBox, "If this is checked, the software will check for available updates");
|
|
ToolTip enableMessageBoxesToolTip = new ToolTip();
|
|
enableMessageBoxesToolTip.SetToolTip(this.enableMessageBoxesCheckBox, "If this is checked, the software will display message boxes after every completed task");
|
|
ToolTip deleteAfterInstallToolTip = new ToolTip();
|
|
deleteAfterInstallToolTip.SetToolTip(this.deleteAfterInstallCheckBox, "If this is checked, the software will delete all game files after downloading and installing a game from a remote server");
|
|
}
|
|
|
|
//Apply settings
|
|
private void applyButton_Click(object sender, EventArgs e)
|
|
{
|
|
if (BandwithTextbox.Text.Length > 0 && BandwithTextbox.Text != "0")
|
|
if (BandwithComboBox.SelectedIndex == -1)
|
|
{
|
|
FlexibleMessageBox.Show("You need to select something from the combobox");
|
|
return;
|
|
}
|
|
else
|
|
{
|
|
Properties.Settings.Default.BandwithLimit = $"{BandwithTextbox.Text.Replace(" ", "")}{BandwithComboBox.Text}";
|
|
}
|
|
else
|
|
Properties.Settings.Default.BandwithLimit = "";
|
|
|
|
Properties.Settings.Default.Save();
|
|
FlexibleMessageBox.Show("Settings applied!");
|
|
}
|
|
|
|
private void checkForUpdatesCheckBox_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
Properties.Settings.Default.checkForUpdates = checkForUpdatesCheckBox.Checked;
|
|
}
|
|
|
|
private void enableMessageBoxesCheckBox_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
Properties.Settings.Default.enableMessageBoxes = enableMessageBoxesCheckBox.Checked;
|
|
}
|
|
|
|
private void resetSettingsButton_Click(object sender, EventArgs e)
|
|
{
|
|
Properties.Settings.Default.Reset();
|
|
intSettings();
|
|
}
|
|
|
|
private void deleteAfterInstallCheckBox_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
Properties.Settings.Default.deleteAllAfterInstall = deleteAfterInstallCheckBox.Checked;
|
|
}
|
|
|
|
private void updateConfigCheckBox_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
Properties.Settings.Default.autoUpdateConfig = updateConfigCheckBox.Checked;
|
|
}
|
|
|
|
private void userJsonOnGameInstall_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
Properties.Settings.Default.userJsonOnGameInstall = userJsonOnGameInstall.Checked;
|
|
}
|
|
}
|
|
}
|