mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-14 09:22:21 +12:00
format all files
This commit is contained in:
parent
688857aea9
commit
89bdd100bb
|
@ -77,7 +77,7 @@ namespace ModAssistant
|
|||
SelectInstalledMods = ModAssistant.Properties.Settings.Default.SelectInstalled;
|
||||
options.ReinstallInstalledMods =
|
||||
ReinstallInstalledMods = ModAssistant.Properties.Settings.Default.ReinstallInstalled;
|
||||
options.CloseWindowOnFinish =
|
||||
options.CloseWindowOnFinish =
|
||||
CloseWindowOnFinish = ModAssistant.Properties.Settings.Default.CloseWindowOnFinish;
|
||||
|
||||
await ArgumentHandler(e.Args);
|
||||
|
@ -209,7 +209,7 @@ namespace ModAssistant
|
|||
{
|
||||
if (places >= array.Length) return Array.Empty<string>();
|
||||
string[] newArray = new string[array.Length - places];
|
||||
for(int i = places; i < array.Length; i++)
|
||||
for (int i = places; i < array.Length; i++)
|
||||
{
|
||||
newArray[i - places] = array[i];
|
||||
}
|
||||
|
|
|
@ -36,11 +36,11 @@ namespace ModAssistant
|
|||
{
|
||||
MessageBox.Show("! " + file);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if (entries.Count > 0)
|
||||
{
|
||||
entries[entries.Count - 1] = entries[entries.Count - 1].Replace("├", "└");
|
||||
}
|
||||
|
||||
return entries.ToArray();
|
||||
}
|
||||
|
|
|
@ -190,7 +190,6 @@ namespace ModAssistant.API
|
|||
{
|
||||
BeatSaverRatelimit ratelimit = new BeatSaverRatelimit();
|
||||
|
||||
|
||||
if (headers.TryGetValues("Rate-Limit-Remaining", out IEnumerable<string> _remaining))
|
||||
{
|
||||
var Remaining = _remaining.GetEnumerator();
|
||||
|
@ -265,7 +264,7 @@ namespace ModAssistant.API
|
|||
public class BeatSaverApiResponse
|
||||
{
|
||||
public HttpStatusCode statusCode { get; set; }
|
||||
public BeatSaverRatelimit ratelimit { get; set;}
|
||||
public BeatSaverRatelimit ratelimit { get; set; }
|
||||
public BeatSaverApiResponseMap map { get; set; }
|
||||
}
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ namespace ModAssistant.API
|
|||
{
|
||||
return $" {string.Concat(Enumerable.Repeat("▒", 10))} [{value}/{max}]";
|
||||
}
|
||||
int interval = (int)Math.Floor((double)value / ( ((double)max - (double)min ) / (double)10));
|
||||
int interval = (int)Math.Floor((double)value / (((double)max - (double)min) / (double)10));
|
||||
return $" {string.Concat(Enumerable.Repeat("▒", interval))}{string.Concat(Enumerable.Repeat("░", 10 - interval))} [{value}/{max}]";
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,8 @@ namespace ModAssistant
|
|||
}
|
||||
set
|
||||
{
|
||||
Dispatcher.Invoke(new Action(() => {
|
||||
Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
Instance.MainTextBlock.Text = value;
|
||||
Instance.HistoryTextBlock.Text = string.IsNullOrEmpty(MainText) ? $"{value}" : $"{value}\n{HistoryText}";
|
||||
}));
|
||||
|
|
|
@ -554,7 +554,8 @@ namespace ModAssistant.Pages
|
|||
if (SemVersion.TryParse(value, out SemVersion tempInstalledVersion))
|
||||
{
|
||||
_installedVersion = tempInstalledVersion;
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
_installedVersion = null;
|
||||
}
|
||||
|
@ -693,11 +694,13 @@ namespace ModAssistant.Pages
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (mod.name.ToLower() == "bsipa") {
|
||||
if (mod.name.ToLower() == "bsipa")
|
||||
{
|
||||
var hasIPAExe = File.Exists(Path.Combine(App.BeatSaberInstallDirectory, "IPA.exe"));
|
||||
var hasIPADir = Directory.Exists(Path.Combine(App.BeatSaberInstallDirectory, "IPA"));
|
||||
|
||||
if (hasIPADir && hasIPAExe){
|
||||
if (hasIPADir && hasIPAExe)
|
||||
{
|
||||
UninstallBSIPA(links);
|
||||
}
|
||||
else
|
||||
|
@ -705,7 +708,7 @@ namespace ModAssistant.Pages
|
|||
var title = (string)FindResource("Mods:UninstallBSIPANotFound:Title");
|
||||
var body = (string)FindResource("Mods:UninstallBSIPANotFound:Body");
|
||||
|
||||
System.Windows.Forms.MessageBox.Show(body, title, MessageBoxButtons.OK,MessageBoxIcon.Warning);
|
||||
System.Windows.Forms.MessageBox.Show(body, title, MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
foreach (Mod.FileHashes files in links.hashMd5)
|
||||
|
@ -730,11 +733,11 @@ namespace ModAssistant.Pages
|
|||
|
||||
private void CopyText(object sender, System.Windows.Input.MouseButtonEventArgs e)
|
||||
{
|
||||
if (!(sender is TextBlock textBlock)) { return; }
|
||||
if (!(sender is TextBlock textBlock)) return;
|
||||
var text = textBlock.Text;
|
||||
|
||||
// Ensure there's text to be copied
|
||||
if (string.IsNullOrWhiteSpace(text)) { return; }
|
||||
if (string.IsNullOrWhiteSpace(text)) return;
|
||||
|
||||
Utils.SetClipboard(text);
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace ModAssistant.Pages
|
|||
SelectInstalled.IsEnabled = false;
|
||||
ReinstallInstalled.IsEnabled = false;
|
||||
}
|
||||
|
||||
|
||||
UpdateHandlerStatus();
|
||||
this.DataContext = this;
|
||||
}
|
||||
|
@ -391,7 +391,7 @@ namespace ModAssistant.Pages
|
|||
{
|
||||
ComboBox comboBox = sender as ComboBox;
|
||||
if (comboBox.SelectedItem != null)
|
||||
{
|
||||
{
|
||||
ComboBoxItem comboBoxItem = (ComboBoxItem)comboBox.SelectedItem;
|
||||
UpdateOCIWindow(comboBoxItem.Tag.ToString());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue