Fork initial: VRCMelonManager based on ModAssistant 1.1.18

This commit is contained in:
Nikolay Kuznetsov 2021-05-17 22:27:27 +02:00
parent 7788c2573c
commit 5b4a6a9c1b
91 changed files with 1494 additions and 5670 deletions

5
.github/FUNDING.yml vendored
View File

@ -1,4 +1 @@
patreon: BeatSaberMods
ko_fi: N4N8JX7B
liberapay: Assistant
custom: ['https://paypal.me/AssistantMoe', 'https://bs.assistant.moe/Donate/']
custom: ['https://github.com/Assistant/ModAssistant']

View File

@ -16,18 +16,18 @@ jobs:
- name: Install dependencies
run: msbuild -t:restore
- name: Build project
run: msbuild ModAssistant/ModAssistant.csproj /t:Build /p:Configuration=Release
run: msbuild VRCMelonAssistant/VRCMelonAssistant.csproj /t:Build /p:Configuration=Release
- name: Cleanup release
shell: bash
run: |
find "ModAssistant/bin/Release" -type f ! -name "ModAssistant.exe" -delete
cp "LICENSE" "ModAssistant/bin/Release/LICENSE.ModAssistant.txt"
find "VRCMelonAssistant/bin/Release" -type f ! -name "VRCMelonAssistant.exe" -delete
cp "LICENSE" "VRCMelonAssistant/bin/Release/LICENSE.VRCMelonAssistant.txt"
- name: Upload Build
if: startsWith(github.ref, 'refs/tags/') == false
uses: actions/upload-artifact@v2
with:
name: ModAssistant-${{ github.sha }}
path: ./ModAssistant/bin/Release/
name: VRCMelonAssistant-${{ github.sha }}
path: ./VRCMelonAssistant/bin/Release/
- name: Extract Release Version
if: startsWith(github.ref, 'refs/tags/')
id: get_version
@ -39,5 +39,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Mod Assistant v${{ steps.get_version.outputs.version }}
files: ./ModAssistant/bin/Release/ModAssistant.exe
name: VRChat Melon Assistant v${{ steps.get_version.outputs.version }}
files: ./VRCMelonAssistant/bin/Release/VRCMelonAssistant.exe

View File

@ -1,72 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="ModAssistant.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
<section name="ModAssistant.Settings1" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<userSettings>
<ModAssistant.Properties.Settings>
<setting name="InstallFolder" serializeAs="String">
<value />
</setting>
<setting name="StoreType" serializeAs="String">
<value />
</setting>
<setting name="SaveSelected" serializeAs="String">
<value>False</value>
</setting>
<setting name="CheckInstalled" serializeAs="String">
<value>True</value>
</setting>
<setting name="SavedMods" serializeAs="String">
<value>False</value>
</setting>
<setting name="Agreed" serializeAs="String">
<value>False</value>
</setting>
<setting name="SelectInstalled" serializeAs="String">
<value>False</value>
</setting>
<setting name="GameVersion" serializeAs="String">
<value />
</setting>
<setting name="AllGameVersions" serializeAs="String">
<value />
</setting>
<setting name="UpgradeRequired" serializeAs="String">
<value>True</value>
</setting>
<setting name="LastTab" serializeAs="String">
<value />
</setting>
<setting name="SelectedTheme" serializeAs="String">
<value />
</setting>
<setting name="ReinstallInstalled" serializeAs="String">
<value>True</value>
</setting>
<setting name="CloseWindowOnFinish" serializeAs="String">
<value>False</value>
</setting>
<setting name="LanguageCode" serializeAs="String">
<value />
</setting>
<setting name="OCIWindow" serializeAs="String">
<value />
</setting>
</ModAssistant.Properties.Settings>
<ModAssistant.Settings1>
<setting name="InstallFolder" serializeAs="String">
<value />
</setting>
<setting name="StoreVariant" serializeAs="String">
<value />
</setting>
</ModAssistant.Settings1>
</userSettings>
</configuration>

View File

@ -1,364 +0,0 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using System.Web;
using System.Windows;
using static ModAssistant.Http;
namespace ModAssistant.API
{
public class BeatSaver
{
private const string BeatSaverURLPrefix = "https://beatsaver.com";
private static readonly string CustomSongsFolder = Path.Combine("Beat Saber_Data", "CustomLevels");
private const bool BypassDownloadCounter = false;
public static async Task<BeatSaverMap> GetFromKey(string Key, bool showNotification = true)
{
if (showNotification && App.OCIWindow != "No") OneClickInstaller.Status.Show();
return await GetMap(Key, "key", showNotification);
}
public static async Task<BeatSaverMap> GetFromHash(string Hash, bool showNotification = true)
{
if (showNotification && App.OCIWindow != "No") OneClickInstaller.Status.Show();
return await GetMap(Hash, "hash", showNotification);
}
private static async Task<BeatSaverMap> GetMap(string id, string type, bool showNotification)
{
string urlSegment;
switch (type)
{
case "hash":
urlSegment = "/api/maps/by-hash/";
break;
case "key":
urlSegment = "/api/maps/detail/";
break;
default:
return null;
}
BeatSaverMap map = new BeatSaverMap
{
Success = false
};
if (showNotification) Utils.SetMessage($"{string.Format((string)Application.Current.FindResource("OneClick:Installing"), id)}");
try
{
BeatSaverApiResponse beatsaver = await GetResponse(BeatSaverURLPrefix + urlSegment + id);
if (beatsaver != null && beatsaver.map != null)
{
map.response = beatsaver;
map.Name = await InstallMap(beatsaver.map, showNotification);
map.Success = true;
}
}
catch (Exception e)
{
ModAssistant.Utils.Log($"Failed downloading BeatSaver map: {id} | Error: {e.Message}", "ERROR");
Utils.SetMessage($"{string.Format((string)Application.Current.FindResource("OneClick:Failed"), (map.Name ?? id))}");
App.CloseWindowOnFinish = false;
}
return map;
}
private static async Task<BeatSaverApiResponse> GetResponse(string url, bool showNotification = true, int retries = 3)
{
if (retries == 0)
{
ModAssistant.Utils.Log($"Max tries reached: Skipping {url}", "ERROR");
Utils.SetMessage($"{string.Format((string)Application.Current.FindResource("OneClick:RatelimitSkip"), url)}");
App.CloseWindowOnFinish = false;
throw new Exception("Max retries allowed");
}
BeatSaverApiResponse response = new BeatSaverApiResponse();
try
{
var resp = await HttpClient.GetAsync(url);
response.statusCode = resp.StatusCode;
response.ratelimit = GetRatelimit(resp.Headers);
string body = await resp.Content.ReadAsStringAsync();
if ((int)resp.StatusCode == 429)
{
Utils.SetMessage($"{string.Format((string)Application.Current.FindResource("OneClick:RatelimitHit"), response.ratelimit.ResetTime.ToLocalTime())}");
await response.ratelimit.Wait();
return await GetResponse(url, showNotification, retries - 1);
}
if (response.statusCode == HttpStatusCode.OK)
{
response.map = JsonSerializer.Deserialize<BeatSaverApiResponseMap>(body);
return response;
}
else
{
Utils.SetMessage($"{string.Format((string)Application.Current.FindResource("OneClick:Failed"), url)}");
App.CloseWindowOnFinish = false;
return response;
}
}
catch (Exception e)
{
if (showNotification)
{
MessageBox.Show($"{Application.Current.FindResource("OneClick:MapDownloadFailed")}\n\n" + e);
}
return null;
}
}
public static async Task<string> InstallMap(BeatSaverApiResponseMap Map, bool showNotification = true)
{
string zip = Path.Combine(Utils.BeatSaberPath, CustomSongsFolder, Map.hash) + ".zip";
string mapName = string.Concat(($"{Map.key} ({Map.metadata.songName} - {Map.metadata.levelAuthorName})")
.Split(ModAssistant.Utils.Constants.IllegalCharacters));
string directory = Path.Combine(Utils.BeatSaberPath, CustomSongsFolder, mapName);
#pragma warning disable CS0162 // Unreachable code detected
if (BypassDownloadCounter)
{
await Utils.DownloadAsset(BeatSaverURLPrefix + Map.directDownload, CustomSongsFolder, Map.hash + ".zip", mapName, showNotification, true);
}
else
{
await Utils.DownloadAsset(BeatSaverURLPrefix + Map.downloadURL, CustomSongsFolder, Map.hash + ".zip", mapName, showNotification, true);
}
#pragma warning restore CS0162 // Unreachable code detected
if (File.Exists(zip))
{
string mimeType = MimeMapping.GetMimeMapping(zip);
if (!mimeType.StartsWith("application/x-zip"))
{
ModAssistant.Utils.Log($"Failed extracting BeatSaver map: {zip} \n| Content: {string.Join("\n", File.ReadAllLines(zip))}", "ERROR");
throw new Exception("File not a zip.");
}
try
{
using (FileStream stream = new FileStream(zip, FileMode.Open))
using (ZipArchive archive = new ZipArchive(stream))
{
foreach (ZipArchiveEntry file in archive.Entries)
{
string fileDirectory = Path.GetDirectoryName(Path.Combine(directory, file.FullName));
if (!Directory.Exists(fileDirectory))
{
Directory.CreateDirectory(fileDirectory);
}
if (!string.IsNullOrEmpty(file.Name))
{
file.ExtractToFile(Path.Combine(directory, file.FullName), true);
}
}
}
}
catch (Exception e)
{
File.Delete(zip);
ModAssistant.Utils.Log($"Failed extracting BeatSaver map: {zip} | Error: {e} \n| Content: {string.Join("\n", File.ReadAllLines(zip))}", "ERROR");
throw new Exception("File extraction failed.");
}
File.Delete(zip);
}
else
{
if (showNotification)
{
string line1 = (string)Application.Current.FindResource("OneClick:SongDownload:Failed");
string line2 = (string)Application.Current.FindResource("OneClick:SongDownload:NetworkIssues");
string title = (string)Application.Current.FindResource("OneClick:SongDownload:FailedTitle");
MessageBox.Show($"{line1}\n{line2}", title);
}
throw new Exception("Zip file not found.");
}
return mapName;
}
public static BeatSaverRatelimit GetRatelimit(HttpResponseHeaders headers)
{
BeatSaverRatelimit ratelimit = new BeatSaverRatelimit();
if (headers.TryGetValues("Rate-Limit-Remaining", out IEnumerable<string> _remaining))
{
var Remaining = _remaining.GetEnumerator();
Remaining.MoveNext();
ratelimit.Remaining = int.Parse(Remaining.Current);
Remaining.Dispose();
}
if (headers.TryGetValues("Rate-Limit-Reset", out IEnumerable<string> _reset))
{
var Reset = _reset.GetEnumerator();
Reset.MoveNext();
ratelimit.Reset = int.Parse(Reset.Current);
ratelimit.ResetTime = UnixTimestampToDateTime((long)ratelimit.Reset);
Reset.Dispose();
}
if (headers.TryGetValues("Rate-Limit-Total", out IEnumerable<string> _total))
{
var Total = _total.GetEnumerator();
Total.MoveNext();
ratelimit.Total = int.Parse(Total.Current);
Total.Dispose();
}
return ratelimit;
}
public static DateTime UnixTimestampToDateTime(double unixTime)
{
DateTime unixStart = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
long unixTimeStampInTicks = (long)(unixTime * TimeSpan.TicksPerSecond);
return new DateTime(unixStart.Ticks + unixTimeStampInTicks, DateTimeKind.Utc);
}
public static async Task Download(string url, string output, int retries = 3)
{
if (retries == 0)
{
Utils.SetMessage($"{string.Format((string)Application.Current.FindResource("OneClick:RatelimitSkip"), url)}");
App.CloseWindowOnFinish = false;
ModAssistant.Utils.Log($"Max tries reached: Couldn't download {url}", "ERROR");
throw new Exception("Max retries allowed");
}
var resp = await HttpClient.GetAsync(url);
if ((int)resp.StatusCode == 429)
{
var ratelimit = GetRatelimit(resp.Headers);
Utils.SetMessage($"{string.Format((string)Application.Current.FindResource("OneClick:RatelimitHit"), ratelimit.ResetTime.ToLocalTime())}");
await ratelimit.Wait();
await Download(url, output, retries - 1);
}
using (var stream = await resp.Content.ReadAsStreamAsync())
using (var fs = new FileStream(output, FileMode.OpenOrCreate, FileAccess.Write))
{
await stream.CopyToAsync(fs);
}
}
#pragma warning disable IDE1006 // Naming Styles
public class BeatSaverMap
{
public BeatSaverApiResponse response { get; set; }
public bool Success { get; set; }
public string Name { get; set; }
}
public class BeatSaverApiResponse
{
public HttpStatusCode statusCode { get; set; }
public BeatSaverRatelimit ratelimit { get; set; }
public BeatSaverApiResponseMap map { get; set; }
}
public class BeatSaverRatelimit
{
public int? Remaining { get; set; }
public int? Total { get; set; }
public int? Reset { get; set; }
public DateTime ResetTime { get; set; }
public async Task Wait()
{
await Task.Delay(new TimeSpan(Math.Max(ResetTime.Ticks - DateTime.UtcNow.Ticks, 0)));
}
}
public class BeatSaverApiResponseMap
{
public Metadata metadata { get; set; }
public Stats stats { get; set; }
public string description { get; set; }
public DateTime? deletedAt { get; set; }
public string _id { get; set; }
public string key { get; set; }
public string name { get; set; }
public Uploader uploader { get; set; }
public DateTime uploaded { get; set; }
public string hash { get; set; }
public string directDownload { get; set; }
public string downloadURL { get; set; }
public string coverURL { get; set; }
public class Difficulties
{
public bool easy { get; set; }
public bool normal { get; set; }
public bool hard { get; set; }
public bool expert { get; set; }
public bool expertPlus { get; set; }
}
public class Metadata
{
public Difficulties difficulties { get; set; }
public Characteristic[] characteristics { get; set; }
public double duration { get; set; }
public string songName { get; set; }
public string songSubName { get; set; }
public string songAuthorName { get; set; }
public string levelAuthorName { get; set; }
public double bpm { get; set; }
}
public class Characteristic
{
public string name { get; set; }
public CharacteristicDifficulties difficulties { get; set; }
}
public class CharacteristicDifficulties
{
public Difficulty easy { get; set; }
public Difficulty normal { get; set; }
public Difficulty hard { get; set; }
public Difficulty expert { get; set; }
public Difficulty expertPlus { get; set; }
}
public class Difficulty
{
public double? duration { get; set; }
public double? length { get; set; }
public double bombs { get; set; }
public double notes { get; set; }
public double obstacles { get; set; }
public double njs { get; set; }
public double njsOffset { get; set; }
}
public class Stats
{
public int downloads { get; set; }
public int plays { get; set; }
public int downVotes { get; set; }
public int upVotes { get; set; }
public double heat { get; set; }
public double rating { get; set; }
}
public class Uploader
{
public string _id { get; set; }
public string username { get; set; }
}
}
}
}
#pragma warning restore IDE1006 // Naming Styles

View File

@ -1,34 +0,0 @@
using System;
using System.Threading.Tasks;
namespace ModAssistant.API
{
class ModelSaber
{
private const string ModelSaberURLPrefix = "https://modelsaber.com/files/";
private const string CustomAvatarsFolder = "CustomAvatars";
private const string CustomSabersFolder = "CustomSabers";
private const string CustomPlatformsFolder = "CustomPlatforms";
private const string CustomBloqsFolder = "CustomNotes";
public static async Task GetModel(Uri uri)
{
switch (uri.Host)
{
case "avatar":
await Utils.DownloadAsset(ModelSaberURLPrefix + uri.Host + uri.AbsolutePath, CustomAvatarsFolder);
break;
case "saber":
await Utils.DownloadAsset(ModelSaberURLPrefix + uri.Host + uri.AbsolutePath, CustomSabersFolder);
break;
case "platform":
await Utils.DownloadAsset(ModelSaberURLPrefix + uri.Host + uri.AbsolutePath, CustomPlatformsFolder);
break;
case "bloq":
await Utils.DownloadAsset(ModelSaberURLPrefix + uri.Host + uri.AbsolutePath, CustomBloqsFolder);
break;
}
}
}
}

View File

@ -1,126 +0,0 @@
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Windows;
using static ModAssistant.Http;
namespace ModAssistant.API
{
public class Playlists
{
private const string BSaberURLPrefix = "https://bsaber.com/PlaylistAPI/";
private const string PlaylistsFolder = "Playlists";
private static readonly string BeatSaberPath = Utils.BeatSaberPath;
public static void CreatePlaylistsFolder()
{
string playlistsPath = Path.Combine(BeatSaberPath, PlaylistsFolder);
Directory.CreateDirectory(playlistsPath);
}
public static async Task DownloadAll(Uri uri)
{
switch (uri.Host)
{
case "playlist":
Uri url = new Uri($"{uri.LocalPath.Trim('/')}");
string filename = await Get(url);
await DownloadFrom(filename);
break;
}
}
public static async Task<string> Get(Uri url)
{
string filename = HttpUtility.UrlDecode(url.Segments.Last());
string absolutePath = Path.Combine(BeatSaberPath, PlaylistsFolder, filename);
try
{
CreatePlaylistsFolder();
await Utils.DownloadAsset(url.ToString(), PlaylistsFolder, filename);
return absolutePath;
}
catch
{
return null;
}
}
public static async Task DownloadFrom(string file)
{
CreatePlaylistsFolder();
if (Path.Combine(BeatSaberPath, PlaylistsFolder) != Path.GetDirectoryName(file))
{
string destination = Path.Combine(BeatSaberPath, PlaylistsFolder, Path.GetFileName(file));
File.Copy(file, destination, true);
}
int Errors = 0;
int Minimum = 0;
int Value = 0;
Playlist playlist = JsonSerializer.Deserialize<Playlist>(File.ReadAllText(file));
int Maximum = playlist.songs.Length;
foreach (Playlist.Song song in playlist.songs)
{
API.BeatSaver.BeatSaverMap response = new BeatSaver.BeatSaverMap();
if (!string.IsNullOrEmpty(song.hash))
{
response = await BeatSaver.GetFromHash(song.hash, false);
}
else if (!string.IsNullOrEmpty(song.key))
{
response = await BeatSaver.GetFromKey(song.key, false);
}
Value++;
if (response.Success)
{
Utils.SetMessage($"{string.Format((string)Application.Current.FindResource("Options:InstallingPlaylist"), TextProgress(Minimum, Maximum, Value))} {response.Name}");
}
else
{
Utils.SetMessage($"{string.Format((string)Application.Current.FindResource("Options:FailedPlaylistSong"), song.songName)}");
ModAssistant.Utils.Log($"Failed installing BeatSaver map: {song.songName} | {song.key} | {song.hash} | ({response?.response?.ratelimit?.Remaining})");
App.CloseWindowOnFinish = false;
await Task.Delay(3 * 1000);
Errors++;
}
}
Utils.SetMessage($"{string.Format((string)Application.Current.FindResource("Options:FinishedPlaylist"), Errors, playlist.playlistTitle)}");
}
private static string TextProgress(int min, int max, int value)
{
if (max == value)
{
return $" {string.Concat(Enumerable.Repeat("", 10))} [{value}/{max}]";
}
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}]";
}
#pragma warning disable IDE1006 // Naming Styles
class Playlist
{
public string playlistTitle { get; set; }
public string playlistAuthor { get; set; }
public string image { get; set; }
public Song[] songs { get; set; }
public class Song
{
public string key { get; set; }
public string hash { get; set; }
public string songName { get; set; }
public string uploader { get; set; }
}
}
}
}
#pragma warning restore IDE1006 // Naming Styles

View File

@ -1,79 +0,0 @@
using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Windows;
namespace ModAssistant.API
{
public class Utils
{
public static readonly string BeatSaberPath = App.BeatSaberInstallDirectory;
public static void SetMessage(string message)
{
if (App.OCIWindow != "No")
{
if (App.window == null)
{
if (App.OCIWindow == "No") OneClickStatus.Instance = null;
if (OneClickStatus.Instance == null) return;
OneClickStatus.Instance.MainText = message;
}
else
{
MainWindow.Instance.MainText = message;
}
}
}
public static async Task DownloadAsset(string link, string folder, bool showNotifcation, string fileName = null)
{
await DownloadAsset(link, folder, fileName, null, showNotifcation);
}
public static async Task DownloadAsset(string link, string folder, string fileName = null, string displayName = null)
{
await DownloadAsset(link, folder, fileName, displayName, true);
}
public static async Task DownloadAsset(string link, string folder, string fileName, string displayName, bool showNotification, bool beatsaver = false)
{
if (string.IsNullOrEmpty(BeatSaberPath))
{
ModAssistant.Utils.SendNotify((string)Application.Current.FindResource("OneClick:InstallDirNotFound"));
}
try
{
Directory.CreateDirectory(Path.Combine(BeatSaberPath, folder));
if (string.IsNullOrEmpty(fileName))
{
fileName = WebUtility.UrlDecode(Path.Combine(BeatSaberPath, folder, new Uri(link).Segments.Last()));
}
else
{
fileName = WebUtility.UrlDecode(Path.Combine(BeatSaberPath, folder, fileName));
}
if (string.IsNullOrEmpty(displayName))
{
displayName = Path.GetFileNameWithoutExtension(fileName);
}
if (beatsaver) await BeatSaver.Download(link, fileName);
else await ModAssistant.Utils.Download(link, fileName);
if (showNotification)
{
SetMessage(string.Format((string)Application.Current.FindResource("OneClick:InstalledAsset"), displayName));
}
}
catch
{
SetMessage((string)Application.Current.FindResource("OneClick:AssetInstallFailed"));
App.CloseWindowOnFinish = false;
}
}
}
}

View File

@ -1,53 +0,0 @@
using System.Collections.Generic;
using ModAssistant.Pages;
namespace ModAssistant
{
public class Mod
{
public string name;
public string version;
public string gameVersion;
public string _id;
public string status;
public string authorId;
public string uploadedDate;
public string updatedDate;
public Author author;
public string description;
public string link;
public string category;
public DownloadLink[] downloads;
public bool required;
public Dependency[] dependencies;
public List<Mod> Dependents = new List<Mod>();
public Mods.ModListItem ListItem;
public class Author
{
public string _id;
public string username;
public string lastLogin;
}
public class DownloadLink
{
public string type;
public string url;
public FileHashes[] hashMd5;
}
public class FileHashes
{
public string hash;
public string file;
}
public class Dependency
{
public string name;
public string _id;
public Mod Mod;
}
}
}

View File

@ -1,151 +0,0 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using Microsoft.Win32;
namespace ModAssistant
{
class OneClickInstaller
{
private static readonly string[] Protocols = new[] { "modelsaber", "beatsaver", "bsplaylist" };
public static OneClickStatus Status = new OneClickStatus();
public static async Task InstallAsset(string link)
{
Uri uri = new Uri(link);
if (!Protocols.Contains(uri.Scheme)) return;
switch (uri.Scheme)
{
case "modelsaber":
await ModelSaber(uri);
break;
case "beatsaver":
await BeatSaver(uri);
break;
case "bsplaylist":
await Playlist(uri);
break;
}
if (App.OCIWindow != "No")
{
Status.StopRotation();
API.Utils.SetMessage((string)Application.Current.FindResource("OneClick:Done"));
}
if (App.OCIWindow == "Close")
{
Application.Current.Shutdown();
}
}
private static async Task BeatSaver(Uri uri)
{
string Key = uri.Host;
await API.BeatSaver.GetFromKey(Key);
}
private static async Task ModelSaber(Uri uri)
{
if (App.OCIWindow != "No") Status.Show();
API.Utils.SetMessage($"{string.Format((string)Application.Current.FindResource("OneClick:Installing"), System.Web.HttpUtility.UrlDecode(uri.Segments.Last()))}");
await API.ModelSaber.GetModel(uri);
}
private static async Task Playlist(Uri uri)
{
if (App.OCIWindow != "No") Status.Show();
await API.Playlists.DownloadAll(uri);
}
public static void Register(string Protocol, bool Background = false, string Description = null)
{
if (IsRegistered(Protocol) == true)
return;
try
{
if (Utils.IsAdmin)
{
RegistryKey ProtocolKey = Registry.ClassesRoot.OpenSubKey(Protocol, true);
if (ProtocolKey == null)
ProtocolKey = Registry.ClassesRoot.CreateSubKey(Protocol, true);
RegistryKey CommandKey = ProtocolKey.CreateSubKey(@"shell\open\command", true);
if (CommandKey == null)
CommandKey = Registry.ClassesRoot.CreateSubKey(@"shell\open\command", true);
if (ProtocolKey.GetValue("OneClick-Provider", "").ToString() != "ModAssistant")
{
if (Description != null)
{
ProtocolKey.SetValue("", Description, RegistryValueKind.String);
}
ProtocolKey.SetValue("URL Protocol", "", RegistryValueKind.String);
ProtocolKey.SetValue("OneClick-Provider", "ModAssistant", RegistryValueKind.String);
CommandKey.SetValue("", $"\"{Utils.ExePath}\" \"--install\" \"%1\"");
}
Utils.SendNotify(string.Format((string)Application.Current.FindResource("OneClick:ProtocolHandler:Registered"), Protocol));
}
else
{
Utils.StartAsAdmin($"\"--register\" \"{Protocol}\" \"{Description}\"");
}
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
if (Background)
Application.Current.Shutdown();
else
Pages.Options.Instance.UpdateHandlerStatus();
}
public static void Unregister(string Protocol, bool Background = false)
{
if (IsRegistered(Protocol) == false)
return;
try
{
if (Utils.IsAdmin)
{
using (RegistryKey ProtocolKey = Registry.ClassesRoot.OpenSubKey(Protocol, true))
{
if (ProtocolKey != null
&& ProtocolKey.GetValue("OneClick-Provider", "").ToString() == "ModAssistant")
{
Registry.ClassesRoot.DeleteSubKeyTree(Protocol);
}
}
Utils.SendNotify(string.Format((string)Application.Current.FindResource("OneClick:ProtocolHandler:Unregistered"), Protocol));
}
else
{
Utils.StartAsAdmin($"\"--unregister\" \"{Protocol}\"");
}
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
if (Background)
Application.Current.Shutdown();
else
Pages.Options.Instance.UpdateHandlerStatus();
}
public static bool IsRegistered(string Protocol)
{
RegistryKey ProtocolKey = Registry.ClassesRoot.OpenSubKey(Protocol);
if (ProtocolKey != null
&& ProtocolKey.GetValue("OneClick-Provider", "").ToString() == "ModAssistant")
return true;
else
return false;
}
}
}

View File

@ -1,252 +0,0 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ModAssistant"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="ResourceDictionaryName">i18n:de-DE</sys:String>
<!-- App -->
<sys:String x:Key="App:InstallDirDialog:Title">Der Beat Saber Installationsordner konnte nicht gefunden werden!</sys:String>
<sys:String x:Key="App:InstallDirDialog:OkCancel">Drücke OK um es erneut zu versuchen, oder Abbrechen um das Programm zu beenden.</sys:String>
<sys:String x:Key="App:InvalidArgument">Ungültiges Argument! '{0}' benötigt eine Option.</sys:String>
<sys:String x:Key="App:UnrecognizedArgument">Unbekanntes Argument. Beende Mod Assistant.</sys:String>
<sys:String x:Key="App:UnhandledException">Eine nicht behandelte Ausnahme ist aufgetreten</sys:String>
<sys:String x:Key="App:Exception">Ausnahme</sys:String>
<!-- Main Window -->
<sys:String x:Key="MainWindow:WindowTitle">Mod Assistant</sys:String>
<sys:String x:Key="MainWindow:IntroButton">Intro</sys:String>
<sys:String x:Key="MainWindow:ModsButton">Mods</sys:String>
<sys:String x:Key="MainWindow:AboutButton">Über</sys:String>
<sys:String x:Key="MainWindow:OptionsButton">Optionen</sys:String>
<sys:String x:Key="MainWindow:GameVersionLabel">Spiel Version</sys:String>
<sys:String x:Key="MainWindow:VersionLabel">Version</sys:String>
<sys:String x:Key="MainWindow:ModInfoButton">Mod Info</sys:String>
<sys:String x:Key="MainWindow:InstallButtonTop">Installieren/</sys:String>
<sys:String x:Key="MainWindow:InstallButtonBottom">Aktualisieren</sys:String>
<sys:String x:Key="MainWindow:GameVersionLoadFailed">Spielversion konnte nicht geladen werden, der Mods Tab wird nicht verfügbar sein.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Title">Neue Spielversion gefunden!</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line1">Es scheint ein Spiel Update gegeben zu haben.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line2">Bitte prüfe ob unten links die richtige Version ausgewählt ist!</sys:String>
<sys:String x:Key="MainWindow:NoModSelected">Kein Mod ausgewählt!</sys:String>
<sys:String x:Key="MainWindow:NoModInfoPage">{0} hat keine Informationsseite.</sys:String>
<!-- Intro Page -->
<sys:String x:Key="Intro:Title">Intro</sys:String>
<sys:String x:Key="Intro:PageTitle">Willkommen bei Mod Assistant</sys:String>
<sys:String x:Key="Intro:Terms:Header">Bitte lies diese Seite vollständig und aufmerksam!</sys:String>
<Span x:Key="Intro:Terms:Line1">
Durch Nutzung des Programms wird bestätigt, dass folgende Bedingungen gelesen und akzeptiert wurden:
</Span>
<Span x:Key="Intro:Terms:Line2">
Beat Saber
unterstützt normalerweise <Bold>keine</Bold> Mods. Das heißt:
</Span>
<Span x:Key="Intro:Terms:Term1">
Mods
werden nach jedem Update <Bold>nicht mehr funktionieren</Bold>. Dies ist normal, und
die Schuld liegt <Bold>nicht</Bold> bei Beat Games.
</Span>
<Span x:Key="Intro:Terms:Term2">
Mods
<Bold>werden</Bold> Fehler und Leistungsprobleme verursachen. Die Schuld
liegt <Bold>nicht</Bold> bei Beat Games.
</Span>
<Span x:Key="Intro:Terms:Term3">
Mods werden
<Bold>kostenlos</Bold> von Leuten in deren
<Bold>Freizeit</Bold> erstellt. Bitte sei geduldig und verständnisvoll.
</Span>
<Span x:Key="Intro:ReviewsBeatGamesFault">
Bitte gib <Bold>KEINE</Bold> schlechten Bewertungen weil die Mods nicht funktionieren. Die Schuld
liegt <Bold>nicht</Bold> bei Beat Games.
<LineBreak/> Sie versuchen nicht die Mods zu unterbinden.
</Span>
<Span x:Key="Intro:ReviewsRustySpoon">
Wenn ich weiterhin schlecht Bewertungen
<Italic>wegen</Italic> nicht funktionierenden Mods sehe,
<LineBreak/>
<Bold>Werde ich persönlich die Mods mit einem rostigen Löffel töten</Bold>
</Span>
<Span x:Key="Intro:WikiGuide">
Bitte lies den Einsteiger Leitfaden im
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bsmg.wiki/pc-modding.html">
Wiki
</Hyperlink>.
</Span>
<sys:String x:Key="Intro:AgreeButton">Annehmen</sys:String>
<sys:String x:Key="Intro:DisagreeButton">Ablehnen</sys:String>
<sys:String x:Key="Intro:ClosingApp">Programm wird beendet: Du hast den Bedingungen nicht zugestimmt.</sys:String>
<sys:String x:Key="Intro:VersionDownloadFailed">Versionsliste konnte nicht geladen werden</sys:String>
<sys:String x:Key="Intro:ModsTabDisabled">Mods Tab deaktiviert. Bitte Programm neu starten um es nochmal zu versuchen.</sys:String>
<sys:String x:Key="Intro:ModsTabEnabled">Du kannst jetzt den Mods Tab benutzen!</sys:String>
<!-- Mods Page -->
<sys:String x:Key="Mods:Title">Mods</sys:String>
<sys:String x:Key="Mods:Header:Name">Name</sys:String>
<sys:String x:Key="Mods:Header:Installed">Installiert</sys:String>
<sys:String x:Key="Mods:Header:Latest">Neuste</sys:String>
<sys:String x:Key="Mods:Header:Description">Beschreibung</sys:String>
<sys:String x:Key="Mods:Header:Uninstall">Entfernen</sys:String>
<sys:String x:Key="Mods:UninstallButton">Entfernen</sys:String>
<sys:String x:Key="Mods:LoadFailed">Modliste konnte nicht geladen werden</sys:String>
<sys:String x:Key="Mods:CheckingInstalledMods">Prüfe installierte Mods</sys:String>
<sys:String x:Key="Mods:LoadingMods">Lade Mods</sys:String>
<sys:String x:Key="Mods:FinishedLoadingMods">Laden der Mods abgeschlossen</sys:String>
<sys:String x:Key="Mods:NoMods">Für diese Version von Beat Saber sind keine Mods verfügbar.</sys:String>
<sys:String x:Key="Mods:InstallingMod">Installiere {0}</sys:String>
<sys:String x:Key="Mods:InstalledMod">{0} installiert</sys:String>
<sys:String x:Key="Mods:FinishedInstallingMods">Mod Installation abgeschlossen</sys:String>
<sys:String x:Key="Mods:ModDownloadLinkMissing">Downloadlink für {0} konnte nicht gefunden werden</sys:String>
<sys:String x:Key="Mods:UninstallBox:Title">{0} entfernen?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body1">Bist du dir sicher das du {0} entfernen möchtest?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body2">Dies kann die anderen Mods unbrauchbar machen</sys:String>
<sys:String x:Key="Mods:FailedExtract">Fehler beim Extrahieren von {0}, neuer Versuch in {1} Sekunden. ({2}/{3})</sys:String>
<sys:String x:Key="Mods:FailedExtractMaxReached">Fehler beim Extrahieren von {0} nach {1} Versuchen, wird übersprungen. Dieser Mod funktioniert möglicherweise nicht richtig, also gehe auf eigenes Risiko vor</sys:String>
<sys:String x:Key="Mods:SearchLabel">Suchen...</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Title">Deinstallieren von BSIPA ist fehlgeschlagen</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Body">BSIPA Installation wurde nicht gefunden, Deinstallation wurde übersprungen.</sys:String>
<!-- About Page -->
<sys:String x:Key="About:Title">Über</sys:String>
<sys:String x:Key="About:PageTitle">Über Mod Assistant</sys:String>
<sys:String x:Key="About:List:Header">Ich bin Assistant und ich habe Mod Assistant zum Verwalten von Mods nach folgenden Prinzipien erstellt:</sys:String>
<sys:String x:Key="About:List:Item1">Einfachheit</sys:String>
<sys:String x:Key="About:List:Item2">Portabilität</sys:String>
<sys:String x:Key="About:List:Item3">Nur eine Datei</sys:String>
<sys:String x:Key="About:List:Item4">Verantwortungsbewusster Umgang</sys:String>
<Span x:Key="About:SupportAssistant">
Wenn dir das Programm gefällt und du mich unterstützen möchtest, dann besuche meine
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bs.assistant.moe/Donate/">
Spendenseite
</Hyperlink>
oder mein
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://www.patreon.com/AssistantMoe">
Patreon
</Hyperlink>
</Span>
<sys:String x:Key="About:SpecialThanks">Besonderer Dank ♥</sys:String>
<sys:String x:Key="About:Donate">Spenden</sys:String>
<sys:String x:Key="About:HeadpatsButton">Kopf tätscheln</sys:String>
<sys:String x:Key="About:HugsButton">Umarmungen</sys:String>
<!-- Options Page -->
<sys:String x:Key="Options:Title">Optionen</sys:String>
<sys:String x:Key="Options:PageTitle">Einstellungen</sys:String>
<sys:String x:Key="Options:InstallFolder">Installationsordner</sys:String>
<sys:String x:Key="Options:SelectFolderButton">Ordner wählen</sys:String>
<sys:String x:Key="Options:OpenFolderButton">Ordner öffnen</sys:String>
<sys:String x:Key="Options:SaveSelectedMods">Ausgewählte Mods speichern</sys:String>
<sys:String x:Key="Options:CheckInstalledMods">Installierte Mods prüfen</sys:String>
<sys:String x:Key="Options:SelectInstalledMods">Installierte Mods auswählen</sys:String>
<sys:String x:Key="Options:ReinstallInstalledMods">Installierte Mods neu installieren</sys:String>
<sys:String x:Key="Options:EnableOneClickInstalls">OneClick™ Installation aktivieren</sys:String>
<sys:String x:Key="Options:BeatSaver">BeatSaver</sys:String>
<sys:String x:Key="Options:ModelSaber">ModelSaber</sys:String>
<sys:String x:Key="Options:Playlists">Playlists</sys:String>
<sys:String x:Key="Options:CloseWindow">Schließe Fenster wenn fertig</sys:String>
<sys:String x:Key="Options:GameType">Spiel-Typ</sys:String>
<sys:String x:Key="Options:GameType:Steam">Steam</sys:String>
<sys:String x:Key="Options:GameType:Oculus">Oculus</sys:String>
<sys:String x:Key="Options:Tools">Werkzeuge</sys:String>
<sys:String x:Key="Options:InstallPlaylist">Playlist installieren</sys:String>
<sys:String x:Key="Options:InstallingPlaylist">Installiere Playlist: {0}</sys:String>
<sys:String x:Key="Options:FailedPlaylistSong">Titel fehlgeschlagen: {0}</sys:String>
<sys:String x:Key="Options:FinishedPlaylist">[{0} Fehler] Playlist Installation abgeschlossen: {1}</sys:String>
<sys:String x:Key="Options:ShowOCIWindow">Zeige OneClick Installations-Fenster</sys:String>
<sys:String x:Key="Options:OCIWindowYes">Ja</sys:String>
<sys:String x:Key="Options:OCIWindowClose">Schließen</sys:String>
<sys:String x:Key="Options:OCIWindowNo">Nein</sys:String>
<sys:String x:Key="Options:Diagnostics">Diagnose</sys:String>
<sys:String x:Key="Options:OpenLogsButton">Log öffnen</sys:String>
<sys:String x:Key="Options:OpenAppDataButton">AppData öffnen</sys:String>
<sys:String x:Key="Options:UninstallBSIPAButton">BSIPA entfernen</sys:String>
<sys:String x:Key="Options:RemoveAllModsButton">Mods entfernen</sys:String>
<sys:String x:Key="Options:ApplicationTheme">Design</sys:String>
<sys:String x:Key="Options:ExportTemplateButton">Exportieren</sys:String>
<sys:String x:Key="Options:UploadingLog">Log wird hochgeladen</sys:String>
<sys:String x:Key="Options:LogUrlCopied">Log URL in die Zwischenablage kopiert!</sys:String>
<sys:String x:Key="Options:LogUploadFailed">Log Hochladen fehlgeschlagen!</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Title">Log Hochladen fehlgeschlagen!</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Body">Log Datei konnte nicht zu Teknik hochgeladen werden, bitte nochmal versuchen oder die Datei manuell senden.</sys:String>
<sys:String x:Key="Options:GettingModList">Lade Liste der Mods</sys:String>
<sys:String x:Key="Options:FindingBSIPAVersion">Suche BSIPA Version</sys:String>
<sys:String x:Key="Options:BSIPAUninstalled">BSIPA entfernt</sys:String>
<sys:String x:Key="Options:YeetModsBox:Title">Alle Mods entfernen?</sys:String>
<sys:String x:Key="Options:YeetModsBox:RemoveAllMods">Bist du dir sicher das du ALLE Mods entfernen möchtest?</sys:String>
<sys:String x:Key="Options:YeetModsBox:CannotBeUndone">Dies kann nicht rückgängig gemacht werden.</sys:String>
<sys:String x:Key="Options:AllModsUninstalled">Alle Mods entfernt</sys:String>
<sys:String x:Key="Options:CurrentThemeRemoved">Aktuelles Design wurde entfernt, gehe zurück zum Standart...</sys:String>
<sys:String x:Key="Options:ThemeFolderNotFound">Designs Ordner nicht gefunden! Versuche die Vorlage zu exportieren...</sys:String>
<sys:String x:Key="Options:AppDataNotFound">AppData Ordner nicht gefunden! Versuche dein Spiel zu starten.</sys:String>
<!-- Loading Page -->
<sys:String x:Key="Loading:Loading">Lade Mods</sys:String>
<!-- Invalid Page -->
<sys:String x:Key="Invalid:Title">Ungültig</sys:String>
<sys:String x:Key="Invalid:PageTitle">Ungültige Installation erkannt</sys:String>
<sys:String x:Key="Invalid:PageSubtitle">Die SPielinstallation ist beschädigt oder anderweitig ungültig</sys:String>
<sys:String x:Key="Invalid:List:Header">Dies kann passieren wenn dein Spiel eine Raubkopie ist oder eine Raubkopie über eine legitime Version kopiert wurde</sys:String>
<Span x:Key="Invalid:List:Line1">
Falls dein Spiel eine Raubkopie ist,
<Bold>bitte kaufe das Spiel
<Hyperlink NavigateUri="https://beatgames.com/" local:HyperlinkExtensions.IsExternal="True">
HIER
</Hyperlink>
</Bold>.
</Span>
<Span x:Key="Invalid:List:Line2">
Wenn dein Spiel
<Bold>keine</Bold> Raubkopie ist, bitte
<Hyperlink NavigateUri="https://bsmg.wiki/support#clean-installation" local:HyperlinkExtensions.IsExternal="True">
mach eine saubere Neuinstallation
</Hyperlink>.
</Span>
<Span x:Key="Invalid:List:Line3">
Falls das nicht hilft, frage im
<Span Foreground="Blue">#pc-help</Span> Kanal in der
<Hyperlink NavigateUri="https://discord.gg/beatsabermods" local:HyperlinkExtensions.IsExternal="True">
BSMG
</Hyperlink>.
</Span>
<sys:String x:Key="Invalid:BoughtGame1">Falls du eine Raubkopie hattest aber das Spiel jetzt gekauft hast</sys:String>
<sys:String x:Key="Invalid:SelectFolderButton">Ordner auswählen</sys:String>
<sys:String x:Key="Invalid:BoughtGame2">Muss Mod Assistant neu gestartet werden wenn eine legitime Version installiert wurde</sys:String>
<!-- OneClick Class -->
<sys:String x:Key="OneClick:MapDownloadFailed">Map Details konnten nicht geladen werden.</sys:String>
<sys:String x:Key="OneClick:SongDownloadFailed">Titel konnte nicht geladen werden.</sys:String>
<sys:String x:Key="OneClick:SongDownload:Failed">Titel konnte nicht geladen werden.</sys:String>
<sys:String x:Key="OneClick:SongDownload:NetworkIssues">Möglicherweise gibt es Probleme mit BeatSaver oder deiner Internetverbindung.</sys:String>
<sys:String x:Key="OneClick:SongDownload:FailedTitle">Herunterladen der Titel ZIP fehlgeschlagen</sys:String>
<sys:String x:Key="OneClick:InstallDirNotFound">Beat Saber Installationspfad nicht gefunden.</sys:String>
<sys:String x:Key="OneClick:InstalledAsset">Installiert: {0}</sys:String>
<sys:String x:Key="OneClick:AssetInstallFailed">Installation fehlgeschlagen.</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} OneClick™ Installation Handler registriert!</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{0} OneClick™ Installation Handler entfernt!</sys:String>
<sys:String x:Key="OneClick:Installing">Installiere: {0}</sys:String>
<sys:String x:Key="OneClick:RatelimitSkip">Maximale Anzahl an Versuchen erreicht: Überspringe {0}</sys:String>
<sys:String x:Key="OneClick:RatelimitHit">Wiederholungs-Limit erreicht. Setze fort in {0}</sys:String>
<sys:String x:Key="OneClick:Failed">Download fehlgeschlagen: {0}</sys:String>
<sys:String x:Key="OneClick:Done">Abgeschlossen</sys:String>
<!-- Themes Class -->
<sys:String x:Key="Themes:ThemeNotFound">Design nicht gefunden, gehe zurück zum Standard Design...</sys:String>
<sys:String x:Key="Themes:ThemeSet">Design gesetzt auf: {0}.</sys:String>
<sys:String x:Key="Themes:ThemeMissing">{0} existiert nicht.</sys:String>
<sys:String x:Key="Themes:SavedTemplateTheme">Designvorlage &quot;{0}&quot; in Design Ordner gespeichert.</sys:String>
<sys:String x:Key="Themes:TemplateThemeExists">Designvorlage existiert bereits!</sys:String>
<sys:String x:Key="Themes:FailedToLoadXaml">Fehler beim Laden der .xaml Datei von Design {0}: {1}</sys:String>
<!-- Updater Class -->
<sys:String x:Key="Updater:CheckFailed">Konnte nicht auf Aktualisierungen prüfen.</sys:String>
<sys:String x:Key="Updater:DownloadFailed">Konnte Aktualisierung nicht herunterladen.</sys:String>
<!-- Utils Class -->
<sys:String x:Key="Utils:NotificationTitle">Mod Assistant</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">Beat Saber Installationsordner konnte nicht erkannt werden. Bitte manuell auswählen.</sys:String>
<sys:String x:Key="Utils:RunAsAdmin">Mod Assistant muss diese Aufgabe mit Administrator Rechten ausführen. Bitte nochmal versuchen.</sys:String>
<sys:String x:Key="Utils:InstallDir:DialogTitle">Wähle den Beat Saber Installationsordner aus</sys:String>
<sys:String x:Key="Utils:CannotOpenFolder">Ordner konnte nicht geöffnet werden: {0}</sys:String>
</ResourceDictionary>

View File

@ -1,258 +0,0 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ModAssistant"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="ResourceDictionaryName">i18n:fr-FR</sys:String>
<!-- App -->
<sys:String x:Key="App:InstallDirDialog:Title">Impossible de trouver le dossier d'installation de Beat Saber !</sys:String>
<sys:String x:Key="App:InstallDirDialog:OkCancel">Appuyez sur OK pour réessayer, ou Annuler pour fermer l'application.</sys:String>
<sys:String x:Key="App:InvalidArgument">Argument invalide ! '{0}' nécessite une option.</sys:String>
<sys:String x:Key="App:UnrecognizedArgument">Argument non reconnu. Fermeture de Mod Assistant.</sys:String>
<sys:String x:Key="App:UnhandledException">Une exception non gérée est survenue</sys:String>
<sys:String x:Key="App:Exception">Exception</sys:String>
<!-- Main Window -->
<sys:String x:Key="MainWindow:WindowTitle">Mod Assistant</sys:String>
<sys:String x:Key="MainWindow:IntroButton">Intro</sys:String>
<sys:String x:Key="MainWindow:ModsButton">Mods</sys:String>
<sys:String x:Key="MainWindow:AboutButton">À propos</sys:String>
<sys:String x:Key="MainWindow:OptionsButton">Options</sys:String>
<sys:String x:Key="MainWindow:GameVersionLabel">Version du jeu</sys:String>
<sys:String x:Key="MainWindow:VersionLabel">Version</sys:String>
<sys:String x:Key="MainWindow:ModInfoButton">Info sur le mod</sys:String>
<sys:String x:Key="MainWindow:InstallButtonTop">Installer</sys:String>
<sys:String x:Key="MainWindow:InstallButtonBottom">ou Mettre à jour</sys:String>
<sys:String x:Key="MainWindow:GameVersionLoadFailed">Impossible de charger les versions du jeu, l'onglet Mods sera indisponible.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Title">Nouvelle version du jeu détectée !</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line1">Il semble que le jeu a été mis à jour.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line2">Veuillez vous assurer que la bonne version soit sélectionnée en bas à gauche !</sys:String>
<sys:String x:Key="MainWindow:NoModSelected">Aucun mod sélectionné !</sys:String>
<sys:String x:Key="MainWindow:NoModInfoPage">{0} n'a pas de page informative.</sys:String>
<!-- Intro Page -->
<sys:String x:Key="Intro:Title">Intro</sys:String>
<sys:String x:Key="Intro:PageTitle">Bienvenue sur Mod Assistant</sys:String>
<sys:String x:Key="Intro:Terms:Header">Veuillez lire cette page entièrement et avec attention</sys:String>
<Span x:Key="Intro:Terms:Line1">
En utilisant ce programme, vous attestez que vous avez lu et accepté les modalités suivantes :
</Span>
<Span x:Key="Intro:Terms:Line2">
Beat Saber
<Bold>ne</Bold> supporte
<Bold>pas</Bold> nativement les mods. Cela signifie que :
</Span>
<Span x:Key="Intro:Terms:Term1">
Les mods
<Bold>dysfonctionneront</Bold> à chaque mise à jour. C'est normal, et ce
<Bold>n'</Bold>est
<Bold>pas</Bold> la faute de Beat Games.
</Span>
<Span x:Key="Intro:Terms:Term2">
Les mods
<Bold>causeront</Bold> des bugs et des problèmes de performance. Ce
<Bold>n'</Bold>est
<Bold>pas</Bold> la faute de Beat Games.
</Span>
<Span x:Key="Intro:Terms:Term3">
Les mods sont créés
<Bold>gratuitement</Bold> par des gens sur leur
<Bold>temps libre.</Bold> Veuillez être patient et compréhensif.
</Span>
<Span x:Key="Intro:ReviewsBeatGamesFault">
<Bold>NE</Bold> laissez
<Bold>PAS</Bold> de commentaires négatifs parce que les mods ne fonctionnent plus. Ce
<Bold>n'</Bold>est
<Bold>pas</Bold> la faute de Beat Games.
<LineBreak/> Ils n'essaient pas de faire disparaître les mods.
</Span>
<Span x:Key="Intro:ReviewsRustySpoon">
Si je continue de voir des gens laisser des commentaires négatifs
<Italic>parce que</Italic> les mods ne fonctionnent plus,
<LineBreak/>
<Bold>J'irai personnellement liquider les mods avec une cuillère rouillée</Bold>
</Span>
<Span x:Key="Intro:WikiGuide">
Veuillez lire le Guide du Débutant sur le
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bsmg.wiki/fr/pc-modding.html">
Wiki
</Hyperlink>.
</Span>
<sys:String x:Key="Intro:AgreeButton">J'accepte</sys:String>
<sys:String x:Key="Intro:DisagreeButton">Je refuse</sys:String>
<sys:String x:Key="Intro:ClosingApp">Fermeture de l'application : vous n'avez pas accepté les modalités et conditions.</sys:String>
<sys:String x:Key="Intro:VersionDownloadFailed">Impossible de télécharger la liste des versions</sys:String>
<sys:String x:Key="Intro:ModsTabDisabled">Onglet Mods désactivé. Veuillez relancer pour réessayer.</sys:String>
<sys:String x:Key="Intro:ModsTabEnabled">Vous pouvez désormais utiliser l'onglet Mods !</sys:String>
<!-- Mods Page -->
<sys:String x:Key="Mods:Title">Mods</sys:String>
<sys:String x:Key="Mods:Header:Name">Nom</sys:String>
<sys:String x:Key="Mods:Header:Installed">Installé</sys:String>
<sys:String x:Key="Mods:Header:Latest">Récent</sys:String>
<sys:String x:Key="Mods:Header:Description">Description</sys:String>
<sys:String x:Key="Mods:Header:Uninstall">Désinstaller</sys:String>
<sys:String x:Key="Mods:UninstallButton">Désinstaller</sys:String>
<sys:String x:Key="Mods:LoadFailed">Impossible de charger la liste des mods</sys:String>
<sys:String x:Key="Mods:CheckingInstalledMods">Vérification des mods installés</sys:String>
<sys:String x:Key="Mods:LoadingMods">Chargement des mods</sys:String>
<sys:String x:Key="Mods:FinishedLoadingMods">Fin : mods chargés</sys:String>
<sys:String x:Key="Mods:NoMods">Aucun mod n'est disponible pour cette version de Beat Saber</sys:String>
<sys:String x:Key="Mods:InstallingMod">Installation de {0}</sys:String>
<sys:String x:Key="Mods:InstalledMod">{0} installé</sys:String>
<sys:String x:Key="Mods:FinishedInstallingMods">Fin : mods installés</sys:String>
<sys:String x:Key="Mods:ModDownloadLinkMissing">Impossible de trouver le lien de téléchargement de {0}</sys:String>
<sys:String x:Key="Mods:UninstallBox:Title">Désinstaller {0} ?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body1">Êtes-vous sûr de vouloir supprimer {0} ?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body2">Cela pourrait faire dysfonctionner d'autres mods installés</sys:String>
<sys:String x:Key="Mods:FailedExtract">Échec de l'extraction de {0}, nouvelle tentative dans {1} secondes. ({2}/{3})</sys:String>
<sys:String x:Key="Mods:FailedExtractMaxReached">Échec de l'extraction de {0} après le maximum de tentatives ({1}), abandon. Ce mod pourrait ne pas fonctionner correctement, continuez à vos propres risques</sys:String>
<sys:String x:Key="Mods:SearchLabel">Recherche...</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Title">Échec de la désinstallation de BSIPA</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Body">BSIPA installation pas trouvée, opération de désinstallation ignorée.</sys:String>
<!-- About Page -->
<sys:String x:Key="About:Title">À propos</sys:String>
<sys:String x:Key="About:PageTitle">À propos de Mod Assistant</sys:String>
<sys:String x:Key="About:List:Header">Je suis Assistant, et je réalise Mod Assistant pour l'assistance aux mods, avec quelques principes en tête :</sys:String>
<sys:String x:Key="About:List:Item1">Simplicité</sys:String>
<sys:String x:Key="About:List:Item2">Portabilité</sys:String>
<sys:String x:Key="About:List:Item3">Exécutable unique</sys:String>
<sys:String x:Key="About:List:Item4">Utilisation responsable</sys:String>
<Span x:Key="About:SupportAssistant">
Si vous aimez ce programme et souhaitez me soutenir, veuillez visiter ma
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bs.assistant.moe/Donate/">
page de don
</Hyperlink>
ou mon
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://www.patreon.com/AssistantMoe">
Patreon
</Hyperlink>
</Span>
<sys:String x:Key="About:SpecialThanks">Remerciements particuliers ♥</sys:String>
<sys:String x:Key="About:Donate">Faire un don</sys:String>
<sys:String x:Key="About:HeadpatsButton">Caresses-tête</sys:String>
<sys:String x:Key="About:HugsButton">Câlins</sys:String>
<!-- Options Page -->
<sys:String x:Key="Options:Title">Options</sys:String>
<sys:String x:Key="Options:PageTitle">Paramètres</sys:String>
<sys:String x:Key="Options:InstallFolder">Dossier d'installation</sys:String>
<sys:String x:Key="Options:SelectFolderButton">Sélectionner un dossier</sys:String>
<sys:String x:Key="Options:OpenFolderButton">Ouvrir le dossier</sys:String>
<sys:String x:Key="Options:SaveSelectedMods">Sauvegarder les mods sélectionnés</sys:String>
<sys:String x:Key="Options:CheckInstalledMods">Détecter les mods installés</sys:String>
<sys:String x:Key="Options:SelectInstalledMods">Sélectionner les mods installés</sys:String>
<sys:String x:Key="Options:ReinstallInstalledMods">Réinstaller les mods installés</sys:String>
<sys:String x:Key="Options:EnableOneClickInstalls">Activer les installations OneClick™</sys:String>
<sys:String x:Key="Options:BeatSaver">BeatSaver</sys:String>
<sys:String x:Key="Options:ModelSaber">ModelSaber</sys:String>
<sys:String x:Key="Options:Playlists">Playlists</sys:String>
<sys:String x:Key="Options:CloseWindow">Fermer la fenêtre à la fin</sys:String>
<sys:String x:Key="Options:GameType">Type du jeu</sys:String>
<sys:String x:Key="Options:GameType:Steam">Steam</sys:String>
<sys:String x:Key="Options:GameType:Oculus">Oculus</sys:String>
<sys:String x:Key="Options:Tools">Outils</sys:String>
<sys:String x:Key="Options:InstallPlaylist">Installer une playlist</sys:String>
<sys:String x:Key="Options:InstallingPlaylist">Installation de la playlist : {0}</sys:String>
<sys:String x:Key="Options:FailedPlaylistSong">Échec de la musique : {0}</sys:String>
<sys:String x:Key="Options:FinishedPlaylist">[{0} échecs] Installation de la playlist terminée : {1}</sys:String>
<sys:String x:Key="Options:ShowOCIWindow">Afficher la fenêtre de l'installateur OneClick</sys:String>
<sys:String x:Key="Options:OCIWindowYes">Oui</sys:String>
<sys:String x:Key="Options:OCIWindowClose">Fermer</sys:String>
<sys:String x:Key="Options:OCIWindowNo">Non</sys:String>
<sys:String x:Key="Options:Diagnostics">Diagnostic</sys:String>
<sys:String x:Key="Options:OpenLogsButton">Ouvrir les logs</sys:String>
<sys:String x:Key="Options:OpenAppDataButton">Ouvrir AppData</sys:String>
<sys:String x:Key="Options:UninstallBSIPAButton">Désinstaller BSIPA</sys:String>
<sys:String x:Key="Options:RemoveAllModsButton">Supprimer tous les mods</sys:String>
<sys:String x:Key="Options:ApplicationTheme">Thème de l'application</sys:String>
<sys:String x:Key="Options:ExportTemplateButton">Exporter le modèle</sys:String>
<sys:String x:Key="Options:UploadingLog">Envoi des logs</sys:String>
<sys:String x:Key="Options:LogUrlCopied">URL des logs copiée dans le presse-papier !</sys:String>
<sys:String x:Key="Options:LogUploadFailed">L'envoi des logs a échoué</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Title">L'envoi des logs a échoué !</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Body">Impossible d'envoyer le fichier de logs à Teknik, veuillez réessayer ou envoyer le fichier manuellement.</sys:String>
<sys:String x:Key="Options:GettingModList">Récupération de la liste des mods</sys:String>
<sys:String x:Key="Options:FindingBSIPAVersion">Découverte de la version de BSIPA</sys:String>
<sys:String x:Key="Options:BSIPAUninstalled">BSIPA désinstallé</sys:String>
<sys:String x:Key="Options:YeetModsBox:Title">Désinstaller les mods ?</sys:String>
<sys:String x:Key="Options:YeetModsBox:RemoveAllMods">Êtes-vous sûr de vouloir supprimer TOUS les mods ?</sys:String>
<sys:String x:Key="Options:YeetModsBox:CannotBeUndone">Cela ne peut pas être annulé.</sys:String>
<sys:String x:Key="Options:AllModsUninstalled">Tous les mods ont été désinstallés</sys:String>
<sys:String x:Key="Options:CurrentThemeRemoved">Le thème actuel a été supprimé, passage au thème par défaut...</sys:String>
<sys:String x:Key="Options:ThemeFolderNotFound">Dossier Themes non trouvé ! Essayez d'exporter le modèle...</sys:String>
<sys:String x:Key="Options:AppDataNotFound">Dossier AppData non trouvé ! Essayez de lancer votre jeu.</sys:String>
<!-- Loading Page -->
<sys:String x:Key="Loading:Loading">Chargement des mods</sys:String>
<!-- Invalid Page -->
<sys:String x:Key="Invalid:Title">Invalide</sys:String>
<sys:String x:Key="Invalid:PageTitle">Installation invalide détectée</sys:String>
<sys:String x:Key="Invalid:PageSubtitle">Votre installation du jeu est corrompue sinon invalide</sys:String>
<sys:String x:Key="Invalid:List:Header">Cela peut survenir si votre copie du jeu est piratée, ou si vous copiez une copie piratée sur votre installation légitime</sys:String>
<Span x:Key="Invalid:List:Line1">
Si votre copie du jeu est piratée,
<Bold>veuillez acheter le jeu
<Hyperlink NavigateUri="https://beatgames.com/" local:HyperlinkExtensions.IsExternal="True">
ICI
</Hyperlink>
</Bold>.
</Span>
<Span x:Key="Invalid:List:Line2">
Si votre copie du jeu
<Bold>n'</Bold>est
<Bold>pas</Bold> piratée, veuillez
<Hyperlink NavigateUri="https://bsmg.wiki/fr/support/#installation-propre" local:HyperlinkExtensions.IsExternal="True">
faire une installation propre
</Hyperlink>.
</Span>
<Span x:Key="Invalid:List:Line3">
Si cela n'a pas fonctionné, demandez de l'aide au support dans le canal textuel
<Span Foreground="Blue">#pc-help</Span> dans
<Hyperlink NavigateUri="https://discord.gg/beatsabermods" local:HyperlinkExtensions.IsExternal="True">
BSMG
</Hyperlink>.
</Span>
<sys:String x:Key="Invalid:BoughtGame1">Si vous utilisiez une version piratée mais avez acheté le jeu depuis</sys:String>
<sys:String x:Key="Invalid:SelectFolderButton">Sélectionner un dossier</sys:String>
<sys:String x:Key="Invalid:BoughtGame2">Vous devez relancer Mod Assistant après avoir choisi l'installation légitime</sys:String>
<!-- OneClick Class -->
<sys:String x:Key="OneClick:MapDownloadFailed">Impossible de récupérer les détails de la map.</sys:String>
<sys:String x:Key="OneClick:SongDownloadFailed">Impossible de télécharger la musique.</sys:String>
<sys:String x:Key="OneClick:SongDownload:Failed">Impossible de télécharger la musique.</sys:String>
<sys:String x:Key="OneClick:SongDownload:NetworkIssues">Il pourrait y avoir des problèmes avec BeatSaver ou votre connexion Internet.</sys:String>
<sys:String x:Key="OneClick:SongDownload:FailedTitle">Échec du téléchargement du ZIP de la musique</sys:String>
<sys:String x:Key="OneClick:InstallDirNotFound">Chemin de l'installation de Beat Saber non trouvé.</sys:String>
<sys:String x:Key="OneClick:InstalledAsset">Installé : {0}</sys:String>
<sys:String x:Key="OneClick:AssetInstallFailed">Échec de l'installation.</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} : gestionnaires d'installation OneClick™ inscrits !</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{0} : gestionnaires d'installation OneClick™ désinscrits !</sys:String>
<sys:String x:Key="OneClick:Installing">Installation de : {0}</sys:String>
<sys:String x:Key="OneClick:RatelimitSkip">Maximum de tentatives atteint : {0} passé</sys:String>
<sys:String x:Key="OneClick:RatelimitHit">Limite atteinte. Reprise dans {0}</sys:String>
<sys:String x:Key="OneClick:Failed">Téléchargement échoué : {0}</sys:String>
<sys:String x:Key="OneClick:Done">Fait</sys:String>
<!-- Themes Class -->
<sys:String x:Key="Themes:ThemeNotFound">Thème non trouvé, passage au thème par défaut...</sys:String>
<sys:String x:Key="Themes:ThemeSet">Thème défini sur {0}.</sys:String>
<sys:String x:Key="Themes:ThemeMissing">{0} n'existe pas.</sys:String>
<sys:String x:Key="Themes:SavedTemplateTheme">Modèle du thème &quot;{0}&quot; sauvegardé dans le dossier Themes.</sys:String>
<sys:String x:Key="Themes:TemplateThemeExists">Le modèle du thème existe déjà !</sys:String>
<sys:String x:Key="Themes:FailedToLoadXaml">Échec du chargement du fichier .xaml pour le thème {0} : {1}</sys:String>
<!-- Updater Class -->
<sys:String x:Key="Updater:CheckFailed">Impossible de vérifier les mises à jour.</sys:String>
<sys:String x:Key="Updater:DownloadFailed">Impossible de télécharger la mise à jour.</sys:String>
<!-- Utils Class -->
<sys:String x:Key="Utils:NotificationTitle">Mod Assistant</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">Impossible de détecter le dossier d'installation de Beat Saber. Veuillez le sélectionner manuellement.</sys:String>
<sys:String x:Key="Utils:RunAsAdmin">Mod Assistant a besoin de lancer cette tâche en administrateur. Veuillez réessayer.</sys:String>
<sys:String x:Key="Utils:InstallDir:DialogTitle">Sélectionnez le dossier d'installation de Beat Saber</sys:String>
<sys:String x:Key="Utils:CannotOpenFolder">Impossible d'ouvrir le dossier : {0}</sys:String>
</ResourceDictionary>

View File

@ -1,252 +0,0 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ModAssistant"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="ResourceDictionaryName">i18n:it-IT</sys:String>
<!-- App -->
<sys:String x:Key="App:InstallDirDialog:Title">Impossibile trovare la directory d'installazione di Beat Saber</sys:String>
<sys:String x:Key="App:InstallDirDialog:OkCancel">Premi OK per riprovare, oppure Cancel per chiudere l'applicazione.</sys:String>
<sys:String x:Key="App:InvalidArgument">Argomento non valido! '{0}' ha bisogno di un'opzione.</sys:String>
<sys:String x:Key="App:UnrecognizedArgument">Argomento non riconosciuto. Chiusura di Mod Assistant.</sys:String>
<sys:String x:Key="App:UnhandledException">Si è appena verificata un'eccezione non gestita</sys:String>
<sys:String x:Key="App:Exception">Eccezione</sys:String>
<!-- Main Window -->
<sys:String x:Key="MainWindow:WindowTitle">Mod Assistant</sys:String>
<sys:String x:Key="MainWindow:IntroButton">Introduzione</sys:String>
<sys:String x:Key="MainWindow:ModsButton">Mod</sys:String>
<sys:String x:Key="MainWindow:AboutButton">Info</sys:String>
<sys:String x:Key="MainWindow:OptionsButton">Opzioni</sys:String>
<sys:String x:Key="MainWindow:GameVersionLabel">Versione del gioco</sys:String>
<sys:String x:Key="MainWindow:VersionLabel">Versione</sys:String>
<sys:String x:Key="MainWindow:ModInfoButton">Info sulla mod</sys:String>
<sys:String x:Key="MainWindow:InstallButtonTop">Installa</sys:String>
<sys:String x:Key="MainWindow:InstallButtonBottom">o Aggiorna</sys:String>
<sys:String x:Key="MainWindow:GameVersionLoadFailed">Non è stato possibile caricare le versioni del gioco, il menù Mod non sarà disponibile.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Title">Rilevata nuova versione del gioco!</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line1">Sembra che ci sia stato un aggiornamento del gioco.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line2">Per piacere verifica che sia selezionata la versione corretta nel menù in basso a sinistra</sys:String>
<sys:String x:Key="MainWindow:NoModSelected">Nessuna mod selezionata!</sys:String>
<sys:String x:Key="MainWindow:NoModInfoPage">{0} non ha una pagina di informazioni.</sys:String>
<!-- Intro Page -->
<sys:String x:Key="Intro:Title">Introduzione</sys:String>
<sys:String x:Key="Intro:PageTitle">Benvenuto/a in Mod Assistant</sys:String>
<sys:String x:Key="Intro:Terms:Header">Ti invitiamo a leggere questa pagina fino alla fine e con cautela</sys:String>
<Span x:Key="Intro:Terms:Line1">
Utilizzando questo programma, attesti di accettare i seguenti termini:
</Span>
<Span x:Key="Intro:Terms:Line2">
Beat Saber
<Bold>non</Bold> supporta nativamente le mod. Ciò significa che:
</Span>
<Span x:Key="Intro:Terms:Term1">
Le mod
<Bold>smetteranno di funzionare</Bold> ad ogni aggiornamento. È assolutamente normale, e
<Bold>non è</Bold> colpa di Beat Games.
</Span>
<Span x:Key="Intro:Terms:Term2">
Le mod
<Bold>causeranno</Bold> bug e problemi di prestazioni. Questa
<Bold>non è</Bold> colpa di Beat Games.
</Span>
<Span x:Key="Intro:Terms:Term3">
Le mod sono fatte
<Bold>gratuitamente</Bold> da sviluppatori nel loro
<Bold>tempo libero.</Bold> Ti invitiamo ad essere paziente e di comprendere la situazione.
</Span>
<Span x:Key="Intro:ReviewsBeatGamesFault">
<Bold>NON</Bold> lasciare feedback negativi solo perche le mod smettono di funzionare. Questa
<Bold>non è</Bold> colpa Beat Games.
<LineBreak/> Non è loro intenzione "rompere" le mod.
</Span>
<Span x:Key="Intro:ReviewsRustySpoon">
Se continuerò a trovare persone che lasciano feedback negativi
<Italic>perchè</Italic> le mod smettono di funzionare,
<LineBreak/>
<Bold>Mi assicurerò di farle sparire dalla circolazione</Bold>
</Span>
<Span x:Key="Intro:WikiGuide">
Ti invitiamo a leggere la guida introduttiva sulla
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bsmg.wiki/pc-modding.html">
Wiki
</Hyperlink>.
</Span>
<sys:String x:Key="Intro:AgreeButton">Accetto</sys:String>
<sys:String x:Key="Intro:DisagreeButton">Non accetto</sys:String>
<sys:String x:Key="Intro:ClosingApp">Chiusura dell'app: Non hai accettato i termini e condizioni.</sys:String>
<sys:String x:Key="Intro:VersionDownloadFailed">Non sono riuscito a scaricare la lista delle versioni</sys:String>
<sys:String x:Key="Intro:ModsTabDisabled">Menù delle mod disattivato. Ti invitiamo a riprovare riavviando il programma.</sys:String>
<sys:String x:Key="Intro:ModsTabEnabled">Ora puoi utilizzare il menù Mod!</sys:String>
<!-- Mods Page -->
<sys:String x:Key="Mods:Title">Mod</sys:String>
<sys:String x:Key="Mods:Header:Name">Nome</sys:String>
<sys:String x:Key="Mods:Header:Installed">Versione installata</sys:String>
<sys:String x:Key="Mods:Header:Latest">Ultima versione</sys:String>
<sys:String x:Key="Mods:Header:Description">Descrizione</sys:String>
<sys:String x:Key="Mods:Header:Uninstall">Disinstalla</sys:String>
<sys:String x:Key="Mods:UninstallButton">Disinstalla</sys:String>
<sys:String x:Key="Mods:LoadFailed">Impossibile caricare la lista delle mod</sys:String>
<sys:String x:Key="Mods:CheckingInstalledMods">Controllo le mod installate</sys:String>
<sys:String x:Key="Mods:LoadingMods">Carico le mod</sys:String>
<sys:String x:Key="Mods:FinishedLoadingMods">Caricamento delle mod completato</sys:String>
<sys:String x:Key="Mods:NoMods">No mods available for this version of Beat Saber</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="Mods:InstallingMod">Installazione di {0} in corso</sys:String>
<sys:String x:Key="Mods:InstalledMod">{0} installato</sys:String>
<sys:String x:Key="Mods:FinishedInstallingMods">Installazione delle mod completata</sys:String>
<sys:String x:Key="Mods:ModDownloadLinkMissing">Impossibile trovare il link di download per {0}</sys:String>
<sys:String x:Key="Mods:UninstallBox:Title">Vuoi disinstallare {0}?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body1">Sei sicuro di voler disinstallare {0}?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body2">Continuando, altre mod potrebbero smettere di funzionare</sys:String>
<sys:String x:Key="Mods:FailedExtract">Impossibile estrarre {0}, prossimo tentativo in {1} secondi. ({2}/{3})</sys:String>
<sys:String x:Key="Mods:FailedExtractMaxReached">Non sono riuscito ad estrarre {0} dopo aver raggiunto il numero massimo di tentativi ({1}), salto questa mod. Questa protrebbe anche non funzionare correttamente, quindi procedi a tuo rischio e pericolo</sys:String>
<sys:String x:Key="Mods:SearchLabel">Cerca...</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Title">Failed to Uninstall BSIPA</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="Mods:UninstallBSIPANotFound:Body">BSIPA installation not found, uninstall operation skipped.</sys:String> <!-- NEEDS TRANSLATING -->
<!-- About Page -->
<sys:String x:Key="About:Title">Info</sys:String>
<sys:String x:Key="About:PageTitle">Info su Mod Assistant</sys:String>
<sys:String x:Key="About:List:Header">Ciao, sono Assistant, ed ho creato Mod Assistant per aiutarmi con le mod, con alcuni principi in testa:</sys:String>
<sys:String x:Key="About:List:Item1">Semplicità d'uso</sys:String>
<sys:String x:Key="About:List:Item2">Portabilità</sys:String>
<sys:String x:Key="About:List:Item3">Un solo eseguibile</sys:String>
<sys:String x:Key="About:List:Item4">Uso responsabile</sys:String>
<Span x:Key="About:SupportAssistant">
Se ti piace questo programma, e volessi supportarmi, puoi visitare la mia
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bs.assistant.moe/Donate/">
pagina delle donazioni
</Hyperlink>
oppure il mio
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://www.patreon.com/AssistantMoe">
Patreon
</Hyperlink>
</Span>
<sys:String x:Key="About:SpecialThanks">Ringraziamenti speciali ♥</sys:String>
<sys:String x:Key="About:Donate">Donazioni</sys:String>
<sys:String x:Key="About:HeadpatsButton">Carezze</sys:String>
<sys:String x:Key="About:HugsButton">Abbracci</sys:String>
<!-- Options Page -->
<sys:String x:Key="Options:Title">Opzioni</sys:String>
<sys:String x:Key="Options:PageTitle">Impostazioni</sys:String>
<sys:String x:Key="Options:InstallFolder">Directory d'Installazione</sys:String>
<sys:String x:Key="Options:SelectFolderButton">Seleziona Cartella</sys:String>
<sys:String x:Key="Options:OpenFolderButton">Apri Cartella</sys:String>
<sys:String x:Key="Options:SaveSelectedMods">Salva le Mod Selezionate</sys:String>
<sys:String x:Key="Options:CheckInstalledMods">Rileva le Mod Installate</sys:String>
<sys:String x:Key="Options:SelectInstalledMods">Seleziona le Mod Installate</sys:String>
<sys:String x:Key="Options:ReinstallInstalledMods">Reinstalla le Mod</sys:String>
<sys:String x:Key="Options:EnableOneClickInstalls">Attiva OneClick™</sys:String>
<sys:String x:Key="Options:BeatSaver">BeatSaver</sys:String>
<sys:String x:Key="Options:ModelSaber">ModelSaber</sys:String>
<sys:String x:Key="Options:Playlists">Playlists</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="Options:CloseWindow">Close window when finished</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="Options:GameType">Tipo di Installazione</sys:String>
<sys:String x:Key="Options:GameType:Steam">Steam</sys:String>
<sys:String x:Key="Options:GameType:Oculus">Oculus</sys:String>
<sys:String x:Key="Options:Tools">Strumenti</sys:String>
<sys:String x:Key="Options:InstallPlaylist">Installa Playlist</sys:String>
<sys:String x:Key="Options:InstallingPlaylist">Installazione Playlist: {0}</sys:String>
<sys:String x:Key="Options:FailedPlaylistSong">Installazione canzone fallita: {0}</sys:String>
<sys:String x:Key="Options:FinishedPlaylist">[{0} fails] Installazione playlist terminata: {1}</sys:String>
<sys:String x:Key="Options:ShowOCIWindow">Show OneClick Installer Window</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="Options:OCIWindowYes">Yes</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="Options:OCIWindowClose">Close</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="Options:OCIWindowNo">No</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="Options:Diagnostics">Diagnostica</sys:String>
<sys:String x:Key="Options:OpenLogsButton">Apri il Log</sys:String>
<sys:String x:Key="Options:OpenAppDataButton">Apri AppData</sys:String>
<sys:String x:Key="Options:UninstallBSIPAButton">Disinstalla BSIPA</sys:String>
<sys:String x:Key="Options:RemoveAllModsButton">Rimuovi Tutte le Mod</sys:String>
<sys:String x:Key="Options:ApplicationTheme">Tema dell'app</sys:String>
<sys:String x:Key="Options:ExportTemplateButton">Esporta Template</sys:String>
<sys:String x:Key="Options:UploadingLog">Caricamento del Log</sys:String>
<sys:String x:Key="Options:LogUrlCopied">URL del Log copiato negli Appunti!</sys:String>
<sys:String x:Key="Options:LogUploadFailed">Caricamento del Log Fallito</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Title">Caricamento del Log Fallito!</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Body">Non sono riuscito a caricare il Log su Teknik, ti invitiamo a riprovare oppure puoi caricare il file manualmente.</sys:String>
<sys:String x:Key="Options:GettingModList">Prendo la lista delle Mod</sys:String>
<sys:String x:Key="Options:FindingBSIPAVersion">Cerco la versione di BSIPA</sys:String>
<sys:String x:Key="Options:BSIPAUninstalled">BSIPA Disinstallato</sys:String>
<sys:String x:Key="Options:YeetModsBox:Title">Disinstallare tutte le Mod?</sys:String>
<sys:String x:Key="Options:YeetModsBox:RemoveAllMods">Sei sicuro di voler rimuovere TUTTE le mod?</sys:String>
<sys:String x:Key="Options:YeetModsBox:CannotBeUndone">Questa azione non può essere annullata.</sys:String>
<sys:String x:Key="Options:AllModsUninstalled">Tutte le Mod sono state Disinstallate</sys:String>
<sys:String x:Key="Options:CurrentThemeRemoved">Il tema corrente è stato rimosso, torno al principale...</sys:String>
<sys:String x:Key="Options:ThemeFolderNotFound">Cartella del tema non trovata! Prova ad esportare il template...</sys:String>
<sys:String x:Key="Options:AppDataNotFound">Cartella AppData non trovata! Prova ad avviare il gioco.</sys:String>
<!-- Loading Page -->
<sys:String x:Key="Loading:Loading">Caricamento delle Mod</sys:String>
<!-- Invalid Page -->
<sys:String x:Key="Invalid:Title">Non Valida</sys:String>
<sys:String x:Key="Invalid:PageTitle">Installazione non valida rilevata</sys:String>
<sys:String x:Key="Invalid:PageSubtitle">La tua installazione di BeatSaber è corrotta o invalida</sys:String>
<sys:String x:Key="Invalid:List:Header">Ciò accade se hai una copia piratata, oppure se hai installato una versione originale senza rimuovere quella piratata</sys:String>
<Span x:Key="Invalid:List:Line1">
Se la tua copia è piratata,
<Bold>ti invitiamo a compare il gioco
<Hyperlink NavigateUri="https://beatgames.com/" local:HyperlinkExtensions.IsExternal="True">
QUI
</Hyperlink>
</Bold>.
</Span>
<Span x:Key="Invalid:List:Line2">
Se la tua copia del gioco
<Bold>non è</Bold> piratata, ti invitiamo a
<Hyperlink NavigateUri="https://bsmg.wiki/support#clean-installation" local:HyperlinkExtensions.IsExternal="True">
reinstallare il gioco
</Hyperlink>.
</Span>
<Span x:Key="Invalid:List:Line3">
Se questo non aiuta, puoi sempre chiedere aiuto nel canale
<Span Foreground="Blue">#pc-help</Span> all'interno del
<Hyperlink NavigateUri="https://discord.gg/beatsabermods" local:HyperlinkExtensions.IsExternal="True">
Server Discord di BSMG
</Hyperlink>.
</Span>
<sys:String x:Key="Invalid:BoughtGame1">Se avevi la versione piratata, ma hai comprato il gioco</sys:String>
<sys:String x:Key="Invalid:SelectFolderButton">Seleziona cartella</sys:String>
<sys:String x:Key="Invalid:BoughtGame2">Dovrai riavviare Mod Assistant dopo aver cambiato la directory d'Installazione</sys:String>
<!-- OneClick Class -->
<sys:String x:Key="OneClick:MapDownloadFailed">Impossibile estrarre i dettagli della mappa.</sys:String>
<sys:String x:Key="OneClick:SongDownloadFailed">Impossibile scaricare il brano.</sys:String>
<sys:String x:Key="OneClick:SongDownload:Failed">Non sono riuscito a scaricare il brano.</sys:String>
<sys:String x:Key="OneClick:SongDownload:NetworkIssues">Ci possono essere problemi con BeatSaver e/o la tua connessione ad Internet.</sys:String>
<sys:String x:Key="OneClick:SongDownload:FailedTitle">Download del file ZIP della mappa fallito</sys:String>
<sys:String x:Key="OneClick:InstallDirNotFound">Directory d'installazione di Beat Saber non trovata.</sys:String>
<sys:String x:Key="OneClick:InstalledAsset">Installato: {0}</sys:String>
<sys:String x:Key="OneClick:AssetInstallFailed">Non sono riuscito ad installare la mappa.</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} Registrazione dei gestori OneClick™ riuscita!</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{0} De-Regitrazione dei gestori OneClick™ riuscita!</sys:String>
<sys:String x:Key="OneClick:Installing">Installing: {0}</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="OneClick:RatelimitSkip">Max tries reached: Skipping {0}</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="OneClick:RatelimitHit">Ratelimit hit. Resuming in {0}</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="OneClick:Failed">Download failed: {0}</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="OneClick:Done">Done'd</sys:String> <!-- NEEDS TRANSLATING -->
<!-- Themes Class -->
<sys:String x:Key="Themes:ThemeNotFound">Tema non trovato, ritorno al tema predefinito...</sys:String>
<sys:String x:Key="Themes:ThemeSet">Tema impostato su {0}.</sys:String>
<sys:String x:Key="Themes:ThemeMissing">{0} non esiste.</sys:String>
<sys:String x:Key="Themes:SavedTemplateTheme">Template del tema &quot;{0}&quot; salvato nella cartella Themes.</sys:String>
<sys:String x:Key="Themes:TemplateThemeExists">Template del tema già esistente!</sys:String>
<sys:String x:Key="Themes:FailedToLoadXaml">Impossibile caricare il file .xaml per il tema {0}: {1}</sys:String>
<!-- Updater Class -->
<sys:String x:Key="Updater:CheckFailed">Impossibile controllare gli aggiornamenti.</sys:String>
<sys:String x:Key="Updater:DownloadFailed">Impossibile scaricare l'aggiornamento.</sys:String>
<!-- Utils Class -->
<sys:String x:Key="Utils:NotificationTitle">Mod Assistant</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">Impossibile determinare automaticamente la directory d'installazione di Beat Saber. Ti invitiamo a selezionarla manualmente.</sys:String>
<sys:String x:Key="Utils:RunAsAdmin">Mod Assistant ha bisogno di eseguire questa azione come Amministratore. Ti invitiamo a riprovare.</sys:String>
<sys:String x:Key="Utils:InstallDir:DialogTitle">Seleziona la directory d'installazione di Beat Saber</sys:String>
<sys:String x:Key="Utils:CannotOpenFolder">Impossibile aprire la seguente cartella: {0}</sys:String>
</ResourceDictionary>

View File

@ -1,251 +0,0 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ModAssistant"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="ResourceDictionaryName">i18n:ko-KR</sys:String>
<!-- App -->
<sys:String x:Key="App:InstallDirDialog:Title">비트세이버 설치 폴더를 찾을 수 없습니다!</sys:String>
<sys:String x:Key="App:InstallDirDialog:OkCancel">OK를 눌러 재시도하거나, Cancel을 눌러 프로그램을 종료할 수 있습니다.</sys:String>
<sys:String x:Key="App:InvalidArgument">유효하지 않은 인수입니다! '{0}'은 옵션을 필요로 합니다.</sys:String>
<sys:String x:Key="App:UnrecognizedArgument">인식할 수 없는 인수입니다. 모드 어시스턴트를 종료합니다.</sys:String>
<sys:String x:Key="App:UnhandledException">처리되지 않은 예외가 발생했습니다.</sys:String>
<sys:String x:Key="App:Exception">예외</sys:String>
<!-- Main Window -->
<sys:String x:Key="MainWindow:WindowTitle">모드 어시스턴트</sys:String>
<sys:String x:Key="MainWindow:IntroButton">인트로</sys:String>
<sys:String x:Key="MainWindow:ModsButton">모드</sys:String>
<sys:String x:Key="MainWindow:AboutButton">정보</sys:String>
<sys:String x:Key="MainWindow:OptionsButton">옵션</sys:String>
<sys:String x:Key="MainWindow:GameVersionLabel">게임 버전</sys:String>
<sys:String x:Key="MainWindow:VersionLabel">버전</sys:String>
<sys:String x:Key="MainWindow:ModInfoButton">모드 설명</sys:String>
<sys:String x:Key="MainWindow:InstallButtonTop">설치</sys:String>
<sys:String x:Key="MainWindow:InstallButtonBottom">또는 업데이트</sys:String>
<sys:String x:Key="MainWindow:GameVersionLoadFailed">게임 버전을 로드할 수 없었기 때문에 모드 탭이 비활성화됩니다.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Title">새로운 게임 버전이 감지되었습니다!</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line1">게임 업데이트가 있었던 것 같습니다.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line2">왼쪽 아래에 선택된 버전이 맞는 버전인지 다시 한번 확인해주세요!</sys:String>
<sys:String x:Key="MainWindow:NoModSelected">아무런 모드도 선택되지 않았습니다!</sys:String>
<sys:String x:Key="MainWindow:NoModInfoPage">{0}는 설명 페이지를 가지고 있지 않습니다.</sys:String>
<!-- Intro Page -->
<sys:String x:Key="Intro:Title">인트로</sys:String>
<sys:String x:Key="Intro:PageTitle">모드 어시스턴트에 어서오세요</sys:String>
<sys:String x:Key="Intro:Terms:Header">이 페이지를 정독해주세요</sys:String>
<Span x:Key="Intro:Terms:Line1">
이 프로그램을 사용하려면 다음 약관을 읽고 동의해야 합니다:
</Span>
<Span x:Key="Intro:Terms:Line2">
비트세이버는 공식적으로 모드를
<Bold>지원하지 않습니다.</Bold>
</Span>
<Span x:Key="Intro:Terms:Term1">
이것은 모드들이 매 업데이트마다
<Bold>망가진다는 것을</Bold> 의미합니다. 이것은 일반적이며, Beat Games의 탓이
<Bold>아닙니다.</Bold>
</Span>
<Span x:Key="Intro:Terms:Term2">
모드들은 버그와 성능 문제를
<Bold>발생시킵니다.</Bold> 이것은 Beat Games의 탓이
<Bold>아닙니다.</Bold>
</Span>
<Span x:Key="Intro:Terms:Term3">
모드들은
<Bold>무료로</Bold> 만들어졌으며 모더들의
<Bold>소중한 시간의 결과물입니다.</Bold> 기다림을 갖고 이해해주세요.
</Span>
<Span x:Key="Intro:ReviewsBeatGamesFault">
모드가 망가진 것 때문에 게임에 대한 부정적인 의견을 <Bold>남기지 마세요.</Bold> 이것은 Beat Games의 탓이
<Bold>아닙니다.</Bold>
<LineBreak/> Beat Games는 모드를 죽이려 하지 않습니다.
</Span>
<Span x:Key="Intro:ReviewsRustySpoon">
만일 사람들이 모드가
<Italic>망가진 것을 이유로</Italic> 부정적인 의견을 남기는 것이 계속된다면,
<LineBreak/>
<Bold>쥐도새도 모르게 모드가 사라질지도 모릅니다.</Bold>
</Span>
<Span x:Key="Intro:WikiGuide">
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bsmg.wiki/pc-modding.html">
위키
</Hyperlink>에 있는 초보자 가이드를 읽어주세요.
</Span>
<sys:String x:Key="Intro:AgreeButton">동의합니다</sys:String>
<sys:String x:Key="Intro:DisagreeButton">거부합니다</sys:String>
<sys:String x:Key="Intro:ClosingApp">어플리케이션을 종료합니다: 당신은 약관에 동의하지 않았습니다.</sys:String>
<sys:String x:Key="Intro:VersionDownloadFailed">버전 리스트를 다운로드할 수 없었습니다</sys:String>
<sys:String x:Key="Intro:ModsTabDisabled">모드 탭이 비활성화되었습니다. 어시스턴트를 재시작해주세요.</sys:String>
<sys:String x:Key="Intro:ModsTabEnabled">이제 모드 탭을 사용할 수 있습니다!</sys:String>
<!-- Mods Page -->
<sys:String x:Key="Mods:Title">모드</sys:String>
<sys:String x:Key="Mods:Header:Name">이름</sys:String>
<sys:String x:Key="Mods:Header:Installed">설치 버전</sys:String>
<sys:String x:Key="Mods:Header:Latest">최신 버전</sys:String>
<sys:String x:Key="Mods:Header:Description">설명</sys:String>
<sys:String x:Key="Mods:Header:Uninstall">제거</sys:String>
<sys:String x:Key="Mods:UninstallButton">제거</sys:String>
<sys:String x:Key="Mods:LoadFailed">모드 목록을 불러올 수 없었습니다</sys:String>
<sys:String x:Key="Mods:CheckingInstalledMods">설치된 모드들을 확인하고 있습니다</sys:String>
<sys:String x:Key="Mods:LoadingMods">모드들을 불러오고 있습니다</sys:String>
<sys:String x:Key="Mods:FinishedLoadingMods">모드들을 불러왔습니다</sys:String>
<sys:String x:Key="Mods:NoMods">이 비트세이버 버전에선 사용할 수 있는 모드가 없습니다</sys:String>
<sys:String x:Key="Mods:InstallingMod">Installing {0}</sys:String>
<sys:String x:Key="Mods:InstalledMod">Installed {0}</sys:String>
<sys:String x:Key="Mods:FinishedInstallingMods">모드 설치를 마쳤습니다</sys:String>
<sys:String x:Key="Mods:ModDownloadLinkMissing">{0}를 위한 다운로드 링크를 찾을 수 없었습니다</sys:String>
<sys:String x:Key="Mods:UninstallBox:Title">{0}를 제거하시겠습니까?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body1">정말로 {0}를 제거하시겠습니까?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body2">다른 모드를 사용 못하게 만들 수도 있습니다.</sys:String>
<sys:String x:Key="Mods:FailedExtract">{0}를 추출하는데 실패했습니다. {1}초 안에 재시도합니다. ({2}/{3})</sys:String>
<sys:String x:Key="Mods:FailedExtractMaxReached">({1})회동안 {0}를 추출하는데 실패했습니다. 이 모드가 제대로 작동하지 않을지도 모릅니다</sys:String>
<sys:String x:Key="Mods:SearchLabel">검색 중...</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Title">BSIPA 제거에 실패하였습니다</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Body">설치된 BSIPA 를 찾을 수 없습니다. 제거하지 못했습니다.</sys:String>
<!-- About Page -->
<sys:String x:Key="About:Title">정보</sys:String>
<sys:String x:Key="About:PageTitle">모드 어시스턴트에 대하여</sys:String>
<sys:String x:Key="About:List:Header">I'm Assistant, and I made Mod Assistant for mod assistance, with a few principles in mind:</sys:String>
<sys:String x:Key="About:List:Item1">Simplicity</sys:String>
<sys:String x:Key="About:List:Item2">Portability</sys:String>
<sys:String x:Key="About:List:Item3">Single Executable</sys:String>
<sys:String x:Key="About:List:Item4">Responsible use</sys:String>
<Span x:Key="About:SupportAssistant">
If you enjoy this program and would like to support me, please visit my
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bs.assistant.moe/Donate/">
donation page
</Hyperlink>
or my
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://www.patreon.com/AssistantMoe">
Patreon
</Hyperlink>
</Span>
<sys:String x:Key="About:SpecialThanks">Special Thanks ♥</sys:String>
<sys:String x:Key="About:Donate">Donate</sys:String>
<sys:String x:Key="About:HeadpatsButton">Headpats</sys:String>
<sys:String x:Key="About:HugsButton">Hugs</sys:String>
<!-- Options Page -->
<sys:String x:Key="Options:Title">옵션</sys:String>
<sys:String x:Key="Options:PageTitle">설정</sys:String>
<sys:String x:Key="Options:InstallFolder">설치 폴더</sys:String>
<sys:String x:Key="Options:SelectFolderButton">폴더 선택</sys:String>
<sys:String x:Key="Options:OpenFolderButton">폴더 열기</sys:String>
<sys:String x:Key="Options:SaveSelectedMods">선택된 모드 저장</sys:String>
<sys:String x:Key="Options:CheckInstalledMods">설치된 모드 감지</sys:String>
<sys:String x:Key="Options:SelectInstalledMods">설치된 모드 선택</sys:String>
<sys:String x:Key="Options:ReinstallInstalledMods">설치된 모드 재설치</sys:String>
<sys:String x:Key="Options:EnableOneClickInstalls">OneClick™ 설치 활성화</sys:String>
<sys:String x:Key="Options:BeatSaver">BeatSaver</sys:String>
<sys:String x:Key="Options:ModelSaber">ModelSaber</sys:String>
<sys:String x:Key="Options:Playlists">Playlists</sys:String>
<sys:String x:Key="Options:CloseWindow">완료되면 창 닫기</sys:String>
<sys:String x:Key="Options:GameType">게임 유형</sys:String>
<sys:String x:Key="Options:GameType:Steam">Steam</sys:String>
<sys:String x:Key="Options:GameType:Oculus">Oculus</sys:String>
<sys:String x:Key="Options:Tools">도구</sys:String>
<sys:String x:Key="Options:InstallPlaylist">재생목록 설치</sys:String>
<sys:String x:Key="Options:InstallingPlaylist">재생목록 설치 중 : {0}</sys:String>
<sys:String x:Key="Options:FailedPlaylistSong">실패한 노래: {0}</sys:String>
<sys:String x:Key="Options:FinishedPlaylist">[{0} 실패] 재생목록 설치 완료: {1}</sys:String>
<sys:String x:Key="Options:ShowOCIWindow">OneClick™ 설치 윈도우 보기</sys:String>
<sys:String x:Key="Options:OCIWindowYes">예</sys:String>
<sys:String x:Key="Options:OCIWindowClose">닫기</sys:String>
<sys:String x:Key="Options:OCIWindowNo">아니오</sys:String>
<sys:String x:Key="Options:Diagnostics">진단</sys:String>
<sys:String x:Key="Options:OpenLogsButton">로그 열기</sys:String>
<sys:String x:Key="Options:OpenAppDataButton">앱데이터 열기</sys:String>
<sys:String x:Key="Options:UninstallBSIPAButton">BSIPA 삭제</sys:String>
<sys:String x:Key="Options:RemoveAllModsButton">모든 모드 삭제</sys:String>
<sys:String x:Key="Options:ApplicationTheme">어플리케이션 테마</sys:String>
<sys:String x:Key="Options:ExportTemplateButton">템플릿 추출</sys:String>
<sys:String x:Key="Options:UploadingLog">로그 제출</sys:String>
<sys:String x:Key="Options:LogUrlCopied">로그 URL이 클립보드에 복사되었습니다!</sys:String>
<sys:String x:Key="Options:LogUploadFailed">로그 제출에 실패하였습니다</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Title">로그 제출에 실패하였습니다!</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Body">Teknik에게 로그 파일을 제출하는데에 실패하였습니다. 재시도하거나 수동으로 파일을 보내주세요.</sys:String>
<sys:String x:Key="Options:GettingModList">모드 목록을 얻는중입니다</sys:String>
<sys:String x:Key="Options:FindingBSIPAVersion">BSIPA 버전을 찾는중입니다</sys:String>
<sys:String x:Key="Options:BSIPAUninstalled">BSIPA가 제거되었습니다</sys:String>
<sys:String x:Key="Options:YeetModsBox:Title">모든 모드를 제거할까요?</sys:String>
<sys:String x:Key="Options:YeetModsBox:RemoveAllMods">정말로 모든 모드를 제거할까요?</sys:String>
<sys:String x:Key="Options:YeetModsBox:CannotBeUndone">이것은 취소할 수 없습니다.</sys:String>
<sys:String x:Key="Options:AllModsUninstalled">모든 모드가 제거되었습니다</sys:String>
<sys:String x:Key="Options:CurrentThemeRemoved">현재 테마를 제거중입니다. 원래 테마로 돌아갑니다...</sys:String>
<sys:String x:Key="Options:ThemeFolderNotFound">테마 폴더를 찾을 수 없습니다! 템플릿으로 내보냅니다...</sys:String>
<sys:String x:Key="Options:AppDataNotFound">AppData 폴더를 찾을 수 없습니다! 게임을 실행해보세요.</sys:String>
<!-- Loading Page -->
<sys:String x:Key="Loading:Loading">모드 로딩중</sys:String>
<!-- Invalid Page -->
<sys:String x:Key="Invalid:Title">잘못된 프로그램</sys:String>
<sys:String x:Key="Invalid:PageTitle">잘못된 프로그램 설치가 감지되었습니다</sys:String>
<sys:String x:Key="Invalid:PageSubtitle">게임이 손상되었거나 다른 이유로 잘못된 것 같습니다</sys:String>
<sys:String x:Key="Invalid:List:Header">이 오류는 게임이 불법적인 경로로 받아졌거나, 불법적인 경로로 받아진 게임을 당신의 정상적인 게임에 덮어씌워졌을 때에 발생합니다</sys:String>
<Span x:Key="Invalid:List:Line1">
만일 당신이 게임을 불법적인 경로로 받았다면,
<Bold>
<Hyperlink NavigateUri="https://beatgames.com/" local:HyperlinkExtensions.IsExternal="True">
여기서
</Hyperlink>
</Bold>게임을 구매해주세요.
</Span>
<Span x:Key="Invalid:List:Line2">
만일 당신의 게임이 불법적인 경로로 받아진게
<Bold>아니라면</Bold>,
<Hyperlink NavigateUri="https://bsmg.wiki/support#clean-installation" local:HyperlinkExtensions.IsExternal="True">
클린재설치
</Hyperlink>를 해주세요.
</Span>
<Span x:Key="Invalid:List:Line3">
만일 그것들이 도움되지 않았다면,
<Hyperlink NavigateUri="https://discord.gg/beatsabermods" local:HyperlinkExtensions.IsExternal="True">
BSMG
</Hyperlink>의
<Span Foreground="Blue">#pc-help</Span> 채널에서 도움을 구하세요.
</Span>
<sys:String x:Key="Invalid:BoughtGame1">만일 불법적인 경로로 받아진 게임을 가지고 있었다가 게임을 구매했다면,</sys:String>
<sys:String x:Key="Invalid:SelectFolderButton">폴더를 선택해주세요</sys:String>
<sys:String x:Key="Invalid:BoughtGame2">정상적인 설치 이후 모드 어시스턴트를 재시작할 필요가 있습니다</sys:String>
<!-- OneClick Class -->
<sys:String x:Key="OneClick:MapDownloadFailed">맵의 세부정보를 얻어올 수 없었습니다.</sys:String>
<sys:String x:Key="OneClick:SongDownloadFailed">곡을 받아올 수 없었습니다.</sys:String>
<sys:String x:Key="OneClick:SongDownload:Failed">곡을 받아올 수 없었습니다.</sys:String>
<sys:String x:Key="OneClick:SongDownload:NetworkIssues">BeatSaver 또는 당신의 인터넷 연결에 문제가 있는 것 같습니다.</sys:String>
<sys:String x:Key="OneClick:SongDownload:FailedTitle">노래 ZIP 파일을 받는 데에 실패했습니다.</sys:String>
<sys:String x:Key="OneClick:InstallDirNotFound">비트세이버 설치 폴더를 찾을 수 없었습니다.</sys:String>
<sys:String x:Key="OneClick:InstalledAsset">설치됨: {0}</sys:String>
<sys:String x:Key="OneClick:AssetInstallFailed">설치에 실패하였습니다.</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} OneClick™ 설치 관리자가 등록되었습니다!</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{0} OneClick™ 설치 관리자가 등록 취소되었습니다!</sys:String>
<sys:String x:Key="OneClick:Installing">설치중: {0}</sys:String>
<sys:String x:Key="OneClick:RatelimitSkip">최대 시도 횟수 도달: {0} 건너뜀</sys:String>
<sys:String x:Key="OneClick:RatelimitHit">요청 제한 도달. {0} 재시도</sys:String>
<sys:String x:Key="OneClick:Failed">다운로드 실패: {0}</sys:String>
<sys:String x:Key="OneClick:Done">완료</sys:String>
<!-- Themes Class -->
<sys:String x:Key="Themes:ThemeNotFound">테마를 찾을 수 없어, 기본 테마로 돌아갑니다...</sys:String>
<sys:String x:Key="Themes:ThemeSet">{0} 테마로 설정합니다.</sys:String>
<sys:String x:Key="Themes:ThemeMissing">{0}는 존재하지 않습니다.</sys:String>
<sys:String x:Key="Themes:SavedTemplateTheme">템플릿 테마 &quot;{0}&quot;가 템플릿 폴더에 저장되었습니다.</sys:String>
<sys:String x:Key="Themes:TemplateThemeExists">템플릿 테마가 이미 존재합니다!</sys:String>
<sys:String x:Key="Themes:FailedToLoadXaml">테마를 위한 .xaml 파일을 불러오지 못했습니다 {0}: {1}</sys:String>
<!-- Updater Class -->
<sys:String x:Key="Updater:CheckFailed">업데이트를 확인할 수 없습니다.</sys:String>
<sys:String x:Key="Updater:DownloadFailed">업데이트를 다운로드할 수 없습니다.</sys:String>
<!-- Utils Class -->
<sys:String x:Key="Utils:NotificationTitle">모드 어시스턴트</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">비트세이버 설치 폴더를 찾을 수 없습니다. 수동으로 선택해주세요.</sys:String>
<sys:String x:Key="Utils:RunAsAdmin">모드 어시스턴트는 이 작업을 관리자 권한으로 실행하는 것을 필요로 합니다. 다시 시도해주세요.</sys:String>
<sys:String x:Key="Utils:InstallDir:DialogTitle">비트세이버 설치 폴더를 선택해주세요</sys:String>
<sys:String x:Key="Utils:CannotOpenFolder">폴더를 열 수 없습니다: {0}</sys:String>
</ResourceDictionary>

View File

@ -1,255 +0,0 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ModAssistant"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="ResourceDictionaryName">i18n:nb-NO</sys:String>
<!-- App -->
<sys:String x:Key="App:InstallDirDialog:Title">Fant ikke installasjonsmappen til Beat Saber!</sys:String>
<sys:String x:Key="App:InstallDirDialog:OkCancel">Trykk Ok for å prøve igjen eller Avbryt for å avslutte.</sys:String>
<sys:String x:Key="App:InvalidArgument">Feil parameter! '{0}' krever en verdi.</sys:String>
<sys:String x:Key="App:UnrecognizedArgument">Ukjent parameter. Lukker Mod Assistant.</sys:String>
<sys:String x:Key="App:UnhandledException">Et uhåndtert unntak har oppstått</sys:String>
<sys:String x:Key="App:Exception">Unntak</sys:String>
<!-- Main Window -->
<sys:String x:Key="MainWindow:WindowTitle">Mod Assistant</sys:String>
<sys:String x:Key="MainWindow:IntroButton">Intro</sys:String>
<sys:String x:Key="MainWindow:ModsButton">Mods</sys:String>
<sys:String x:Key="MainWindow:AboutButton">Om</sys:String>
<sys:String x:Key="MainWindow:OptionsButton">Oppsett</sys:String>
<sys:String x:Key="MainWindow:GameVersionLabel">Spillversjon</sys:String>
<sys:String x:Key="MainWindow:VersionLabel">Versjon</sys:String>
<sys:String x:Key="MainWindow:ModInfoButton">Modinformation</sys:String>
<sys:String x:Key="MainWindow:InstallButtonTop">Installer</sys:String>
<sys:String x:Key="MainWindow:InstallButtonBottom">eller oppdater</sys:String>
<sys:String x:Key="MainWindow:GameVersionLoadFailed">Klarte ikke hente spillversjonen, Mod-fanen er derfor ikke tilgjengelig.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Title">Ny spillversjon er tilgjengelig!</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line1">Spillet ser ut til å ha fått en oppdatering.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line2">Dobbeltsjekk at rett versjon er valgt nede i venstre hjørnet!</sys:String>
<sys:String x:Key="MainWindow:NoModSelected">Ingen mods er valgt!</sys:String>
<sys:String x:Key="MainWindow:NoModInfoPage">{0} Denne mod har ingen informasjonsside. </sys:String>
<!-- Intro Page -->
<sys:String x:Key="Intro:Title">Intro</sys:String>
<sys:String x:Key="Intro:PageTitle">Velkommen til Mod Assistant</sys:String>
<sys:String x:Key="Intro:Terms:Header">Vennligst les hele denne siden nøye.</sys:String>
<Span x:Key="Intro:Terms:Line1">
Ved å benytte dette programmet bekrefter du at du har lest og godkjent følgende vilkår:
</Span>
<Span x:Key="Intro:Terms:Line2">
Beat Saber
har <Bold>ikke</Bold> innebygget støtte for mods.
<LineBreak /> Det betyr at:
</Span>
<Span x:Key="Intro:Terms:Term1">
Mods kommer til å
<Bold>slutte å fungere</Bold> etter hver oppdatering. Dette er standard og
<Bold>ikke</Bold> Beat Games sin feil.
</Span>
<Span x:Key="Intro:Terms:Term2">
Mods
kommer til å
<Bold>forårsake feil og ytelseproblemer
</Bold> . Dette er
<Bold>ikke</Bold> Beat Games sin feil.
</Span>
<Span x:Key="Intro:Terms:Term3">
Mods utvikles
<Bold>gratis</Bold> av mennesker på deres
<Bold>fritid.</Bold> Vennligst ha tålmodighet og vis forståelse for det.
</Span>
<Span x:Key="Intro:ReviewsBeatGamesFault">
<Bold>IKKE SKRIV</Bold> negative anmeldelser på grunn av at mods slutter å fungere. Det er
<Bold>ikke</Bold> Beat Games sin feil.
<LineBreak/> De prøver ikke å "drepe" mods.
</Span>
<Span x:Key="Intro:ReviewsRustySpoon">
Hvis jeg ser mennesker som skriver negative anmeldelser
<Italic>på grunn av</Italic> at mods slutter å fungere, kommer jeg
<LineBreak/>
<Bold>personlig til å avlive hele moddingvirksomheten med en rusten skje.</Bold>
</Span>
<Span x:Key="Intro:WikiGuide">
Vennligst les guiden på
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bsmg.wiki/pc-modding.html">
Wikisiden
</Hyperlink>.
</Span>
<sys:String x:Key="Intro:AgreeButton">Godkjenner</sys:String>
<sys:String x:Key="Intro:DisagreeButton">Nekter</sys:String>
<sys:String x:Key="Intro:ClosingApp">Lukker programmet: Du godkjente ikke vilkårene.</sys:String>
<sys:String x:Key="Intro:VersionDownloadFailed">Klarte ikke å hente liste med versjoner.</sys:String>
<sys:String x:Key="Intro:ModsTabDisabled">Mod-fanen er ikke tilgjengelig. Vennligst start på nytt for å prøve igjen.</sys:String>
<sys:String x:Key="Intro:ModsTabEnabled">Du har nå tilgang til Mod-fanen!</sys:String>
<!-- Mods Page -->
<sys:String x:Key="Mods:Title">Mods</sys:String>
<sys:String x:Key="Mods:Header:Name">Navn</sys:String>
<sys:String x:Key="Mods:Header:Installed">Installert</sys:String>
<sys:String x:Key="Mods:Header:Latest">Siste</sys:String>
<sys:String x:Key="Mods:Header:Description">Beskrivelse</sys:String>
<sys:String x:Key="Mods:Header:Uninstall">Avinstallere</sys:String>
<sys:String x:Key="Mods:UninstallButton">Avinstaller</sys:String>
<sys:String x:Key="Mods:LoadFailed">Klarte ikke laste mod-listen</sys:String>
<sys:String x:Key="Mods:CheckingInstalledMods">Sjekker installerte mods</sys:String>
<sys:String x:Key="Mods:LoadingMods">Laster inn Mods</sys:String>
<sys:String x:Key="Mods:FinishedLoadingMods">Mods er lastet</sys:String>
<sys:String x:Key="Mods:NoMods">Ingen mods er tilgjengelig for denne versjonen av Beat Saber</sys:String>
<sys:String x:Key="Mods:InstallingMod">Installerer {0}</sys:String>
<sys:String x:Key="Mods:InstalledMod">Installerte {0}</sys:String>
<sys:String x:Key="Mods:FinishedInstallingMods">Mods er installert</sys:String>
<sys:String x:Key="Mods:ModDownloadLinkMissing">Fant ingen nedlastningslenke for {0}</sys:String>
<sys:String x:Key="Mods:UninstallBox:Title">Avinstallere {0}?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body1">Er du sikker på at du vil avinstallere {0}?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body2">Dette kan forårsake at andre mods slutter å fungere</sys:String>
<sys:String x:Key="Mods:FailedExtract">Utpakking av {0} feilet, prøver igjen om {1} sekunder. ({2}/{3})</sys:String>
<sys:String x:Key="Mods:FailedExtractMaxReached">Utpakking av {0} feilet alle forsøk ({1}), hopper over. Denne moden fungerer muligens ikke, så fortsett på eget ansvar.</sys:String>
<sys:String x:Key="Mods:SearchLabel">Søk...</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Title">Klarte ikke avinstallere BSIPA</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Body">Fant ingen BSIPA-installasjon, hopper over avinstallering.</sys:String>
<!-- About Page -->
<sys:String x:Key="About:Title">Om</sys:String>
<sys:String x:Key="About:PageTitle">Om Mod Assistant</sys:String>
<sys:String x:Key="About:List:Header">Jeg er Assistant, og jeg lagde Mod Assistant for mod-assistanse med noen grunnleggende prinsipper:</sys:String>
<sys:String x:Key="About:List:Item1">Enkelhet</sys:String>
<sys:String x:Key="About:List:Item2">Portabilitet</sys:String>
<sys:String x:Key="About:List:Item3">En enkeltstående, kjørbar fil</sys:String>
<sys:String x:Key="About:List:Item4">Ansvarsfull bruk</sys:String>
<Span x:Key="About:SupportAssistant">
Om du liker programmet og vil støtte meg, kan du besøke min
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bs.assistant.moe/Donate/">
donasjonsside
</Hyperlink>
eller min
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://www.patreon.com/AssistantMoe">
Patreon
</Hyperlink>
</Span>
<sys:String x:Key="About:SpecialThanks">Ekstra takk ♥</sys:String>
<sys:String x:Key="About:Donate">Donere</sys:String>
<sys:String x:Key="About:HeadpatsButton">Klapp på hodet</sys:String>
<sys:String x:Key="About:HugsButton">Klem</sys:String>
<!-- Options Page -->
<sys:String x:Key="Options:Title">Innstillinger</sys:String>
<sys:String x:Key="Options:PageTitle">Oppsett</sys:String>
<sys:String x:Key="Options:InstallFolder">Installationsmappe</sys:String>
<sys:String x:Key="Options:SelectFolderButton">Velg mappe</sys:String>
<sys:String x:Key="Options:OpenFolderButton">Åpne mappe</sys:String>
<sys:String x:Key="Options:SaveSelectedMods">Lagre valgte mods</sys:String>
<sys:String x:Key="Options:CheckInstalledMods">Sjekk installerte mods</sys:String>
<sys:String x:Key="Options:SelectInstalledMods">Velg installerte mods</sys:String>
<sys:String x:Key="Options:ReinstallInstalledMods">Reinstaller installerte mods</sys:String>
<sys:String x:Key="Options:EnableOneClickInstalls">Aktiver OneClick™-installasjoner</sys:String>
<sys:String x:Key="Options:BeatSaver">BeatSaver</sys:String>
<sys:String x:Key="Options:ModelSaber">ModelSaber</sys:String>
<sys:String x:Key="Options:Playlists">Spillelister</sys:String>
<sys:String x:Key="Options:CloseWindow">Lukk vinduet når det er ferdig</sys:String>
<sys:String x:Key="Options:GameType">Spillvariant</sys:String>
<sys:String x:Key="Options:GameType:Steam">Steam</sys:String>
<sys:String x:Key="Options:GameType:Oculus">Oculus</sys:String>
<sys:String x:Key="Options:Tools">Verktøy</sys:String>
<sys:String x:Key="Options:InstallPlaylist">Installer spilleliste</sys:String>
<sys:String x:Key="Options:InstallingPlaylist">Installerer spillelisten: {0}</sys:String>
<sys:String x:Key="Options:FailedPlaylistSong">Mislykket låt: {0}</sys:String>
<sys:String x:Key="Options:FinishedPlaylist">[{0} feil] Ferdig med å installere spillelister: {1}</sys:String>
<sys:String x:Key="Options:ShowOCIWindow">Vis OneClick installasjonsvindu</sys:String>
<sys:String x:Key="Options:OCIWindowYes">Ja</sys:String>
<sys:String x:Key="Options:OCIWindowClose">Lukk</sys:String>
<sys:String x:Key="Options:OCIWindowNo">Nei</sys:String>
<sys:String x:Key="Options:Diagnostics">Diagnostikkverktøy</sys:String>
<sys:String x:Key="Options:OpenLogsButton">Åpne logg</sys:String>
<sys:String x:Key="Options:OpenAppDataButton">Åpne AppData</sys:String>
<sys:String x:Key="Options:UninstallBSIPAButton">Avinstallere BSIPA</sys:String>
<sys:String x:Key="Options:RemoveAllModsButton">Fjern alle mods</sys:String>
<sys:String x:Key="Options:ApplicationTheme">Applikasjonstema</sys:String>
<sys:String x:Key="Options:ExportTemplateButton">Eksporter mal</sys:String>
<sys:String x:Key="Options:UploadingLog">Laster opp logg</sys:String>
<sys:String x:Key="Options:LogUrlCopied">Logg-URL ble kopiert!</sys:String>
<sys:String x:Key="Options:LogUploadFailed">Opplasting av logg feilet</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Title">Opplasting av logg feilet!</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Body">Klarte ikke laste opp loggen til Teknik, prøv igjen eller last den opp manuelt</sys:String>
<sys:String x:Key="Options:GettingModList">Henter mod-liste</sys:String>
<sys:String x:Key="Options:FindingBSIPAVersion">Leter etter BSIPA-versjon</sys:String>
<sys:String x:Key="Options:BSIPAUninstalled">BSIPA ble avinstallert</sys:String>
<sys:String x:Key="Options:YeetModsBox:Title">Avinstallere alle mods?</sys:String>
<sys:String x:Key="Options:YeetModsBox:RemoveAllMods">Er du sikker på at du vil avinstallere alle mods?</sys:String>
<sys:String x:Key="Options:YeetModsBox:CannotBeUndone">Du kan ikke angre.</sys:String>
<sys:String x:Key="Options:AllModsUninstalled">Alle mods er nå avinstallert.</sys:String>
<sys:String x:Key="Options:CurrentThemeRemoved">Temaet du benytter har blitt slettet, bytter til standardtema...</sys:String>
<sys:String x:Key="Options:ThemeFolderNotFound">Fant ikke temamappen! Prøv å eksportere malen...</sys:String>
<sys:String x:Key="Options:AppDataNotFound">Fant ikke AppData-mappen! Prøv å starte spillet.</sys:String>
<!-- Loading Page -->
<sys:String x:Key="Loading:Loading">Laster mods</sys:String>
<!-- Invalid Page -->
<sys:String x:Key="Invalid:Title">Ugyldig</sys:String>
<sys:String x:Key="Invalid:PageTitle">Fant en ugyldig installasjon</sys:String>
<sys:String x:Key="Invalid:PageSubtitle">Spillinstallasjonen din er brukket eller fungerer ikke av andre årsaker.</sys:String>
<sys:String x:Key="Invalid:List:Header">Dette kan skje dersom du har en piratversjon av spillet eller kopiert en priatversjon over din gyldige versjon av spillet.</sys:String>
<Span x:Key="Invalid:List:Line1">
Hvis du har en piratversjon,
<Bold>vennligst kjøp spillet
<Hyperlink NavigateUri="https://beatgames.com/" local:HyperlinkExtensions.IsExternal="True">
HER
</Hyperlink>
</Bold>.
</Span>
<Span x:Key="Invalid:List:Line2">
Om din kopi av spillet
<Bold>ikke</Bold> er piratkopiert, vennligst
<Hyperlink NavigateUri="https://bsmg.wiki/support#clean-installation" local:HyperlinkExtensions.IsExternal="True">
installer spillet på nytt
</Hyperlink>.
</Span>
<Span x:Key="Invalid:List:Line3">
Hvis ingenting hjelper kan du be om hjelp i
<Span Foreground="Blue">#pc-help</Span> -kanalen i
<Hyperlink NavigateUri="https://discord.gg/beatsabermods" local:HyperlinkExtensions.IsExternal="True">
BSMG
</Hyperlink>.
</Span>
<sys:String x:Key="Invalid:BoughtGame1">Hvis du har spilt med en piratversjon før og kjøpt spillet i senere tid</sys:String>
<sys:String x:Key="Invalid:SelectFolderButton">Velg mappe</sys:String>
<sys:String x:Key="Invalid:BoughtGame2">Du må starte Mod Assistant på nytt etter du har byttet til en legitim installasjon</sys:String>
<!-- OneClick Class -->
<sys:String x:Key="OneClick:MapDownloadFailed">Kunne ikke laste kartdetaljer.</sys:String>
<sys:String x:Key="OneClick:SongDownloadFailed">Kunne ikke laste ned låta.</sys:String>
<sys:String x:Key="OneClick:SongDownload:Failed">Kunne ikke laste ned låta.</sys:String>
<sys:String x:Key="OneClick:SongDownload:NetworkIssues">Det kan være problemer med BeatSaver eller din internettoppkobling.</sys:String>
<sys:String x:Key="OneClick:SongDownload:FailedTitle">Klarte ikke laste ned ZIP-filen til låta.</sys:String>
<sys:String x:Key="OneClick:InstallDirNotFound">Fant ikke installasjonsmappen til Beat Saber.</sys:String>
<sys:String x:Key="OneClick:InstalledAsset">Installerte: {0}</sys:String>
<sys:String x:Key="OneClick:AssetInstallFailed">Klarte ikke installere.</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} OneClick™-installeringshåndterer ble registrert!</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{0} OneClick™-installeringshåndterer ble avregistrert!</sys:String>
<sys:String x:Key="OneClick:Installing">Installerer: {0}</sys:String>
<sys:String x:Key="OneClick:RatelimitSkip">Maks antall forsøk oppbrukt: hopper over {0}</sys:String>
<sys:String x:Key="OneClick:RatelimitHit">For mange forsøk på kort tid. Fortsetter om {0}</sys:String>
<sys:String x:Key="OneClick:Failed">Nedlasting mislykkes: {0}</sys:String>
<sys:String x:Key="OneClick:Done">Ferdig</sys:String>
<!-- Themes Class -->
<sys:String x:Key="Themes:ThemeNotFound">Fant ikke temaet, går tilbake til standardtema...</sys:String>
<sys:String x:Key="Themes:ThemeSet">Tema ble installert på {0}.</sys:String>
<sys:String x:Key="Themes:ThemeMissing">{0} eksisterer ikke.</sys:String>
<sys:String x:Key="Themes:SavedTemplateTheme">Temamal &quot;{0}&quot; ble lagret i temamappen.</sys:String>
<sys:String x:Key="Themes:TemplateThemeExists">Temamalen finnes allerede!</sys:String>
<sys:String x:Key="Themes:FailedToLoadXaml">Klarte ikke laste .xaml-filen for tema {0}: {1}</sys:String>
<!-- Updater Class -->
<sys:String x:Key="Updater:CheckFailed">Klarte ikke søke etter oppdateringer.</sys:String>
<sys:String x:Key="Updater:DownloadFailed">Klarte ikke laste ned oppdateringen.</sys:String>
<!-- Utils Class -->
<sys:String x:Key="Utils:NotificationTitle">Mod Assistant</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">Fant ikke installasjonsmappen til Beat Saber. Velg den manuelt.</sys:String>
<sys:String x:Key="Utils:RunAsAdmin">Mod Assistant må kjøres med adminrettigheter. Prøv igjen.</sys:String>
<sys:String x:Key="Utils:InstallDir:DialogTitle">Velg installasjonsmappen til Beat Saber</sys:String>
<sys:String x:Key="Utils:CannotOpenFolder">Klarte ikke åpne mappen: {0}</sys:String>
</ResourceDictionary>

View File

@ -1,250 +0,0 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ModAssistant"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="ResourceDictionaryName">i18n:nl-NL</sys:String>
<!-- App -->
<sys:String x:Key="App:InstallDirDialog:Title">Beat Saber installatiemap niet gevonden!</sys:String>
<sys:String x:Key="App:InstallDirDialog:OkCancel">Klik OK om het opnieuw te proberen of Annuleren om de toepassing af te sluiten.</sys:String>
<sys:String x:Key="App:InvalidArgument">Ongeldig argument! '{0}' heeft een optie nodig.</sys:String>
<sys:String x:Key="App:UnrecognizedArgument">Niet herkend argument. Mod Assistant sluit af.</sys:String>
<sys:String x:Key="App:UnhandledException">Een onverwachte foutcode is zojuist opgetreden</sys:String>
<sys:String x:Key="App:Exception">Foutcode</sys:String>
<!-- Main Window -->
<sys:String x:Key="MainWindow:WindowTitle">Mod Assistant</sys:String>
<sys:String x:Key="MainWindow:IntroButton">Introductie</sys:String>
<sys:String x:Key="MainWindow:ModsButton">Mods</sys:String>
<sys:String x:Key="MainWindow:AboutButton">Over</sys:String>
<sys:String x:Key="MainWindow:OptionsButton">Opties</sys:String>
<sys:String x:Key="MainWindow:GameVersionLabel">Game Versie</sys:String>
<sys:String x:Key="MainWindow:VersionLabel">Versie</sys:String>
<sys:String x:Key="MainWindow:ModInfoButton">Mod Info</sys:String>
<sys:String x:Key="MainWindow:InstallButtonTop">Installeren</sys:String>
<sys:String x:Key="MainWindow:InstallButtonBottom">of Update</sys:String>
<sys:String x:Key="MainWindow:GameVersionLoadFailed">Kan de game versie niet laden, Mods tabblad zal onbeschikbaar zijn.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Title">Nieuwe Game Versie Gedetecteerd!</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line1">Het lijkt erop dat er een game update is geweest.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line2">Controleer alstublieft of de correcte versie geselecteerd is linksonder in de hoek</sys:String>
<sys:String x:Key="MainWindow:NoModSelected">Geen mod geselecteerd!</sys:String>
<sys:String x:Key="MainWindow:NoModInfoPage">{0} heeft geen info pagina.</sys:String>
<!-- Intro Page -->
<sys:String x:Key="Intro:Title">Introductie</sys:String>
<sys:String x:Key="Intro:PageTitle">Welkom bij Mod Assistant</sys:String>
<sys:String x:Key="Intro:Terms:Header">Lees deze pagina alstublieft volledig en aandachtig door</sys:String>
<Span x:Key="Intro:Terms:Line1">
Door het gebruiken van dit programma verklaar ik de volgende voorwaarden te hebben gelezen en hiermee akkoord te gaan:
</Span>
<Span x:Key="Intro:Terms:Line2">
Beat Saber
Heeft <Bold>geen</Bold> ingebouwde ondersteuning voor mods, dit betekent dat:
</Span>
<Span x:Key="Intro:Terms:Term1">
Mods
Elke update <Bold>niet meer werken</Bold>, dit is normaal en <Bold>niet</Bold> de fout van Beat Games.
</Span>
<Span x:Key="Intro:Terms:Term2">
Mods
<Bold>zullen</Bold> bugs en prestatievermindering veroorzaken. Dit is <Bold>niet</Bold> een fout van Beat Games.
</Span>
<Span x:Key="Intro:Terms:Term3">
Mods worden
<Bold>gratis</Bold> gemaakt door mensen in hun
<Bold>vrije tijd.</Bold> Wees alstublieft geduldig en begripvol.
</Span>
<Span x:Key="Intro:ReviewsBeatGamesFault">
Laat <Bold>GEEN</Bold> negatieve beoordelingen achter op Beat Saber omdat mods niet meer werken. Dit is
<Bold>niet</Bold> de fout van Beat Games.
<LineBreak/> Ze proberen niet mods ontoegankelijk te maken.
</Span>
<Span x:Key="Intro:ReviewsRustySpoon">
Als ik blijf zien dat mensen negatieve reviews achterlaten
<Italic>omdat</Italic> mods niet meer werken,
<LineBreak/>
<Bold>zal ik persoonlijk met een roestige lepel mods niet meer laten werken</Bold>
</Span>
<Span x:Key="Intro:WikiGuide">
Lees alstublieft de 'Beginners Guide' op de
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bsmg.wiki/pc-modding.html">
Wiki
</Hyperlink>. (Engels)
</Span>
<sys:String x:Key="Intro:AgreeButton">Accepteer</sys:String>
<sys:String x:Key="Intro:DisagreeButton">Weiger</sys:String>
<sys:String x:Key="Intro:ClosingApp">Sluit toepassing af: U accepteerde de voorwaarden niet.</sys:String>
<sys:String x:Key="Intro:VersionDownloadFailed">Kon de versielijst niet downloaden</sys:String>
<sys:String x:Key="Intro:ModsTabDisabled">Mods tabblad uitgeschakeld. Herstart het programma om het opnieuw te proberen.</sys:String>
<sys:String x:Key="Intro:ModsTabEnabled">U kunt nu het mods tabblad gebruiken!</sys:String>
<!-- Mods Page -->
<sys:String x:Key="Mods:Title">Mods</sys:String>
<sys:String x:Key="Mods:Header:Name">Naam</sys:String>
<sys:String x:Key="Mods:Header:Installed">Geïnstalleerd</sys:String>
<sys:String x:Key="Mods:Header:Latest">Recentst</sys:String>
<sys:String x:Key="Mods:Header:Description">Beschrijving</sys:String>
<sys:String x:Key="Mods:Header:Uninstall">Deïnstalleer</sys:String>
<sys:String x:Key="Mods:UninstallButton">Deïnstalleer</sys:String>
<sys:String x:Key="Mods:LoadFailed">Kon de modlijst niet laden</sys:String>
<sys:String x:Key="Mods:CheckingInstalledMods">Geïnstalleerde mods controleren</sys:String>
<sys:String x:Key="Mods:LoadingMods">Mods Laden</sys:String>
<sys:String x:Key="Mods:FinishedLoadingMods">Klaar met mods laden</sys:String>
<sys:String x:Key="Mods:NoMods">Geen mods beschikbaar voor deze versie van Beat Saber</sys:String>
<sys:String x:Key="Mods:InstallingMod">{0} wordt geïnstalleerd</sys:String>
<sys:String x:Key="Mods:InstalledMod">{0} is geïnstalleerd</sys:String>
<sys:String x:Key="Mods:FinishedInstallingMods">Klaar met mods installeren</sys:String>
<sys:String x:Key="Mods:ModDownloadLinkMissing">Kon de download link voor {0} niet vinden</sys:String>
<sys:String x:Key="Mods:UninstallBox:Title">{0} deïnstalleren?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body1">Weet u zeker dat u {0} wil verwijderen?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body2">Dit zou uw andere mods niet meer kunnen laten werken</sys:String>
<sys:String x:Key="Mods:FailedExtract">Kon {0} niet uitpakken, probeer opniew over {1} seconden. ({2}/{3})</sys:String>
<sys:String x:Key="Mods:FailedExtractMaxReached">Kon {0} niet uitpakken na maximaal aantal pogingen ({1}), deze wordt nu overgeslagen. Deze mod werkt misschien niet goed, dus ga verder op eigen risico</sys:String>
<sys:String x:Key="Mods:SearchLabel">Zoek...</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Title">BSIPA deïnstallatie mislukt</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Body">BSIPA installatie niet gevonden, deïnstallatie overgeslagen.</sys:String>
<!-- About Page -->
<sys:String x:Key="About:Title">Over</sys:String>
<sys:String x:Key="About:PageTitle">Over Mod Assistant</sys:String>
<sys:String x:Key="About:List:Header">Ik ben Assistant, en ik heb Mod Assistant gemaakt om te assisteren met mods, met een aantal principes als basis:</sys:String>
<sys:String x:Key="About:List:Item1">Eenvoud</sys:String>
<sys:String x:Key="About:List:Item2">Draagbaarheid</sys:String>
<sys:String x:Key="About:List:Item3">Eén enkel uitvoerbaar bestand</sys:String>
<sys:String x:Key="About:List:Item4">Verantwoordelijk gebruik</sys:String>
<Span x:Key="About:SupportAssistant">
Als u dit programma nuttig vindt en mij graag wil steunen, ga dan naar mijn
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bs.assistant.moe/Donate/">
donatie pagina
</Hyperlink>
of mijn
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://www.patreon.com/AssistantMoe">
Patreon
</Hyperlink>
</Span>
<sys:String x:Key="About:SpecialThanks">Bijzondere dank ♥</sys:String>
<sys:String x:Key="About:Donate">Doneer</sys:String>
<sys:String x:Key="About:HeadpatsButton">Aai over je bol</sys:String>
<sys:String x:Key="About:HugsButton">Knuffels</sys:String>
<!-- Options Page -->
<sys:String x:Key="Options:Title">Opties</sys:String>
<sys:String x:Key="Options:PageTitle">Instellingen</sys:String>
<sys:String x:Key="Options:InstallFolder">Installatiemap</sys:String>
<sys:String x:Key="Options:SelectFolderButton">Selecteer map</sys:String>
<sys:String x:Key="Options:OpenFolderButton">Open map</sys:String>
<sys:String x:Key="Options:SaveSelectedMods">Sla geselecteerde mods op</sys:String>
<sys:String x:Key="Options:CheckInstalledMods">Detecteer geïnstalleerde mods</sys:String>
<sys:String x:Key="Options:SelectInstalledMods">Selecteer geïnstalleerde mods</sys:String>
<sys:String x:Key="Options:ReinstallInstalledMods">Geïnstalleerde mods herinstalleren</sys:String>
<sys:String x:Key="Options:EnableOneClickInstalls">Activeer OneClick™ Installaties</sys:String>
<sys:String x:Key="Options:BeatSaver">BeatSaver</sys:String>
<sys:String x:Key="Options:ModelSaber">ModelSaber</sys:String>
<sys:String x:Key="Options:Playlists">Afspeellijsten</sys:String>
<sys:String x:Key="Options:CloseWindow">Venster sluiten na afronding</sys:String>
<sys:String x:Key="Options:GameType">Game Type</sys:String>
<sys:String x:Key="Options:GameType:Steam">Steam</sys:String>
<sys:String x:Key="Options:GameType:Oculus">Oculus</sys:String>
<sys:String x:Key="Options:Tools">Hulpmiddelen</sys:String>
<sys:String x:Key="Options:InstallPlaylist">Installeer afspeellijst</sys:String>
<sys:String x:Key="Options:InstallingPlaylist">Afspeellijst installeren: {0}</sys:String>
<sys:String x:Key="Options:FailedPlaylistSong">Mislukt nummer: {0}</sys:String>
<sys:String x:Key="Options:FinishedPlaylist">[{0} mislukkingen] Afspeellijst geïnstalleerd: {1}</sys:String>
<sys:String x:Key="Options:ShowOCIWindow">Toon OneClick Installatie Scherm</sys:String>
<sys:String x:Key="Options:OCIWindowYes">Ja</sys:String>
<sys:String x:Key="Options:OCIWindowClose">Sluit</sys:String>
<sys:String x:Key="Options:OCIWindowNo">Nee</sys:String>
<sys:String x:Key="Options:Diagnostics">Diagnostiek</sys:String>
<sys:String x:Key="Options:OpenLogsButton">Open Logs</sys:String>
<sys:String x:Key="Options:OpenAppDataButton">Open AppData</sys:String>
<sys:String x:Key="Options:UninstallBSIPAButton">Deïnstalleer BSIPA</sys:String>
<sys:String x:Key="Options:RemoveAllModsButton">Verwijder Alle Mods</sys:String>
<sys:String x:Key="Options:ApplicationTheme">Toepassingsthema</sys:String>
<sys:String x:Key="Options:ExportTemplateButton">Exporteer sjabloon</sys:String>
<sys:String x:Key="Options:UploadingLog">Log aan het uploaden</sys:String>
<sys:String x:Key="Options:LogUrlCopied">Log URL gekopieerd naar klembord!</sys:String>
<sys:String x:Key="Options:LogUploadFailed">Log Upload Mislukt</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Title">Log upload mislukt!</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Body">Kon het log bestand niet uploaden naar Teknik, probeer het alstublieft opnieuw of upload het bestand handmatig.</sys:String>
<sys:String x:Key="Options:GettingModList">Mod Lijst Ophalen</sys:String>
<sys:String x:Key="Options:FindingBSIPAVersion">BSIPA versie vinden</sys:String>
<sys:String x:Key="Options:BSIPAUninstalled">BSIPA Gedeïnstalleerd</sys:String>
<sys:String x:Key="Options:YeetModsBox:Title">Deïnstalleer ALLE mods?</sys:String>
<sys:String x:Key="Options:YeetModsBox:RemoveAllMods">Weet u zeker dat u ALLE mods wil deïnstalleren?</sys:String>
<sys:String x:Key="Options:YeetModsBox:CannotBeUndone">Dit kan niet ongedaan gemaakt worden.</sys:String>
<sys:String x:Key="Options:AllModsUninstalled">Alle mods gedeïnstalleerd</sys:String>
<sys:String x:Key="Options:CurrentThemeRemoved">Huidig thema is verwijderd, terugvallen op standaard...</sys:String>
<sys:String x:Key="Options:ThemeFolderNotFound">Thema map niet gevonden! Probeer het sjabloon te exporteren...</sys:String>
<sys:String x:Key="Options:AppDataNotFound">AppData map niet gevonden! Probeer uw spel te starten.</sys:String>
<!-- Loading Page -->
<sys:String x:Key="Loading:Loading">Mods Laden</sys:String>
<!-- Invalid Page -->
<sys:String x:Key="Invalid:Title">Ongeldig</sys:String>
<sys:String x:Key="Invalid:PageTitle">Ongeldige Installatie Gedetecteerd</sys:String>
<sys:String x:Key="Invalid:PageSubtitle">Uw game installatie is corrupt of ongeldig</sys:String>
<sys:String x:Key="Invalid:List:Header">Dit kan gebeuren als u een illegale versie heeft of een illegale versie over de legitieme versie heeft gekopieerd</sys:String>
<Span x:Key="Invalid:List:Line1">
Als uw game versie illegaal gedownload is,
<Bold>koop alstublieft de game
<Hyperlink NavigateUri="https://beatgames.com/" local:HyperlinkExtensions.IsExternal="True">
HIER
</Hyperlink>
</Bold>.
</Span>
<Span x:Key="Invalid:List:Line2">
Als uw game versie
<Bold>niet</Bold> illegaal gedownload is, doe dan alstublieft
<Hyperlink NavigateUri="https://bsmg.wiki/support#clean-installation" local:HyperlinkExtensions.IsExternal="True">
een "schone" installatie
</Hyperlink>.
</Span>
<Span x:Key="Invalid:List:Line3">
Als dat allebei niet helpt, vraag om hulp in het
<Span Foreground="Blue">#pc-help</Span> kanaal in
<Hyperlink NavigateUri="https://discord.gg/beatsabermods" local:HyperlinkExtensions.IsExternal="True">
BSMG
</Hyperlink>. (Engels)
</Span>
<sys:String x:Key="Invalid:BoughtGame1">Als u een illegaal gedownloade versie van het spel had, maar nu het spel heeft gekocht</sys:String>
<sys:String x:Key="Invalid:SelectFolderButton">Selecteer map</sys:String>
<sys:String x:Key="Invalid:BoughtGame2">Moet u Mod Assistant opnieuw starten na het wisselen naar de legitieme installatie</sys:String>
<!-- OneClick Class -->
<sys:String x:Key="OneClick:MapDownloadFailed">Kon map details niet ophalen.</sys:String>
<sys:String x:Key="OneClick:SongDownloadFailed">Kon het nummer niet downloaden.</sys:String>
<sys:String x:Key="OneClick:SongDownload:Failed">Kon het nummer niet downloaden.</sys:String>
<sys:String x:Key="OneClick:SongDownload:NetworkIssues">Er kunnen problemen zijn met BeatSaver of uw internet verbinding.</sys:String>
<sys:String x:Key="OneClick:SongDownload:FailedTitle">Kon de ZIP van het nummer niet downloaden</sys:String>
<sys:String x:Key="OneClick:InstallDirNotFound">Kon het Beat Saber installatiepad niet vinden.</sys:String>
<sys:String x:Key="OneClick:InstalledAsset">{0} Geïnstalleerd</sys:String>
<sys:String x:Key="OneClick:AssetInstallFailed">Installatie mislukt.</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} OneClick™ Installatie koppeling geregistreerd!</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{0} OneClick™ Installatie koppeling verwijderd!</sys:String>
<sys:String x:Key="OneClick:Installing">{0} wordt geïnstalleerd</sys:String>
<sys:String x:Key="OneClick:RatelimitSkip">Maximaal aantal pogingen bereikt: {0} wordt overgeslagen</sys:String>
<sys:String x:Key="OneClick:RatelimitHit">Snelheidslimiet bereikt. Hervat over {0}</sys:String>
<sys:String x:Key="OneClick:Failed">Download mislukt: {0}</sys:String>
<sys:String x:Key="OneClick:Done">Voltooid</sys:String>
<!-- Themes Class -->
<sys:String x:Key="Themes:ThemeNotFound">Thema niet gevonden, teruggevallen op standaard thema...</sys:String>
<sys:String x:Key="Themes:ThemeSet">Thema ingesteld op {0}.</sys:String>
<sys:String x:Key="Themes:ThemeMissing">{0} bestaat niet.</sys:String>
<sys:String x:Key="Themes:SavedTemplateTheme">Themasjabloon &quot;{0}&quot; opgeslagen in de Thema map.</sys:String>
<sys:String x:Key="Themes:TemplateThemeExists">Themasjabloon bestaat al!</sys:String>
<sys:String x:Key="Themes:FailedToLoadXaml">Laden van .xaml bestand voor {0} mislukt: {1}</sys:String>
<!-- Updater Class -->
<sys:String x:Key="Updater:CheckFailed">Kon niet controleren op updates.</sys:String>
<sys:String x:Key="Updater:DownloadFailed">Kon update niet downloaden.</sys:String>
<!-- Utils Class -->
<sys:String x:Key="Utils:NotificationTitle">Mod Assistant</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">Kon uw Beat Saber installatiemap niet vinden. Selecteer deze alstublieft handmatig.</sys:String>
<sys:String x:Key="Utils:RunAsAdmin">Mod Assistant moet deze taak als administrator uitvoeren. Probeer het alstublieft opnieuw.</sys:String>
<sys:String x:Key="Utils:InstallDir:DialogTitle">Selecteer uw Beat Saber installatiemap</sys:String>
<sys:String x:Key="Utils:CannotOpenFolder">Kan map niet openen: {0}</sys:String>
</ResourceDictionary>

View File

@ -1,252 +0,0 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ModAssistant"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="ResourceDictionaryName">i18n:ru-RU</sys:String>
<!-- App -->
<sys:String x:Key="App:InstallDirDialog:Title">Не получается найти папку с установленным Beat Saber!</sys:String>
<sys:String x:Key="App:InstallDirDialog:OkCancel">Нажмите ОК, чтобы попробовать снова или ЗАКРЫТЬ, чтобы закрыть приложение.</sys:String>
<sys:String x:Key="App:InvalidArgument">Недопустимый аргумент! '{0}' требуется выбор.</sys:String>
<sys:String x:Key="App:UnrecognizedArgument">Нераспознанный аргумент. Закрытие Mod Assistant.</sys:String>
<sys:String x:Key="App:UnhandledException">Произошло необработанное исключениеd</sys:String>
<sys:String x:Key="App:Exception">Исключение</sys:String>
<!-- Main Window -->
<sys:String x:Key="MainWindow:WindowTitle">Mod Assistant</sys:String>
<sys:String x:Key="MainWindow:IntroButton">Начало</sys:String>
<sys:String x:Key="MainWindow:ModsButton">Модификации</sys:String>
<sys:String x:Key="MainWindow:AboutButton">Информация</sys:String>
<sys:String x:Key="MainWindow:OptionsButton">Настройки</sys:String>
<sys:String x:Key="MainWindow:GameVersionLabel">Версия игры</sys:String>
<sys:String x:Key="MainWindow:VersionLabel">Версия</sys:String>
<sys:String x:Key="MainWindow:ModInfoButton">Информация о модификации</sys:String>
<sys:String x:Key="MainWindow:InstallButtonTop">Установить</sys:String>
<sys:String x:Key="MainWindow:InstallButtonBottom">или обновить</sys:String>
<sys:String x:Key="MainWindow:GameVersionLoadFailed">Не удаётся загрузить список версий игры, Вкладка с модификациями недоступна.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Title">Обнаружена новая версия игры!</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line1">Похоже на то, что было обновление игры.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line2">Пожалуйста, проверьте дважды, что выбрана корректная версия игры в нижнем левом углу!</sys:String>
<sys:String x:Key="MainWindow:NoModSelected">Нет выбранных модификаций!</sys:String>
<sys:String x:Key="MainWindow:NoModInfoPage">{0} Не имеет страницы с информацией.</sys:String>
<!-- Intro Page -->
<sys:String x:Key="Intro:Title">Вступление</sys:String>
<sys:String x:Key="Intro:PageTitle">Добро пожаловать в Mod Assistant</sys:String>
<sys:String x:Key="Intro:Terms:Header">Прочитайте эту страницу полностью и внимательно</sys:String>
<Span x:Key="Intro:Terms:Line1">
Используя эту программу, вы прочитали и принимаете эти условия:
</Span>
<Span x:Key="Intro:Terms:Line2">
Beat Saber
<Bold>не имеет</Bold> нативной поддержки модификаций. Это означает:
</Span>
<Span x:Key="Intro:Terms:Term1">
Модификации
<Bold>могут прекращать работоспособность</Bold> каждое обновление. Это нормально, и
<Bold>это не</Bold> вина Beat Games.
</Span>
<Span x:Key="Intro:Terms:Term2">
Модификации
<Bold>могут</Bold> вызывать ошибки и проблемы с производительностью. Это
<Bold>не</Bold> вина Beat Games.
</Span>
<Span x:Key="Intro:Terms:Term3">
Модификации создаются
<Bold>бесплатно</Bold> людьми в их
<Bold>свободное время.</Bold> Пожалуйста, будьте терпиливыми и взаимопонимающими.
</Span>
<Span x:Key="Intro:ReviewsBeatGamesFault">
<Bold>НЕ</Bold> оставляйте отрицательные отзывы из-за того, что модификация не работает. Это
<Bold>не</Bold> вина Beat Games.
<LineBreak/> Beat Games не пытается уничтожить модификации.
</Span>
<Span x:Key="Intro:ReviewsRustySpoon">
Если я увижу людей, которые продолжают оставлять негативные комментарии,
<Italic>потому что</Italic> модификации не работают,
<LineBreak/>
<Bold>Я лично уничтожу модификации ржавой ложкой</Bold>
</Span>
<Span x:Key="Intro:WikiGuide">
Пожалуйста, прочитайте инструкцию для начинающих на
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bsmg.wiki/pc-modding.html">
Вики
</Hyperlink>.
</Span>
<sys:String x:Key="Intro:AgreeButton">Я согласен</sys:String>
<sys:String x:Key="Intro:DisagreeButton">Я не согласен</sys:String>
<sys:String x:Key="Intro:ClosingApp">Приложение закрывается: Вы не приняли пользовательскую политику соглашений.</sys:String>
<sys:String x:Key="Intro:VersionDownloadFailed">Не удаётся получить список версий</sys:String>
<sys:String x:Key="Intro:ModsTabDisabled">Вкладка с модификациями недоступна. Пожалуйста перезапустите, чтобы попробовать снова.</sys:String>
<sys:String x:Key="Intro:ModsTabEnabled">Теперь вы можете использовать вкладку с модификациями!</sys:String>
<!-- Mods Page -->
<sys:String x:Key="Mods:Title">Модификации</sys:String>
<sys:String x:Key="Mods:Header:Name">Название</sys:String>
<sys:String x:Key="Mods:Header:Installed">Установленная</sys:String>
<sys:String x:Key="Mods:Header:Latest">Последняя</sys:String>
<sys:String x:Key="Mods:Header:Description">Описание</sys:String>
<sys:String x:Key="Mods:Header:Uninstall">Удалить</sys:String>
<sys:String x:Key="Mods:UninstallButton">Удалить</sys:String>
<sys:String x:Key="Mods:LoadFailed">Не удается загрузить список модификаций</sys:String>
<sys:String x:Key="Mods:CheckingInstalledMods">Проверка установленных модификаций</sys:String>
<sys:String x:Key="Mods:LoadingMods">Загрузка модификаций</sys:String>
<sys:String x:Key="Mods:FinishedLoadingMods">Загрузка модификаций окончена</sys:String>
<sys:String x:Key="Mods:NoMods">No mods available for this version of Beat Saber</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="Mods:InstallingMod">Установка {0}</sys:String>
<sys:String x:Key="Mods:InstalledMod">Установлено {0}</sys:String>
<sys:String x:Key="Mods:FinishedInstallingMods">Установка модификаций окончена.</sys:String>
<sys:String x:Key="Mods:ModDownloadLinkMissing">Не удаётся получить ссылку на скачивание {0}</sys:String>
<sys:String x:Key="Mods:UninstallBox:Title">Удаление {0}?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body1">Вы уверены, что хотите удалить {0}?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body2">Это может сломать остальные модификации</sys:String>
<sys:String x:Key="Mods:FailedExtract">Не удалось извлечь {0}, попробуйте снова через {1} секунд. ({2}/{3})</sys:String>
<sys:String x:Key="Mods:FailedExtractMaxReached">Не удалось извлечь {0} после попыток ({1}), пропускается. Эта модификация может работать некорректно, используйте на свой страх и риск</sys:String>
<sys:String x:Key="Mods:SearchLabel">Поиск...</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Title">Failed to Uninstall BSIPA</sys:String> <!-- NEEDS TRANSLATING -->
<sys:String x:Key="Mods:UninstallBSIPANotFound:Body">BSIPA installation not found, uninstall operation skipped.</sys:String> <!-- NEEDS TRANSLATING -->
<!-- About Page -->
<sys:String x:Key="About:Title">Информация</sys:String>
<sys:String x:Key="About:PageTitle">Про Mod Assistant</sys:String>
<sys:String x:Key="About:List:Header">Я Ассистент, и я создал Mod Assistant для помощи модификациям с некоторыми личными принципами:</sys:String>
<sys:String x:Key="About:List:Item1">Простота</sys:String>
<sys:String x:Key="About:List:Item2">Портативность </sys:String>
<sys:String x:Key="About:List:Item3">Приложение одним файлом</sys:String>
<sys:String x:Key="About:List:Item4">Ответственное использование</sys:String>
<Span x:Key="About:SupportAssistant">
Если вам нравится программа и вы хотите меня поддержать, пожалуйста, посетите
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bs.assistant.moe/Donate/">
страницу для пожертвований
</Hyperlink>
или мой
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://www.patreon.com/AssistantMoe">
Patreon
</Hyperlink>
</Span>
<sys:String x:Key="About:SpecialThanks">Отдельное спасибо ♥</sys:String>
<sys:String x:Key="About:Donate">Поддержать</sys:String>
<sys:String x:Key="About:HeadpatsButton">Погладить</sys:String>
<sys:String x:Key="About:HugsButton">Обнять</sys:String>
<!-- Options Page -->
<sys:String x:Key="Options:Title">Опции</sys:String>
<sys:String x:Key="Options:PageTitle">Настройки</sys:String>
<sys:String x:Key="Options:InstallFolder">Папка установки</sys:String>
<sys:String x:Key="Options:SelectFolderButton">Выбрать папку</sys:String>
<sys:String x:Key="Options:OpenFolderButton">Открыть папку</sys:String>
<sys:String x:Key="Options:SaveSelectedMods">Сохранить выбранные модификации</sys:String>
<sys:String x:Key="Options:CheckInstalledMods">Обнаружение установленных модификаций</sys:String>
<sys:String x:Key="Options:SelectInstalledMods">Выбрать установленные модификации</sys:String>
<sys:String x:Key="Options:ReinstallInstalledMods">Переустановить установленные модификации</sys:String>
<sys:String x:Key="Options:EnableOneClickInstalls">Включить OneClick™ установки</sys:String>
<sys:String x:Key="Options:BeatSaver">BeatSaver</sys:String>
<sys:String x:Key="Options:ModelSaber">ModelSaber</sys:String>
<sys:String x:Key="Options:Playlists">Плейлисты</sys:String>
<sys:String x:Key="Options:CloseWindow">Закрыть окно после окончания установки</sys:String>
<sys:String x:Key="Options:GameType">Тип игры</sys:String>
<sys:String x:Key="Options:GameType:Steam">Steam</sys:String>
<sys:String x:Key="Options:GameType:Oculus">Oculus</sys:String>
<sys:String x:Key="Options:Tools">Инструменты</sys:String>
<sys:String x:Key="Options:InstallPlaylist">Установить плейлист</sys:String>
<sys:String x:Key="Options:InstallingPlaylist">Установка плейлиста: {0}</sys:String>
<sys:String x:Key="Options:FailedPlaylistSong">Ошибка с песней: {0}</sys:String>
<sys:String x:Key="Options:FinishedPlaylist">[{0} ошибок] Установка плейлиста окончена: {1}</sys:String>
<sys:String x:Key="Options:ShowOCIWindow">Показать OneClick окно установок</sys:String>
<sys:String x:Key="Options:OCIWindowYes">Да</sys:String>
<sys:String x:Key="Options:OCIWindowClose">Закрывать</sys:String>
<sys:String x:Key="Options:OCIWindowNo">Нет</sys:String>
<sys:String x:Key="Options:Diagnostics">Диагностика</sys:String>
<sys:String x:Key="Options:OpenLogsButton">Открыть логи</sys:String>
<sys:String x:Key="Options:OpenAppDataButton">Открыть AppData</sys:String>
<sys:String x:Key="Options:UninstallBSIPAButton">Удалить BSIPA</sys:String>
<sys:String x:Key="Options:RemoveAllModsButton">Удалить все модификации</sys:String>
<sys:String x:Key="Options:ApplicationTheme">Тема приложения</sys:String>
<sys:String x:Key="Options:ExportTemplateButton">Экспортировать шаблон</sys:String>
<sys:String x:Key="Options:UploadingLog">Загрузка логов</sys:String>
<sys:String x:Key="Options:LogUrlCopied">Ссылка на лог успешно скопирована!</sys:String>
<sys:String x:Key="Options:LogUploadFailed">Загрузка логов не удалась </sys:String>
<sys:String x:Key="Options:LogUploadFailed:Title">Загрузка логов не удалась!</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Body">Не удаётся загрузить файл с логом на Teknik, пожалуйста, попробуйте снова или отправьте файл вручную.</sys:String>
<sys:String x:Key="Options:GettingModList">Получаем список модификаций</sys:String>
<sys:String x:Key="Options:FindingBSIPAVersion">Поиск BSIPA версии</sys:String>
<sys:String x:Key="Options:BSIPAUninstalled">BSIPA удалён</sys:String>
<sys:String x:Key="Options:YeetModsBox:Title">Удалить все модификации?</sys:String>
<sys:String x:Key="Options:YeetModsBox:RemoveAllMods">Вы уверены, что хотите удалить ВСЕ модификации?</sys:String>
<sys:String x:Key="Options:YeetModsBox:CannotBeUndone">Это действие нельзя отменить.</sys:String>
<sys:String x:Key="Options:AllModsUninstalled">Все модификации удалены!</sys:String>
<sys:String x:Key="Options:CurrentThemeRemoved">Текущая тема была удалена, возвращаемся к стандартной теме...</sys:String>
<sys:String x:Key="Options:ThemeFolderNotFound">Папка с темами не найдена! Пробую экспортировать шаблон...</sys:String>
<sys:String x:Key="Options:AppDataNotFound">Папка AppData не найдена! Попробуйте запустить игру.</sys:String>
<!-- Loading Page -->
<sys:String x:Key="Loading:Loading">Загрузка модификаций</sys:String>
<!-- Invalid Page -->
<sys:String x:Key="Invalid:Title">Недействительно</sys:String>
<sys:String x:Key="Invalid:PageTitle">Обнаружена недействительная установка</sys:String>
<sys:String x:Key="Invalid:PageSubtitle">Ваша установленная игра сломана или недействительная</sys:String>
<sys:String x:Key="Invalid:List:Header">Это могло произойти, если у вас нелицензионная копия игры, или вы скопировали нелицензионную копию поверх лицензионной</sys:String>
<Span x:Key="Invalid:List:Line1">
Если ваша копия игры нелицензионная,
<Bold>пожалуйста, купите игру
<Hyperlink NavigateUri="https://beatgames.com/" local:HyperlinkExtensions.IsExternal="True">
ТУТ
</Hyperlink>
</Bold>.
</Span>
<Span x:Key="Invalid:List:Line2">
Если ваша копия игры
<Bold>лицензионная</Bold>, пожалуйста
<Hyperlink NavigateUri="https://bsmg.wiki/support#clean-installation" local:HyperlinkExtensions.IsExternal="True">
переустановите игру заново
</Hyperlink>.
</Span>
<Span x:Key="Invalid:List:Line3">
Если из этого ничего вам не помогает, попросите помощи в
<Span Foreground="Blue">#pc-help</Span> канал в
<Hyperlink NavigateUri="https://discord.gg/beatsabermods" local:HyperlinkExtensions.IsExternal="True">
BSMG
</Hyperlink>.
</Span>
<sys:String x:Key="Invalid:BoughtGame1">Если вы использовали нелицензионную версию игру, но купили игру</sys:String>
<sys:String x:Key="Invalid:SelectFolderButton">выберете папку</sys:String>
<sys:String x:Key="Invalid:BoughtGame2">Вам будет необходимо перезапустить Mod Assistant после того, как вы выберете папку с лицензионной копией игры</sys:String>
<!-- OneClick Class -->
<sys:String x:Key="OneClick:MapDownloadFailed">Не удаётся получить информацию о карте.</sys:String>
<sys:String x:Key="OneClick:SongDownloadFailed">Не удаётся загрузить песню.</sys:String>
<sys:String x:Key="OneClick:SongDownload:Failed">Не удаётся загрузить песню.</sys:String>
<sys:String x:Key="OneClick:SongDownload:NetworkIssues">Возможно это ошибки с BeatSaver или вашим интернет соединением.</sys:String>
<sys:String x:Key="OneClick:SongDownload:FailedTitle">Ошибка с загрузкой песни ZIP</sys:String>
<sys:String x:Key="OneClick:InstallDirNotFound">Установочный путь к Beat Saber не найден.</sys:String>
<sys:String x:Key="OneClick:InstalledAsset">Установлено: {0}</sys:String>
<sys:String x:Key="OneClick:AssetInstallFailed">Ошибка установки.</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} OneClick™ установки зарегистрированы</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{0} OneClick™ установки не зарегистрированы!</sys:String>
<sys:String x:Key="OneClick:Installing">Установка: {0}</sys:String>
<sys:String x:Key="OneClick:RatelimitSkip">Достигнуто максимальное кол-во попыток: Пропускаем {0}</sys:String>
<sys:String x:Key="OneClick:RatelimitHit">Достигнут лимит. Возобновление через {0}</sys:String>
<sys:String x:Key="OneClick:Failed">Скачивание неудалось: {0}</sys:String>
<sys:String x:Key="OneClick:Done">Завершено</sys:String>
<!-- Themes Class -->
<sys:String x:Key="Themes:ThemeNotFound">Тема не найдена, возвращаемся к стандартной теме...</sys:String>
<sys:String x:Key="Themes:ThemeSet">Установлена тема: {0}.</sys:String>
<sys:String x:Key="Themes:ThemeMissing">{0} не существует.</sys:String>
<sys:String x:Key="Themes:SavedTemplateTheme">Шаблон темы &quot;{0}&quot; сохранён в папку с темами.</sys:String>
<sys:String x:Key="Themes:TemplateThemeExists">Шаблон темы уже существует!</sys:String>
<sys:String x:Key="Themes:FailedToLoadXaml">Не удаётся загрузить .xaml файл для темы {0}: {1}</sys:String>
<!-- Updater Class -->
<sys:String x:Key="Updater:CheckFailed">Не удаётся проверить обновления.</sys:String>
<sys:String x:Key="Updater:DownloadFailed">Не удаётся загрузить обновление.</sys:String>
<!-- Utils Class -->
<sys:String x:Key="Utils:NotificationTitle">Mod Assistant</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">Не удаётся обнаружить папку с Beat Saber. Пожалуйста, укажите путь вручную.</sys:String>
<sys:String x:Key="Utils:RunAsAdmin">Mod Assistant требует запустить эту задачу с правами администратора. Пожалуйста, попробуйте заново.</sys:String>
<sys:String x:Key="Utils:InstallDir:DialogTitle">Укажите папку с установленным Beat Saber</sys:String>
<sys:String x:Key="Utils:CannotOpenFolder">Не удаётся открыть папку: {0}</sys:String>
</ResourceDictionary>

View File

@ -1,252 +0,0 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ModAssistant"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="ResourceDictionaryName">i18n:sv-SE</sys:String>
<!-- App -->
<sys:String x:Key="App:InstallDirDialog:Title">Det gick inte att hitta din Beat Saber-installationsmapp!</sys:String>
<sys:String x:Key="App:InstallDirDialog:OkCancel">Tryck på OK för att försöka igen, eller Cancel för att avsluta applikationen.</sys:String>
<sys:String x:Key="App:InvalidArgument">Invalid argument! '{0}' behöver ett alternativ.</sys:String>
<sys:String x:Key="App:UnrecognizedArgument">Unrecognized argument. Stänger Mod Assistant.</sys:String>
<sys:String x:Key="App:UnhandledException">Ett oväntat fel har precis inträffat</sys:String>
<sys:String x:Key="App:Exception">Undantag</sys:String>
<!-- Main Window -->
<sys:String x:Key="MainWindow:WindowTitle">Mod Assistant</sys:String>
<sys:String x:Key="MainWindow:IntroButton">Intro</sys:String>
<sys:String x:Key="MainWindow:ModsButton">Mods</sys:String>
<sys:String x:Key="MainWindow:AboutButton">Om</sys:String>
<sys:String x:Key="MainWindow:OptionsButton">Inställningar</sys:String>
<sys:String x:Key="MainWindow:GameVersionLabel">Spelversion</sys:String>
<sys:String x:Key="MainWindow:VersionLabel">Version</sys:String>
<sys:String x:Key="MainWindow:ModInfoButton">Modinformation</sys:String>
<sys:String x:Key="MainWindow:InstallButtonTop">Installera</sys:String>
<sys:String x:Key="MainWindow:InstallButtonBottom">eller Uppdatera</sys:String>
<sys:String x:Key="MainWindow:GameVersionLoadFailed">Det gick inte att ladda spelversionerna, Modfliken är ej tillgänglig.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Title">Ny spelversion tillgänglig!</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line1">Spelet verkar ha uppdaterats.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line2">Var vänlig dubbelkolla att rätt version är vald i det nedre vänstra hörnet!</sys:String>
<sys:String x:Key="MainWindow:NoModSelected">Inga mods valda!</sys:String>
<sys:String x:Key="MainWindow:NoModInfoPage">{0} Denna mod har ingen informationssida. </sys:String>
<!-- Intro Page -->
<sys:String x:Key="Intro:Title">Intro</sys:String>
<sys:String x:Key="Intro:PageTitle">Välkommen till Mod Assistant</sys:String>
<sys:String x:Key="Intro:Terms:Header">Var vänlig läs hela denna sida noggrant.</sys:String>
<Span x:Key="Intro:Terms:Line1">
Genom att använda detta program intygar du att du har läst och godkänt följande villkor:
</Span>
<Span x:Key="Intro:Terms:Line2">
Beat Saber
Har <Bold>inte</Bold> ursprungligt stöd för mods. Vilket betyder att:
</Span>
<Span x:Key="Intro:Terms:Term1">
Mods
<Bold>kommer sluta att fungera</Bold> efter varje uppdatering. Detta är standard, och
<Bold>inte</Bold> Beat Games fel.
</Span>
<Span x:Key="Intro:Terms:Term2">
Mods
<Bold>kommer att</Bold> orsaka buggar och prestandaproblem. Detta är
<Bold>inte</Bold> Beat Games fel.
</Span>
<Span x:Key="Intro:Terms:Term3">
Mods utvecklas
<Bold>gratis</Bold> av människor på deras
<Bold>fritid.</Bold> Var vänlig ha tålamod och visa förståelse för det.
</Span>
<Span x:Key="Intro:ReviewsBeatGamesFault">
<Bold>LÄMNA INTE</Bold> negativa recensioner för att mods slutat att fungera. Det är
<Bold>inte</Bold> Beat Games fel.
<LineBreak/> De försöker inte "döda" mods.
</Span>
<Span x:Key="Intro:ReviewsRustySpoon">
Om jag ser människor lämna negativa recensioner
<Italic>för att</Italic> mods slutat fungera, kommer jag
<LineBreak/>
<Bold>personligen avliva hela moddingverksamheten med en rostig sked.</Bold>
</Span>
<Span x:Key="Intro:WikiGuide">
Var vänlig och läs nybörjarguiden på
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bsmg.wiki/pc-modding.html">
Wikisidan
</Hyperlink>.
</Span>
<sys:String x:Key="Intro:AgreeButton">Godkänner</sys:String>
<sys:String x:Key="Intro:DisagreeButton">Nekar</sys:String>
<sys:String x:Key="Intro:ClosingApp">Stänger applikationen: Du godkände ej villkoren.</sys:String>
<sys:String x:Key="Intro:VersionDownloadFailed">Det gick inte att hämta listan över versioner.</sys:String>
<sys:String x:Key="Intro:ModsTabDisabled">Modfliken otillgänglig. Var vänlig starta om för att försöka igen.</sys:String>
<sys:String x:Key="Intro:ModsTabEnabled">Du har nu tillgång till Modfliken!</sys:String>
<!-- Mods Page -->
<sys:String x:Key="Mods:Title">Mods</sys:String>
<sys:String x:Key="Mods:Header:Name">Namn</sys:String>
<sys:String x:Key="Mods:Header:Installed">Installerad</sys:String>
<sys:String x:Key="Mods:Header:Latest">Senaste</sys:String>
<sys:String x:Key="Mods:Header:Description">Beskrivning</sys:String>
<sys:String x:Key="Mods:Header:Uninstall">Avinstallera</sys:String>
<sys:String x:Key="Mods:UninstallButton">Avinstallera</sys:String>
<sys:String x:Key="Mods:LoadFailed">Det gick inte att ladda modlistan</sys:String>
<sys:String x:Key="Mods:CheckingInstalledMods">Kollar efter installerade mods</sys:String>
<sys:String x:Key="Mods:LoadingMods">Laddar Mods</sys:String>
<sys:String x:Key="Mods:FinishedLoadingMods">Mods färdigladdade!</sys:String>
<sys:String x:Key="Mods:NoMods">Inga mods tillgängliga för denna Beat Saber-version</sys:String>
<sys:String x:Key="Mods:InstallingMod">Installerar {0}</sys:String>
<sys:String x:Key="Mods:InstalledMod">Installerat {0}</sys:String>
<sys:String x:Key="Mods:FinishedInstallingMods">Mods färdiginstallerade!</sys:String>
<sys:String x:Key="Mods:ModDownloadLinkMissing">Det gick inte att hitta någon nedladdningslänk för {0}</sys:String>
<sys:String x:Key="Mods:UninstallBox:Title">Avinstallera {0}?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body1">Är du säker på att du vill ta bort {0}?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body2">Detta kan leda till att dina andra mods slutar att fungera</sys:String>
<sys:String x:Key="Mods:FailedExtract">Extrahering misslyckades {0}, försöker igen om {1} sekunder. ({2}/{3})</sys:String>
<sys:String x:Key="Mods:FailedExtractMaxReached">Misslyckades med att extrahera {0} efter maxantalet försök ({1}), hoppar över. Denna mod kanske inte fungerar som den ska så fortsätt på egen risk.</sys:String>
<sys:String x:Key="Mods:SearchLabel">Sök...</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Title">Misslyckades med att avinstallera BSIPA</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Body">BSIPA-installation hittades inte, hoppar över avinstallation.</sys:String>
<!-- About Page -->
<sys:String x:Key="About:Title">Om</sys:String>
<sys:String x:Key="About:PageTitle">Om Mod Assistant</sys:String>
<sys:String x:Key="About:List:Header">Jag är Assistant, och jag skapade Mod Assistant för just att assistera med mods, med några grundläggande principer i åtanke:</sys:String>
<sys:String x:Key="About:List:Item1">Enkelhet</sys:String>
<sys:String x:Key="About:List:Item2">Portabilitet</sys:String>
<sys:String x:Key="About:List:Item3">En enkel, körbar fil</sys:String>
<sys:String x:Key="About:List:Item4">Ansvarsfullt användande</sys:String>
<Span x:Key="About:SupportAssistant">
Om du gillar programmet och vill stödja mig, besök gärna min
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bs.assistant.moe/Donate/">
donationssida
</Hyperlink>
eller min
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://www.patreon.com/AssistantMoe">
Patreon
</Hyperlink>
</Span>
<sys:String x:Key="About:SpecialThanks">Särskilt Tack ♥</sys:String>
<sys:String x:Key="About:Donate">Donera</sys:String>
<sys:String x:Key="About:HeadpatsButton">Klapp på huvudet</sys:String>
<sys:String x:Key="About:HugsButton">Krama</sys:String>
<!-- Options Page -->
<sys:String x:Key="Options:Title">Inställningar</sys:String>
<sys:String x:Key="Options:PageTitle">Alternativ</sys:String>
<sys:String x:Key="Options:InstallFolder">Installationsmapp</sys:String>
<sys:String x:Key="Options:SelectFolderButton">Välj Mapp</sys:String>
<sys:String x:Key="Options:OpenFolderButton">Öppna Mapp</sys:String>
<sys:String x:Key="Options:SaveSelectedMods">Spara Valda Mods</sys:String>
<sys:String x:Key="Options:CheckInstalledMods">Skanna Efter Installerade Mods</sys:String>
<sys:String x:Key="Options:SelectInstalledMods">Välj Installerade Mods</sys:String>
<sys:String x:Key="Options:ReinstallInstalledMods">Ominstallera Installerade Mods</sys:String>
<sys:String x:Key="Options:EnableOneClickInstalls">Aktivera OneClick™-Installationer</sys:String>
<sys:String x:Key="Options:BeatSaver">BeatSaver</sys:String>
<sys:String x:Key="Options:ModelSaber">ModelSaber</sys:String>
<sys:String x:Key="Options:Playlists">Spellistor</sys:String>
<sys:String x:Key="Options:CloseWindow">Stäng fönstret efter nedladdning</sys:String>
<sys:String x:Key="Options:GameType">Spelvariant</sys:String>
<sys:String x:Key="Options:GameType:Steam">Steam</sys:String>
<sys:String x:Key="Options:GameType:Oculus">Oculus</sys:String>
<sys:String x:Key="Options:Tools">Verktyg</sys:String>
<sys:String x:Key="Options:InstallPlaylist">Installera spellista</sys:String>
<sys:String x:Key="Options:InstallingPlaylist">Installerar spellista: {0}</sys:String>
<sys:String x:Key="Options:FailedPlaylistSong">Misslyckad låt: {0}</sys:String>
<sys:String x:Key="Options:FinishedPlaylist">[{0} fails] Färdig med installation av spellistor: {1}</sys:String>
<sys:String x:Key="Options:ShowOCIWindow">Visa OneClick-installationsfönstret</sys:String>
<sys:String x:Key="Options:OCIWindowYes">Ja</sys:String>
<sys:String x:Key="Options:OCIWindowClose">Stäng</sys:String>
<sys:String x:Key="Options:OCIWindowNo">Nej</sys:String>
<sys:String x:Key="Options:Diagnostics">Diagnostikverktyg</sys:String>
<sys:String x:Key="Options:OpenLogsButton">Öppna Loggar</sys:String>
<sys:String x:Key="Options:OpenAppDataButton">Öppna AppData</sys:String>
<sys:String x:Key="Options:UninstallBSIPAButton">Avinstallera BSIPA</sys:String>
<sys:String x:Key="Options:RemoveAllModsButton">Radera Alla Mods</sys:String>
<sys:String x:Key="Options:ApplicationTheme">Applikationstema</sys:String>
<sys:String x:Key="Options:ExportTemplateButton">Exportera Mall</sys:String>
<sys:String x:Key="Options:UploadingLog">Laddar Upp Logg</sys:String>
<sys:String x:Key="Options:LogUrlCopied">Logg-URL kopierad!</sys:String>
<sys:String x:Key="Options:LogUploadFailed">Uppladdning Av Logg Misslyckades</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Title">Uppladdning Av Logg Misslyckades!</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Body">Det gick inte att ladda upp loggfilen till Teknik, var god försök igen eller skicka filen manuellt.</sys:String>
<sys:String x:Key="Options:GettingModList">Hämtar Lista Över Mods</sys:String>
<sys:String x:Key="Options:FindingBSIPAVersion">Letar efter BSIPA-Version</sys:String>
<sys:String x:Key="Options:BSIPAUninstalled">BSIPA Avinstallerat</sys:String>
<sys:String x:Key="Options:YeetModsBox:Title">Avinstallera alla mods?</sys:String>
<sys:String x:Key="Options:YeetModsBox:RemoveAllMods">Är du säker på att du vill radera alla mods?</sys:String>
<sys:String x:Key="Options:YeetModsBox:CannotBeUndone">Detta går inte att ångra.</sys:String>
<sys:String x:Key="Options:AllModsUninstalled">Alla Mods avinstallerade.</sys:String>
<sys:String x:Key="Options:CurrentThemeRemoved">Nuvarande tema borttaget, återställer till standardtemat...</sys:String>
<sys:String x:Key="Options:ThemeFolderNotFound">Det gick inte att hitta temamappen! Testa att exportera mallen...</sys:String>
<sys:String x:Key="Options:AppDataNotFound">Det gick inte att hitta AppData-mappen! Testa att starta spelet.</sys:String>
<!-- Loading Page -->
<sys:String x:Key="Loading:Loading">Laddar Mods</sys:String>
<!-- Invalid Page -->
<sys:String x:Key="Invalid:Title">Ogiltig</sys:String>
<sys:String x:Key="Invalid:PageTitle">Ogiltig Installation Upptäckt</sys:String>
<sys:String x:Key="Invalid:PageSubtitle">Din spelinstallation är korrupt eller på annat sätt ogiltig.</sys:String>
<sys:String x:Key="Invalid:List:Header">Detta kan hända om din kopia av spelet är piratkopierad, eller om du klistrat in en piratkopia över din lagliga installation.</sys:String>
<Span x:Key="Invalid:List:Line1">
Om din kopia av spelet är piratkopierad,
<Bold>var vänlig och köp spelet
<Hyperlink NavigateUri="https://beatgames.com/" local:HyperlinkExtensions.IsExternal="True">
HÄR
</Hyperlink>
</Bold>.
</Span>
<Span x:Key="Invalid:List:Line2">
Om din kopia av spelet
<Bold>inte</Bold> är piratkopierad, var vänlig och
<Hyperlink NavigateUri="https://bsmg.wiki/support#clean-installation" local:HyperlinkExtensions.IsExternal="True">
ominstallera från grunden
</Hyperlink>.
</Span>
<Span x:Key="Invalid:List:Line3">
Om inget hjälper, be om hjälp i
<Span Foreground="Blue">#pc-help</Span> -kanalen i
<Hyperlink NavigateUri="https://discord.gg/beatsabermods" local:HyperlinkExtensions.IsExternal="True">
BSMG
</Hyperlink>.
</Span>
<sys:String x:Key="Invalid:BoughtGame1">Om du brukade spela på en piratkopierad version men sedan dess har köpt spelet.</sys:String>
<sys:String x:Key="Invalid:SelectFolderButton">Välj Mapp</sys:String>
<sys:String x:Key="Invalid:BoughtGame2">Du kommer att behöva starta om Mod Assistant efter att du har bytt till en legitim version.</sys:String>
<!-- OneClick Class -->
<sys:String x:Key="OneClick:MapDownloadFailed">Det gick inte att hämta mapdetaljerna.</sys:String>
<sys:String x:Key="OneClick:SongDownloadFailed">Det gick inte att ladda ned låten.</sys:String>
<sys:String x:Key="OneClick:SongDownload:Failed">Det gick inte att ladda ned låten.</sys:String>
<sys:String x:Key="OneClick:SongDownload:NetworkIssues">Det kan vara strul med BeatSaver eller din internetuppkoppling.</sys:String>
<sys:String x:Key="OneClick:SongDownload:FailedTitle">Misslyckades med att ladda ned låtens ZIP-fil.</sys:String>
<sys:String x:Key="OneClick:InstallDirNotFound">Det gick inte att hitta installationsvägen för Beat Saber.</sys:String>
<sys:String x:Key="OneClick:InstalledAsset">Installerade: {0}</sys:String>
<sys:String x:Key="OneClick:AssetInstallFailed">Misslyckades med att installera.</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} OneClick™-installeringshanterare registrerad!</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{0} OneClick™-installeringshanterare avregistrerad!</sys:String>
<sys:String x:Key="OneClick:Installing">Installerar: {0}</sys:String>
<sys:String x:Key="OneClick:RatelimitSkip">Maximalt antal försök uppnådda: hoppar över {0}</sys:String>
<sys:String x:Key="OneClick:RatelimitHit">Ratelimit nådd. Fortsätter om {0}</sys:String>
<sys:String x:Key="OneClick:Failed">Nedladdning misslyckades: {0}</sys:String>
<sys:String x:Key="OneClick:Done">Färdig</sys:String>
<!-- Themes Class -->
<sys:String x:Key="Themes:ThemeNotFound">Temat hittades inte, återställer till standardtemat...</sys:String>
<sys:String x:Key="Themes:ThemeSet">Tema inställt på {0}.</sys:String>
<sys:String x:Key="Themes:ThemeMissing">{0} existerar inte.</sys:String>
<sys:String x:Key="Themes:SavedTemplateTheme">Temamall &quot;{0}&quot; sparad till mappen för teman.</sys:String>
<sys:String x:Key="Themes:TemplateThemeExists">Temamallen finns redan!</sys:String>
<sys:String x:Key="Themes:FailedToLoadXaml">Misslyckades med att ladda .xaml -filen för tema {0}: {1}</sys:String>
<!-- Updater Class -->
<sys:String x:Key="Updater:CheckFailed">Det gick inte att söka efter uppdateringar.</sys:String>
<sys:String x:Key="Updater:DownloadFailed">Det gick inte att ladda ned uppdateringen.</sys:String>
<!-- Utils Class -->
<sys:String x:Key="Utils:NotificationTitle">Mod Assistant</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">Kunde inte hitta din Beat Saber-installationsmapp. Var vänlig välj den manuellt.</sys:String>
<sys:String x:Key="Utils:RunAsAdmin">Mod Assistant behöver köra detta med Adminbehörigheter. Var vänlig försök igen.</sys:String>
<sys:String x:Key="Utils:InstallDir:DialogTitle">Välj din Beat Saber-installationsmapp</sys:String>
<sys:String x:Key="Utils:CannotOpenFolder">Kan inte öppna mapp: {0}</sys:String>
</ResourceDictionary>

View File

@ -1,250 +0,0 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ModAssistant"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="ResourceDictionaryName">i18n:zh-Hans</sys:String>
<!-- App -->
<sys:String x:Key="App:InstallDirDialog:Title">找不到您的Beat Saber安装路径</sys:String>
<sys:String x:Key="App:InstallDirDialog:OkCancel">点确定重试,或点取消关闭软件。</sys:String>
<sys:String x:Key="App:InvalidArgument">无效参数!'{0}'需要一个选项。</sys:String>
<sys:String x:Key="App:UnrecognizedArgument">无法识别的参数。关闭Mod Assistant。</sys:String>
<sys:String x:Key="App:UnhandledException">刚刚发生了一个未处理的异常</sys:String>
<sys:String x:Key="App:Exception">例外</sys:String>
<!-- Main Window -->
<sys:String x:Key="MainWindow:WindowTitle">Mod Assistant</sys:String>
<sys:String x:Key="MainWindow:IntroButton">简介</sys:String>
<sys:String x:Key="MainWindow:ModsButton">Mod</sys:String>
<sys:String x:Key="MainWindow:AboutButton">关于</sys:String>
<sys:String x:Key="MainWindow:OptionsButton">选项</sys:String>
<sys:String x:Key="MainWindow:GameVersionLabel">游戏版本</sys:String>
<sys:String x:Key="MainWindow:VersionLabel">软件版本</sys:String>
<sys:String x:Key="MainWindow:ModInfoButton">Mod信息</sys:String>
<sys:String x:Key="MainWindow:InstallButtonTop">安装</sys:String>
<sys:String x:Key="MainWindow:InstallButtonBottom">或更新</sys:String>
<sys:String x:Key="MainWindow:GameVersionLoadFailed">无法获取游戏版本Mod选项卡将不可用。</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Title">检测到新的游戏版本!</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line1">似乎游戏更新了,</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line2">请仔细检查左下角是否选择了正确的游戏版本!</sys:String>
<sys:String x:Key="MainWindow:NoModSelected">没有选择Mod</sys:String>
<sys:String x:Key="MainWindow:NoModInfoPage">{0}没有信息页。</sys:String>
<!-- Intro Page -->
<sys:String x:Key="Intro:Title">简介</sys:String>
<sys:String x:Key="Intro:PageTitle">欢迎使用Mod Assistant</sys:String>
<sys:String x:Key="Intro:Terms:Header">请仔细阅读本页</sys:String>
<Span x:Key="Intro:Terms:Line1">
通过使用此程序,证明您已阅读并同意以下条款:
</Span>
<Span x:Key="Intro:Terms:Line2">
Beat Saber<Bold>并不能原生支持Mod</Bold>。 这意味着:
</Span>
<Span x:Key="Intro:Terms:Term1">
<Bold>Mod将会在每次游戏更新后无法使用。这很正常并不是游戏开发商的问题。</Bold>
</Span>
<Span x:Key="Intro:Terms:Term2">
Mod会导致出现BUG或者性能问题。这也不是游戏开发商的问题。
</Span>
<Span x:Key="Intro:Terms:Term3">
爱好者在空闲时间<Bold>用爱发电</Bold>制作了这些Mod请保持耐心等待Mod更新。
</Span>
<Span x:Key="Intro:ReviewsBeatGamesFault">
<Bold>请勿由于Mod不可用而发表差评Beat Games不会封杀Mod。</Bold>
</Span>
<Span x:Key="Intro:ReviewsRustySpoon">
如果我继续看到因为Mod不可用而留下的差评<Bold>我会亲自干掉Mod。</Bold>
<LineBreak/><LineBreak/>
我们发现<Bold><Span Foreground="Red"> 围城 </Span>的网站<Span Foreground="Red">未经作者同意擅自打包贩卖</Span></Bold>歌曲、模型,并抹黑社区中的成员。
<LineBreak/>
<Bold>请各位玩家引以为鉴,不要攻击其他玩家或支持这种行为,谢谢配合。</Bold>
</Span>
<Span x:Key="Intro:WikiGuide">
<Bold><Span Foreground="Red">请务必阅读</Span>
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bs-wgzeyu.gtxcn.com/pc-guide/">
新手入门指南
</Hyperlink>、
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bs-wgzeyu.gtxcn.com/pc-faq/">
详细教程与问题解答
</Hyperlink>
</Bold>,以及
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bsmg.wiki/pc-modding.html">
英文教程
</Hyperlink>。
</Span>
<sys:String x:Key="Intro:AgreeButton">同意</sys:String>
<sys:String x:Key="Intro:DisagreeButton">拒绝</sys:String>
<sys:String x:Key="Intro:ClosingApp">关闭软件:您不同意此条款。</sys:String>
<sys:String x:Key="Intro:VersionDownloadFailed">版本列表加载失败</sys:String>
<sys:String x:Key="Intro:ModsTabDisabled">已禁用Mod选项卡请尝试重新打开软件后多等待一会再操作或按照简介页面的中文教程解决。</sys:String>
<sys:String x:Key="Intro:ModsTabEnabled">你现在可以安装Mod了</sys:String>
<!-- Mods Page -->
<sys:String x:Key="Mods:Title">Mod</sys:String>
<sys:String x:Key="Mods:Header:Name">名称</sys:String>
<sys:String x:Key="Mods:Header:Installed">已安装</sys:String>
<sys:String x:Key="Mods:Header:Latest">最新</sys:String>
<sys:String x:Key="Mods:Header:Description">介绍</sys:String>
<sys:String x:Key="Mods:Header:Uninstall">卸载</sys:String>
<sys:String x:Key="Mods:UninstallButton">卸载</sys:String>
<sys:String x:Key="Mods:LoadFailed">Mod列表加载失败</sys:String>
<sys:String x:Key="Mods:CheckingInstalledMods">正在检查已安装的Mod</sys:String>
<sys:String x:Key="Mods:LoadingMods">正在加载Mod列表</sys:String>
<sys:String x:Key="Mods:FinishedLoadingMods">已加载Mod列表</sys:String>
<sys:String x:Key="Mods:NoMods">当前版本的游戏暂时没有Mod请等待Mod更新</sys:String>
<sys:String x:Key="Mods:InstallingMod">正在下载安装{0}</sys:String>
<sys:String x:Key="Mods:InstalledMod">已安装{0}</sys:String>
<sys:String x:Key="Mods:FinishedInstallingMods">Mod安装完成</sys:String>
<sys:String x:Key="Mods:ModDownloadLinkMissing">{0}找不到下载地址!</sys:String>
<sys:String x:Key="Mods:UninstallBox:Title">卸载{0}</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body1">你确定要移除{0}</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body2">这可能会导致其他Mod不可用。</sys:String>
<sys:String x:Key="Mods:FailedExtract">{0}解压失败,将在{1}秒后重试。({2}/{3}</sys:String>
<sys:String x:Key="Mods:FailedExtractMaxReached">{0}在重试{1}次后仍然无法解压将被跳过。注意这个Mod可能无法使用。</sys:String>
<sys:String x:Key="Mods:SearchLabel">搜索...</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Title">BSIPA卸载失败</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Body">找不到BSIPA已跳过卸载操作。</sys:String>
<!-- About Page -->
<sys:String x:Key="About:Title">关于</sys:String>
<sys:String x:Key="About:PageTitle">关于Mod Assistant</sys:String>
<sys:String x:Key="About:List:Header">我是Assistant为了方便安装MOD我制作了Mod Assistant。有以下特性</sys:String>
<sys:String x:Key="About:List:Item1">简单易用</sys:String>
<sys:String x:Key="About:List:Item2">可移植性</sys:String>
<sys:String x:Key="About:List:Item3">单一文件</sys:String>
<sys:String x:Key="About:List:Item4">负责任地使用</sys:String>
<Span x:Key="About:SupportAssistant">
如果你喜欢这个项目并且想支持我,请访问我的
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bs.assistant.moe/Donate/">
捐助页面
</Hyperlink>
或我的
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://www.patreon.com/AssistantMoe">
Patreon
</Hyperlink>
</Span>
<sys:String x:Key="About:SpecialThanks">特别感谢 ♥</sys:String>
<sys:String x:Key="About:Donate">捐助</sys:String>
<sys:String x:Key="About:HeadpatsButton">摸摸头</sys:String>
<sys:String x:Key="About:HugsButton">抱抱</sys:String>
<!-- Options Page -->
<sys:String x:Key="Options:Title">选项</sys:String>
<sys:String x:Key="Options:PageTitle">设置</sys:String>
<sys:String x:Key="Options:InstallFolder">安装路径</sys:String>
<sys:String x:Key="Options:SelectFolderButton">选择路径</sys:String>
<sys:String x:Key="Options:OpenFolderButton">打开路径</sys:String>
<sys:String x:Key="Options:SaveSelectedMods">保存选中的Mod</sys:String>
<sys:String x:Key="Options:CheckInstalledMods">检查已安装的Mod</sys:String>
<sys:String x:Key="Options:SelectInstalledMods">选中已安装的Mod</sys:String>
<sys:String x:Key="Options:ReinstallInstalledMods">重新安装已有Mod</sys:String>
<sys:String x:Key="Options:EnableOneClickInstalls">设置OneClick™网页一键添加资源</sys:String>
<sys:String x:Key="Options:BeatSaver">[歌曲] BeatSaver</sys:String>
<sys:String x:Key="Options:ModelSaber">[模型] ModelSaber</sys:String>
<sys:String x:Key="Options:Playlists">[歌单] Playlists</sys:String>
<sys:String x:Key="Options:CloseWindow">添加完成后关闭窗口</sys:String>
<sys:String x:Key="Options:GameType">游戏平台</sys:String>
<sys:String x:Key="Options:GameType:Steam">Steam</sys:String>
<sys:String x:Key="Options:GameType:Oculus">Oculus</sys:String>
<sys:String x:Key="Options:Tools">工具</sys:String>
<sys:String x:Key="Options:InstallPlaylist">将歌单下载进游戏仅限playlist文件</sys:String>
<sys:String x:Key="Options:InstallingPlaylist">正在添加歌单:{0}</sys:String>
<sys:String x:Key="Options:FailedPlaylistSong">失败歌曲:{0}</sys:String>
<sys:String x:Key="Options:FinishedPlaylist">[{0}失败]添加{1}完成</sys:String>
<sys:String x:Key="Options:ShowOCIWindow">OneClick窗口显示方式</sys:String>
<sys:String x:Key="Options:OCIWindowYes">显示</sys:String>
<sys:String x:Key="Options:OCIWindowClose">完成后关闭</sys:String>
<sys:String x:Key="Options:OCIWindowNo">隐藏</sys:String>
<sys:String x:Key="Options:Diagnostics">诊断工具</sys:String>
<sys:String x:Key="Options:OpenLogsButton">打开日志</sys:String>
<sys:String x:Key="Options:OpenAppDataButton">打开游戏存档</sys:String>
<sys:String x:Key="Options:UninstallBSIPAButton">卸载BSIPA</sys:String>
<sys:String x:Key="Options:RemoveAllModsButton">移除所有Mod</sys:String>
<sys:String x:Key="Options:ApplicationTheme">软件主题</sys:String>
<sys:String x:Key="Options:ExportTemplateButton">导出模板</sys:String>
<sys:String x:Key="Options:UploadingLog">正在上传日志</sys:String>
<sys:String x:Key="Options:LogUrlCopied">日志网址已复制到剪贴板!</sys:String>
<sys:String x:Key="Options:LogUploadFailed">日志上传完成!</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Title">日志上传失败!</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Body">无法将日志文件上传到Teknik请重试或手动发送文件。</sys:String>
<sys:String x:Key="Options:GettingModList">正在获取Mod列表</sys:String>
<sys:String x:Key="Options:FindingBSIPAVersion">正在检查BSIPA版本</sys:String>
<sys:String x:Key="Options:BSIPAUninstalled">已卸载BSIPA</sys:String>
<sys:String x:Key="Options:YeetModsBox:Title">卸载所有Mod</sys:String>
<sys:String x:Key="Options:YeetModsBox:RemoveAllMods">你确定要移除所有Mod</sys:String>
<sys:String x:Key="Options:YeetModsBox:CannotBeUndone">这将无法撤销。</sys:String>
<sys:String x:Key="Options:AllModsUninstalled">已卸载所有Mod</sys:String>
<sys:String x:Key="Options:CurrentThemeRemoved">当前主题已被删除,恢复为默认...</sys:String>
<sys:String x:Key="Options:ThemeFolderNotFound">找不到主题文件夹!请尝试导出模板</sys:String>
<sys:String x:Key="Options:AppDataNotFound">找不到游戏存档路径!请尝试启动游戏后重试。</sys:String>
<!-- Loading Page -->
<sys:String x:Key="Loading:Loading">正在加载Mod...</sys:String>
<!-- Invalid Page -->
<sys:String x:Key="Invalid:Title">无效</sys:String>
<sys:String x:Key="Invalid:PageTitle">检测到无效的安装</sys:String>
<sys:String x:Key="Invalid:PageSubtitle">您的游戏安装已损坏或无效</sys:String>
<sys:String x:Key="Invalid:List:Header">如果您的游戏是盗版的,或者您使用盗版游戏替换了正版,则可能会发生这种情况。</sys:String>
<Span x:Key="Invalid:List:Line1">
如果您的游戏是盗版的,
<Bold>请在
<Hyperlink NavigateUri="https://beatgames.com/" local:HyperlinkExtensions.IsExternal="True">
这里
</Hyperlink>
</Bold>购买游戏。
</Span>
<Span x:Key="Invalid:List:Line2">
如果您的游戏
<Bold>不是盗版</Bold>,请
<Hyperlink NavigateUri="https://bsmg.wiki/support#clean-installation" local:HyperlinkExtensions.IsExternal="True">
清洁安装
</Hyperlink>。
</Span>
<Span x:Key="Invalid:List:Line3">
如果这些方法没有帮助请在BSMG的
<Hyperlink NavigateUri="https://discord.gg/beatsabermods" local:HyperlinkExtensions.IsExternal="True">
Discord
</Hyperlink><Span Foreground="Blue">#pc-help</Span>频道寻求帮助。
</Span>
<sys:String x:Key="Invalid:BoughtGame1">如果您曾经使用盗版,但之后购买了正版游戏</sys:String>
<sys:String x:Key="Invalid:SelectFolderButton">选择路径</sys:String>
<sys:String x:Key="Invalid:BoughtGame2">更改为正版游戏之后您需要重新启动Mod Assistant</sys:String>
<!-- OneClick Class -->
<sys:String x:Key="OneClick:MapDownloadFailed">无法获取详情。</sys:String>
<sys:String x:Key="OneClick:SongDownloadFailed">无法下载歌曲。</sys:String>
<sys:String x:Key="OneClick:SongDownload:Failed">无法下载歌曲。</sys:String>
<sys:String x:Key="OneClick:SongDownload:NetworkIssues">可能您的互联网连接或BeatSaver存在问题。</sys:String>
<sys:String x:Key="OneClick:SongDownload:FailedTitle">下载歌曲压缩包失败。</sys:String>
<sys:String x:Key="OneClick:InstallDirNotFound">找不到Beat Saber安装路径。</sys:String>
<sys:String x:Key="OneClick:InstalledAsset">已添加:{0}</sys:String>
<sys:String x:Key="OneClick:AssetInstallFailed">添加失败。</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} OneClick™ 一键添加处理程序已注册!</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{0} OneClick™ 一键添加处理程序已移除!</sys:String>
<sys:String x:Key="OneClick:Installing">正在下载:{0}</sys:String>
<sys:String x:Key="OneClick:RatelimitSkip">超过重试次数,跳过:{0}</sys:String>
<sys:String x:Key="OneClick:RatelimitHit">下载超时,重试:{0}</sys:String>
<sys:String x:Key="OneClick:Failed">下载失败:{0}</sys:String>
<sys:String x:Key="OneClick:Done">执行完毕</sys:String>
<!-- Themes Class -->
<sys:String x:Key="Themes:ThemeNotFound">找不到主题,恢复为默认主题...</sys:String>
<sys:String x:Key="Themes:ThemeSet">主题设置为{0}.</sys:String>
<sys:String x:Key="Themes:ThemeMissing">{0}不存在</sys:String>
<sys:String x:Key="Themes:SavedTemplateTheme">模板主题&quot;{0}&quot;保存到主题文件夹。</sys:String>
<sys:String x:Key="Themes:TemplateThemeExists">模板主题已存在!</sys:String>
<sys:String x:Key="Themes:FailedToLoadXaml">无法加载主题的.xaml文件 {0}: {1}</sys:String>
<!-- Updater Class -->
<sys:String x:Key="Updater:CheckFailed">无法检查更新。</sys:String>
<sys:String x:Key="Updater:DownloadFailed">无法下载更新。</sys:String>
<!-- Utils Class -->
<sys:String x:Key="Utils:NotificationTitle">Mod Assistant</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">检测不到您的Beat Saber安装路径请手动选择。</sys:String>
<sys:String x:Key="Utils:RunAsAdmin">Mod Assistant需要以管理员身份运行此任务请重试。</sys:String>
<sys:String x:Key="Utils:InstallDir:DialogTitle">选择您的Beat Saber安装路径</sys:String>
<sys:String x:Key="Utils:CannotOpenFolder">无法打开路径:{0}</sys:String>
</ResourceDictionary>

View File

@ -1,114 +0,0 @@
<Window x:Class="ModAssistant.OneClickStatus"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ModAssistant"
mc:Ignorable="d"
Title="OneClick Installer" Height="800" Width="600" WindowStyle="ToolWindow" ResizeMode="NoResize">
<Window.Resources>
<local:DivideDoubleByTwoConverter x:Key="DivideDoubleByTwoConverter" />
<Style x:Key="Spin" TargetType="{x:Type Image}">
<Setter Property="RenderTransform">
<Setter.Value>
<RotateTransform Angle="0" CenterX="{Binding Path=ActualWidth, Converter={StaticResource DivideDoubleByTwoConverter}, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Image}}" CenterY="{Binding Path=ActualHeight, Converter={StaticResource DivideDoubleByTwoConverter}, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Image}}" />
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsEnabled" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard x:Name="RotateStarCompass">
<DoubleAnimation
AutoReverse="False"
RepeatBehavior="Forever"
Storyboard.TargetProperty="RenderTransform.Angle"
From="0"
To="360"
Duration="0:0:3" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Rectangle Fill="{DynamicResource ModAssistantBackground}" Grid.RowSpan="2"/>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Image
Grid.Row="0"
Margin="60,0"
VerticalAlignment="Center"
Source="{DynamicResource loadingInnerDrawingImage}"
Stretch="Uniform" />
<Image
Grid.Row="0"
Margin="60,0"
VerticalAlignment="Center"
Source="{DynamicResource loadingMiddleDrawingImage}"
Stretch="Uniform" />
<Image
Name="Ring"
Grid.Row="0"
Margin="60,0"
VerticalAlignment="Center"
Source="{DynamicResource loadingOuterDrawingImage}"
Stretch="Uniform"
Style="{StaticResource Spin}" />
</Grid>
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Border
Grid.Row="0"
Height="40"
Margin="10,0,10,10"
VerticalAlignment="Bottom"
BorderBrush="{DynamicResource BottomStatusBarOutline}"
BorderThickness="1">
<TextBlock
Name="MainTextBlock"
Padding="5"
Background="{DynamicResource BottomStatusBarBackground}"
FontSize="20" />
</Border>
<Border
Grid.Row="1"
Margin="10,0,10,10"
BorderBrush="{DynamicResource BottomStatusBarOutline}"
BorderThickness="1">
<ScrollViewer
VerticalScrollBarVisibility="Auto"
HorizontalScrollBarVisibility="Auto"
Background="{DynamicResource BottomStatusBarBackground}"
Margin="0">
<TextBox
Name="HistoryTextBlock"
Margin="0"
Padding="5"
Background="{DynamicResource BottomStatusBarBackground}"
BorderThickness="0"
Foreground="{DynamicResource TextColor}" />
</ScrollViewer>
</Border>
</Grid>
</Grid>
</Window>

View File

@ -1,71 +0,0 @@
using System;
using System.Windows;
using System.Windows.Data;
namespace ModAssistant
{
/// <summary>
/// Interaction logic for OneClickStatus.xaml
/// </summary>
public partial class OneClickStatus : Window
{
public static OneClickStatus Instance;
public string HistoryText
{
get
{
return HistoryTextBlock.Text;
}
set
{
Dispatcher.Invoke(new Action(() => { Instance.HistoryTextBlock.Text = value; }));
}
}
public string MainText
{
get
{
return MainTextBlock.Text;
}
set
{
Dispatcher.Invoke(new Action(() =>
{
Instance.MainTextBlock.Text = value;
Instance.HistoryTextBlock.Text = string.IsNullOrEmpty(MainText) ? $"{value}" : $"{value}\n{HistoryText}";
}));
}
}
public OneClickStatus()
{
InitializeComponent();
Instance = App.OCIWindow != "No" ? this : null;
}
public void StopRotation()
{
Ring.Style = null;
}
}
[ValueConversion(typeof(double), typeof(double))]
public class DivideDoubleByTwoConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (targetType != typeof(double))
{
throw new InvalidOperationException("The target must be a double");
}
double d = (double)value;
return ((double)d) / 2;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotSupportedException();
}
}
}

View File

@ -1,799 +0,0 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Forms;
using System.Windows.Media.Animation;
using System.Windows.Navigation;
using ModAssistant.Libs;
using static ModAssistant.Http;
using TextBox = System.Windows.Controls.TextBox;
namespace ModAssistant.Pages
{
/// <summary>
/// Interaction logic for Mods.xaml
/// </summary>
public sealed partial class Mods : Page
{
public static Mods Instance = new Mods();
public List<string> DefaultMods = new List<string>() { "SongCore", "ScoreSaber", "BeatSaverDownloader", "BeatSaverVoting", "PlaylistCore", "Survey" };
public Mod[] ModsList;
public Mod[] AllModsList;
public static List<Mod> InstalledMods = new List<Mod>();
public List<string> CategoryNames = new List<string>();
public CollectionView view;
public bool PendingChanges;
private readonly SemaphoreSlim _modsLoadSem = new SemaphoreSlim(1, 1);
public List<ModListItem> ModList { get; set; }
public Mods()
{
InitializeComponent();
}
private void RefreshModsList()
{
if (view != null)
{
view.Refresh();
}
}
public void RefreshColumns()
{
if (MainWindow.Instance.Main.Content != Instance) return;
double viewWidth = ModsListView.ActualWidth;
double totalSize = 0;
GridViewColumn description = null;
if (ModsListView.View is GridView grid)
{
foreach (var column in grid.Columns)
{
if (column.Header?.ToString() == FindResource("Mods:Header:Description").ToString())
{
description = column;
}
else
{
totalSize += column.ActualWidth;
}
if (double.IsNaN(column.Width))
{
column.Width = column.ActualWidth;
column.Width = double.NaN;
}
}
double descriptionNewWidth = viewWidth - totalSize - 35;
description.Width = descriptionNewWidth > 200 ? descriptionNewWidth : 200;
}
}
public async Task LoadMods()
{
var versionLoadSuccess = await MainWindow.Instance.VersionLoadStatus.Task;
if (versionLoadSuccess == false) return;
await _modsLoadSem.WaitAsync();
try
{
MainWindow.Instance.InstallButton.IsEnabled = false;
MainWindow.Instance.GameVersionsBox.IsEnabled = false;
MainWindow.Instance.InfoButton.IsEnabled = false;
if (ModsList != null)
{
Array.Clear(ModsList, 0, ModsList.Length);
}
if (AllModsList != null)
{
Array.Clear(AllModsList, 0, AllModsList.Length);
}
InstalledMods = new List<Mod>();
CategoryNames = new List<string>();
ModList = new List<ModListItem>();
ModsListView.Visibility = Visibility.Hidden;
if (App.CheckInstalledMods)
{
MainWindow.Instance.MainText = $"{FindResource("Mods:CheckingInstalledMods")}...";
await Task.Run(async () => await CheckInstalledMods());
InstalledColumn.Width = double.NaN;
UninstallColumn.Width = 70;
DescriptionColumn.Width = 750;
}
else
{
InstalledColumn.Width = 0;
UninstallColumn.Width = 0;
DescriptionColumn.Width = 800;
}
MainWindow.Instance.MainText = $"{FindResource("Mods:LoadingMods")}...";
await Task.Run(async () => await PopulateModsList());
ModsListView.ItemsSource = ModList;
view = (CollectionView)CollectionViewSource.GetDefaultView(ModsListView.ItemsSource);
PropertyGroupDescription groupDescription = new PropertyGroupDescription("Category");
view.GroupDescriptions.Add(groupDescription);
this.DataContext = this;
RefreshModsList();
ModsListView.Visibility = ModList.Count == 0 ? Visibility.Hidden : Visibility.Visible;
NoModsGrid.Visibility = ModList.Count == 0 ? Visibility.Visible : Visibility.Hidden;
MainWindow.Instance.MainText = $"{FindResource("Mods:FinishedLoadingMods")}.";
MainWindow.Instance.InstallButton.IsEnabled = ModList.Count != 0;
MainWindow.Instance.GameVersionsBox.IsEnabled = true;
}
finally
{
_modsLoadSem.Release();
}
}
public async Task CheckInstalledMods()
{
await GetAllMods();
GetBSIPAVersion();
CheckInstallDir("IPA/Pending/Plugins");
CheckInstallDir("IPA/Pending/Libs");
CheckInstallDir("Plugins");
CheckInstallDir("Libs");
}
public async Task GetAllMods()
{
var resp = await HttpClient.GetAsync(Utils.Constants.BeatModsAPIUrl + "mod");
var body = await resp.Content.ReadAsStringAsync();
AllModsList = JsonSerializer.Deserialize<Mod[]>(body);
}
private void CheckInstallDir(string directory)
{
if (!Directory.Exists(Path.Combine(App.BeatSaberInstallDirectory, directory)))
{
return;
}
foreach (string file in Directory.GetFileSystemEntries(Path.Combine(App.BeatSaberInstallDirectory, directory)))
{
if (File.Exists(file) && Path.GetExtension(file) == ".dll" || Path.GetExtension(file) == ".manifest")
{
Mod mod = GetModFromHash(Utils.CalculateMD5(file));
if (mod != null)
{
AddDetectedMod(mod);
}
}
}
}
public void GetBSIPAVersion()
{
string InjectorPath = Path.Combine(App.BeatSaberInstallDirectory, "Beat Saber_Data", "Managed", "IPA.Injector.dll");
if (!File.Exists(InjectorPath)) return;
string InjectorHash = Utils.CalculateMD5(InjectorPath);
foreach (Mod mod in AllModsList)
{
if (mod.name.ToLower() == "bsipa")
{
foreach (Mod.DownloadLink download in mod.downloads)
{
foreach (Mod.FileHashes fileHash in download.hashMd5)
{
if (fileHash.hash == InjectorHash)
{
AddDetectedMod(mod);
}
}
}
}
}
}
private void AddDetectedMod(Mod mod)
{
if (!InstalledMods.Contains(mod))
{
InstalledMods.Add(mod);
if (App.SelectInstalledMods && !DefaultMods.Contains(mod.name))
{
DefaultMods.Add(mod.name);
}
}
}
private Mod GetModFromHash(string hash)
{
foreach (Mod mod in AllModsList)
{
if (mod.name.ToLower() != "bsipa" && mod.status != "declined")
{
foreach (Mod.DownloadLink download in mod.downloads)
{
foreach (Mod.FileHashes fileHash in download.hashMd5)
{
if (fileHash.hash == hash)
return mod;
}
}
}
}
return null;
}
public async Task PopulateModsList()
{
try
{
var resp = await HttpClient.GetAsync(Utils.Constants.BeatModsAPIUrl + Utils.Constants.BeatModsModsOptions + "&gameVersion=" + MainWindow.GameVersion);
var body = await resp.Content.ReadAsStringAsync();
ModsList = JsonSerializer.Deserialize<Mod[]>(body);
}
catch (Exception e)
{
System.Windows.MessageBox.Show($"{FindResource("Mods:LoadFailed")}.\n\n" + e);
return;
}
foreach (Mod mod in ModsList)
{
bool preSelected = mod.required;
if (DefaultMods.Contains(mod.name) || (App.SaveModSelection && App.SavedMods.Contains(mod.name)))
{
preSelected = true;
if (!App.SavedMods.Contains(mod.name))
{
App.SavedMods.Add(mod.name);
}
}
RegisterDependencies(mod);
ModListItem ListItem = new ModListItem()
{
IsSelected = preSelected,
IsEnabled = !mod.required,
ModName = mod.name,
ModVersion = mod.version,
ModDescription = mod.description.Replace("\r\n", " ").Replace("\n", " "),
ModInfo = mod,
Category = mod.category
};
foreach (Promotion promo in Promotions.ActivePromotions)
{
if (mod.name == promo.ModName)
{
ListItem.PromotionText = promo.Text;
ListItem.PromotionLink = promo.Link;
}
}
foreach (Mod installedMod in InstalledMods)
{
if (mod.name == installedMod.name)
{
ListItem.InstalledModInfo = installedMod;
ListItem.IsInstalled = true;
ListItem.InstalledVersion = installedMod.version;
break;
}
}
mod.ListItem = ListItem;
ModList.Add(ListItem);
}
foreach (Mod mod in ModsList)
{
ResolveDependencies(mod);
}
}
public async void InstallMods()
{
MainWindow.Instance.InstallButton.IsEnabled = false;
string installDirectory = App.BeatSaberInstallDirectory;
foreach (Mod mod in ModsList)
{
// Ignore mods that are newer than installed version
if (mod.ListItem.GetVersionComparison > 0) continue;
// Ignore mods that are on current version if we aren't reinstalling mods
if (mod.ListItem.GetVersionComparison == 0 && !App.ReinstallInstalledMods) continue;
if (mod.name.ToLower() == "bsipa")
{
MainWindow.Instance.MainText = $"{string.Format((string)FindResource("Mods:InstallingMod"), mod.name)}...";
await Task.Run(async () => await InstallMod(mod, installDirectory));
MainWindow.Instance.MainText = $"{string.Format((string)FindResource("Mods:InstalledMod"), mod.name)}.";
if (!File.Exists(Path.Combine(installDirectory, "winhttp.dll")))
{
await Task.Run(() =>
Process.Start(new ProcessStartInfo
{
FileName = Path.Combine(installDirectory, "IPA.exe"),
WorkingDirectory = installDirectory,
Arguments = "-n"
}).WaitForExit()
);
}
Options.Instance.YeetBSIPA.IsEnabled = true;
}
else if (mod.ListItem.IsSelected)
{
MainWindow.Instance.MainText = $"{string.Format((string)FindResource("Mods:InstallingMod"), mod.name)}...";
await Task.Run(async () => await InstallMod(mod, Path.Combine(installDirectory, @"IPA\Pending")));
MainWindow.Instance.MainText = $"{string.Format((string)FindResource("Mods:InstalledMod"), mod.name)}.";
}
}
MainWindow.Instance.MainText = $"{FindResource("Mods:FinishedInstallingMods")}.";
MainWindow.Instance.InstallButton.IsEnabled = true;
RefreshModsList();
}
private async Task InstallMod(Mod mod, string directory)
{
string downloadLink = null;
foreach (Mod.DownloadLink link in mod.downloads)
{
if (link.type == "universal")
{
downloadLink = link.url;
break;
}
else if (link.type.ToLower() == App.BeatSaberInstallType.ToLower())
{
downloadLink = link.url;
break;
}
}
if (string.IsNullOrEmpty(downloadLink))
{
System.Windows.MessageBox.Show(string.Format((string)FindResource("Mods:ModDownloadLinkMissing"), mod.name));
return;
}
using (Stream stream = await DownloadMod(Utils.Constants.BeatModsURL + downloadLink))
using (ZipArchive archive = new ZipArchive(stream))
{
foreach (ZipArchiveEntry file in archive.Entries)
{
string fileDirectory = Path.GetDirectoryName(Path.Combine(directory, file.FullName));
if (!Directory.Exists(fileDirectory))
{
Directory.CreateDirectory(fileDirectory);
}
if (!string.IsNullOrEmpty(file.Name))
{
await ExtractFile(file, Path.Combine(directory, file.FullName), 3.0, mod.name, 10);
}
}
}
if (App.CheckInstalledMods)
{
mod.ListItem.IsInstalled = true;
mod.ListItem.InstalledVersion = mod.version;
mod.ListItem.InstalledModInfo = mod;
}
}
private async Task ExtractFile(ZipArchiveEntry file, string path, double seconds, string name, int maxTries, int tryNumber = 0)
{
if (tryNumber < maxTries)
{
try
{
file.ExtractToFile(path, true);
}
catch
{
MainWindow.Instance.MainText = $"{string.Format((string)FindResource("Mods:FailedExtract"), name, seconds, tryNumber + 1, maxTries)}";
await Task.Delay((int)(seconds * 1000));
await ExtractFile(file, path, seconds, name, maxTries, tryNumber + 1);
}
}
else
{
System.Windows.MessageBox.Show($"{string.Format((string)FindResource("Mods:FailedExtractMaxReached"), name, maxTries)}.", "Failed to install " + name);
}
}
private async Task<Stream> DownloadMod(string link)
{
var resp = await HttpClient.GetAsync(link);
return await resp.Content.ReadAsStreamAsync();
}
private void RegisterDependencies(Mod dependent)
{
if (dependent.dependencies.Length == 0)
return;
foreach (Mod mod in ModsList)
{
foreach (Mod.Dependency dep in dependent.dependencies)
{
if (dep.name == mod.name)
{
dep.Mod = mod;
mod.Dependents.Add(dependent);
}
}
}
}
private void ResolveDependencies(Mod dependent)
{
if (dependent.ListItem.IsSelected && dependent.dependencies.Length > 0)
{
foreach (Mod.Dependency dependency in dependent.dependencies)
{
if (dependency.Mod.ListItem.IsEnabled)
{
dependency.Mod.ListItem.PreviousState = dependency.Mod.ListItem.IsSelected;
dependency.Mod.ListItem.IsSelected = true;
dependency.Mod.ListItem.IsEnabled = false;
ResolveDependencies(dependency.Mod);
}
}
}
}
private void UnresolveDependencies(Mod dependent)
{
if (!dependent.ListItem.IsSelected && dependent.dependencies.Length > 0)
{
foreach (Mod.Dependency dependency in dependent.dependencies)
{
if (!dependency.Mod.ListItem.IsEnabled)
{
bool needed = false;
foreach (Mod dep in dependency.Mod.Dependents)
{
if (dep.ListItem.IsSelected)
{
needed = true;
break;
}
}
if (!needed && !dependency.Mod.required)
{
dependency.Mod.ListItem.IsSelected = dependency.Mod.ListItem.PreviousState;
dependency.Mod.ListItem.IsEnabled = true;
UnresolveDependencies(dependency.Mod);
}
}
}
}
}
private void ModCheckBox_Checked(object sender, RoutedEventArgs e)
{
Mod mod = ((sender as System.Windows.Controls.CheckBox).Tag as Mod);
mod.ListItem.IsSelected = true;
ResolveDependencies(mod);
App.SavedMods.Add(mod.name);
Properties.Settings.Default.SavedMods = string.Join(",", App.SavedMods.ToArray());
Properties.Settings.Default.Save();
RefreshModsList();
}
private void ModCheckBox_Unchecked(object sender, RoutedEventArgs e)
{
Mod mod = ((sender as System.Windows.Controls.CheckBox).Tag as Mod);
mod.ListItem.IsSelected = false;
UnresolveDependencies(mod);
App.SavedMods.Remove(mod.name);
Properties.Settings.Default.SavedMods = string.Join(",", App.SavedMods.ToArray());
Properties.Settings.Default.Save();
RefreshModsList();
}
public class Category
{
public string CategoryName { get; set; }
public List<ModListItem> Mods = new List<ModListItem>();
}
public class ModListItem
{
public string ModName { get; set; }
public string ModVersion { get; set; }
public string ModDescription { get; set; }
public bool PreviousState { get; set; }
public bool IsEnabled { get; set; }
public bool IsSelected { get; set; }
public Mod ModInfo { get; set; }
public string Category { get; set; }
public Mod InstalledModInfo { get; set; }
public bool IsInstalled { get; set; }
private SemVersion _installedVersion { get; set; }
public string InstalledVersion
{
get
{
if (!IsInstalled || _installedVersion == null) return "-";
return _installedVersion.ToString();
}
set
{
if (SemVersion.TryParse(value, out SemVersion tempInstalledVersion))
{
_installedVersion = tempInstalledVersion;
}
else
{
_installedVersion = null;
}
}
}
public string GetVersionColor
{
get
{
if (!IsInstalled) return "Black";
return _installedVersion >= ModVersion ? "Green" : "Red";
}
}
public string GetVersionDecoration
{
get
{
if (!IsInstalled) return "None";
return _installedVersion >= ModVersion ? "None" : "Strikethrough";
}
}
public int GetVersionComparison
{
get
{
if (!IsInstalled || _installedVersion < ModVersion) return -1;
if (_installedVersion > ModVersion) return 1;
return 0;
}
}
public bool CanDelete
{
get
{
return (!ModInfo.required && IsInstalled);
}
}
public string CanSeeDelete
{
get
{
if (!ModInfo.required && IsInstalled)
return "Visible";
else
return "Hidden";
}
}
public string PromotionText { get; set; }
public string PromotionLink { get; set; }
public string PromotionMargin
{
get
{
if (string.IsNullOrEmpty(PromotionText)) return "0";
return "0,0,5,0";
}
}
}
private void ModsListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if ((Mods.ModListItem)Instance.ModsListView.SelectedItem == null)
{
MainWindow.Instance.InfoButton.IsEnabled = false;
}
else
{
MainWindow.Instance.InfoButton.IsEnabled = true;
}
}
public void UninstallBSIPA(Mod.DownloadLink links)
{
Process.Start(new ProcessStartInfo
{
FileName = Path.Combine(App.BeatSaberInstallDirectory, "IPA.exe"),
WorkingDirectory = App.BeatSaberInstallDirectory,
Arguments = "--revert -n"
}).WaitForExit();
foreach (Mod.FileHashes files in links.hashMd5)
{
string file = files.file.Replace("IPA/", "").Replace("Data", "Beat Saber_Data");
if (File.Exists(Path.Combine(App.BeatSaberInstallDirectory, file)))
File.Delete(Path.Combine(App.BeatSaberInstallDirectory, file));
}
Options.Instance.YeetBSIPA.IsEnabled = false;
}
private void Uninstall_Click(object sender, RoutedEventArgs e)
{
Mod mod = ((sender as System.Windows.Controls.Button).Tag as Mod);
string title = string.Format((string)FindResource("Mods:UninstallBox:Title"), mod.name);
string body1 = string.Format((string)FindResource("Mods:UninstallBox:Body1"), mod.name);
string body2 = string.Format((string)FindResource("Mods:UninstallBox:Body2"), mod.name);
var result = System.Windows.Forms.MessageBox.Show($"{body1}\n{body2}", title, MessageBoxButtons.YesNo);
if (result == DialogResult.Yes)
{
UninstallModFromList(mod);
}
}
private void UninstallModFromList(Mod mod)
{
UninstallMod(mod.ListItem.InstalledModInfo);
mod.ListItem.IsInstalled = false;
mod.ListItem.InstalledVersion = null;
if (App.SelectInstalledMods)
{
mod.ListItem.IsSelected = false;
UnresolveDependencies(mod);
App.SavedMods.Remove(mod.name);
Properties.Settings.Default.SavedMods = string.Join(",", App.SavedMods.ToArray());
Properties.Settings.Default.Save();
RefreshModsList();
}
view.Refresh();
}
public void UninstallMod(Mod mod)
{
Mod.DownloadLink links = null;
foreach (Mod.DownloadLink link in mod.downloads)
{
if (link.type.ToLower() == "universal" || link.type.ToLower() == App.BeatSaberInstallType.ToLower())
{
links = link;
break;
}
}
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)
{
UninstallBSIPA(links);
}
else
{
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);
}
}
foreach (Mod.FileHashes files in links.hashMd5)
{
if (File.Exists(Path.Combine(App.BeatSaberInstallDirectory, files.file)))
File.Delete(Path.Combine(App.BeatSaberInstallDirectory, files.file));
if (File.Exists(Path.Combine(App.BeatSaberInstallDirectory, "IPA", "Pending", files.file)))
File.Delete(Path.Combine(App.BeatSaberInstallDirectory, "IPA", "Pending", files.file));
}
}
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
e.Handled = true;
}
private void Page_Loaded(object sender, RoutedEventArgs e)
{
RefreshColumns();
}
private void CopyText(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
if (!(sender is TextBlock textBlock)) return;
var text = textBlock.Text;
// Ensure there's text to be copied
if (string.IsNullOrWhiteSpace(text)) return;
Utils.SetClipboard(text);
}
private void SearchButton_Click(object sender, RoutedEventArgs e)
{
if (SearchBar.Height == 0)
{
SearchBar.Focus();
Animate(SearchBar, 0, 16, new TimeSpan(0, 0, 0, 0, 300));
Animate(SearchText, 0, 16, new TimeSpan(0, 0, 0, 0, 300));
ModsListView.Items.Filter = new Predicate<object>(SearchFilter);
}
else
{
Animate(SearchBar, 16, 0, new TimeSpan(0, 0, 0, 0, 300));
Animate(SearchText, 16, 0, new TimeSpan(0, 0, 0, 0, 300));
ModsListView.Items.Filter = null;
}
}
private void SearchBar_TextChanged(object sender, TextChangedEventArgs e)
{
ModsListView.Items.Filter = new Predicate<object>(SearchFilter);
if (SearchBar.Text.Length > 0)
{
SearchText.Text = null;
}
else
{
SearchText.Text = (string)FindResource("Mods:SearchLabel");
}
}
private bool SearchFilter(object mod)
{
ModListItem item = mod as ModListItem;
if (item.ModName.ToLower().Contains(SearchBar.Text.ToLower())) return true;
if (item.ModDescription.ToLower().Contains(SearchBar.Text.ToLower())) return true;
if (item.ModName.ToLower().Replace(" ", string.Empty).Contains(SearchBar.Text.ToLower().Replace(" ", string.Empty))) return true;
if (item.ModDescription.ToLower().Replace(" ", string.Empty).Contains(SearchBar.Text.ToLower().Replace(" ", string.Empty))) return true;
return false;
}
private void Animate(TextBlock target, double oldHeight, double newHeight, TimeSpan duration)
{
target.Height = oldHeight;
DoubleAnimation animation = new DoubleAnimation(newHeight, duration);
target.BeginAnimation(HeightProperty, animation);
}
private void Animate(TextBox target, double oldHeight, double newHeight, TimeSpan duration)
{
target.Height = oldHeight;
DoubleAnimation animation = new DoubleAnimation(newHeight, duration);
target.BeginAnimation(HeightProperty, animation);
}
}
}

View File

@ -1,417 +0,0 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using Path = System.IO.Path;
namespace ModAssistant.Pages
{
/// <summary>
/// Interaction logic for Options.xaml
/// </summary>
public partial class Options : Page
{
public static Options Instance = new Options();
public string InstallDirectory { get; set; }
public string InstallType { get; set; }
public bool SaveSelection { get; set; }
public bool CheckInstalledMods { get; set; }
public bool SelectInstalledMods { get; set; }
public bool ReinstallInstalledMods { get; set; }
public bool ModelSaberProtocolHandlerEnabled { get; set; }
public bool BeatSaverProtocolHandlerEnabled { get; set; }
public bool PlaylistsProtocolHandlerEnabled { get; set; }
public bool CloseWindowOnFinish { get; set; }
public string LogURL { get; private set; }
public string OCIWindow { get; set; }
public Options()
{
InitializeComponent();
OCIWindow = App.OCIWindow;
if (!string.IsNullOrEmpty(OCIWindow))
{
UpdateOCIWindow(OCIWindow);
}
if (!CheckInstalledMods)
{
SelectInstalled.IsEnabled = false;
ReinstallInstalled.IsEnabled = false;
}
UpdateHandlerStatus();
this.DataContext = this;
}
public void UpdateHandlerStatus()
{
ModelSaberProtocolHandlerEnabled = OneClickInstaller.IsRegistered("modelsaber");
BeatSaverProtocolHandlerEnabled = OneClickInstaller.IsRegistered("beatsaver");
PlaylistsProtocolHandlerEnabled = OneClickInstaller.IsRegistered("bsplaylist");
}
private void SelectDirButton_Click(object sender, RoutedEventArgs e)
{
Utils.GetManualDir();
DirectoryTextBlock.Text = InstallDirectory;
GameTypeTextBlock.Text = InstallType;
}
private void OpenDirButton_Click(object sender, RoutedEventArgs e)
{
Utils.OpenFolder(InstallDirectory);
}
private void Test_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show(Utils.GetSteamDir());
}
private void SaveSelected_Checked(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.SaveSelected = true;
App.SaveModSelection = true;
Properties.Settings.Default.Save();
}
private void SaveSelected_Unchecked(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.SaveSelected = false;
App.SaveModSelection = false;
Properties.Settings.Default.Save();
}
private void CheckInstalled_Checked(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.CheckInstalled = true;
App.CheckInstalledMods = true;
CheckInstalledMods = true;
Properties.Settings.Default.Save();
SelectInstalled.IsEnabled = true;
ReinstallInstalled.IsEnabled = true;
if (MainWindow.ModsOpened)
{
Mods.Instance.PendingChanges = true;
}
}
private void CheckInstalled_Unchecked(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.CheckInstalled = false;
App.CheckInstalledMods = false;
CheckInstalledMods = false;
Properties.Settings.Default.Save();
SelectInstalled.IsEnabled = false;
ReinstallInstalled.IsEnabled = false;
if (MainWindow.ModsOpened)
{
Mods.Instance.PendingChanges = true;
}
}
private void CloseWindowOnFinish_Checked(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.CloseWindowOnFinish = true;
App.CloseWindowOnFinish = true;
CloseWindowOnFinish = true;
Properties.Settings.Default.Save();
}
private void CloseWindowOnFinish_Unchecked(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.CloseWindowOnFinish = false;
App.CloseWindowOnFinish = false;
CloseWindowOnFinish = false;
Properties.Settings.Default.Save();
}
public void ModelSaberProtocolHandler_Checked(object sender, RoutedEventArgs e)
{
OneClickInstaller.Register("modelsaber", Description: "URL:ModelSaber OneClick Install");
}
public void ModelSaberProtocolHandler_Unchecked(object sender, RoutedEventArgs e)
{
OneClickInstaller.Unregister("modelsaber");
}
public void BeatSaverProtocolHandler_Checked(object sender, RoutedEventArgs e)
{
OneClickInstaller.Register("beatsaver", Description: "URL:BeatSaver OneClick Install");
}
public void BeatSaverProtocolHandler_Unchecked(object sender, RoutedEventArgs e)
{
OneClickInstaller.Unregister("beatsaver");
}
public void PlaylistsProtocolHandler_Checked(object sender, RoutedEventArgs e)
{
OneClickInstaller.Register("bsplaylist", Description: "URL:BeatSaver Playlist OneClick Install");
}
public void PlaylistsProtocolHandler_Unchecked(object sender, RoutedEventArgs e)
{
OneClickInstaller.Unregister("bsplaylist");
}
private void SelectInstalled_Checked(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.SelectInstalled = true;
App.SelectInstalledMods = true;
SelectInstalledMods = true;
Properties.Settings.Default.Save();
}
private void SelectInstalled_Unchecked(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.SelectInstalled = false;
App.SelectInstalledMods = false;
SelectInstalledMods = false;
Properties.Settings.Default.Save();
}
private void ReinstallInstalled_Checked(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.ReinstallInstalled = true;
App.ReinstallInstalledMods = true;
ReinstallInstalledMods = true;
Properties.Settings.Default.Save();
}
private void ReinstallInstalled_Unchecked(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.ReinstallInstalled = false;
App.ReinstallInstalledMods = false;
ReinstallInstalledMods = false;
Properties.Settings.Default.Save();
}
private async void OpenLogsDirButton_Click(object sender, RoutedEventArgs e)
{
try
{
MainWindow.Instance.MainText = $"{Application.Current.FindResource("Options:UploadingLog")}...";
await Task.Run(async () => await UploadLog());
Process.Start(LogURL);
Utils.SetClipboard(LogURL);
MainWindow.Instance.MainText = (string)Application.Current.FindResource("Options:LogUrlCopied");
}
catch (Exception exception)
{
MainWindow.Instance.MainText = $"{Application.Current.FindResource("Options:LogUploadFailed")}.";
string title = (string)Application.Current.FindResource("Options:LogUploadFailed:Title");
string body = (string)Application.Current.FindResource("Options:LogUploadFailed:Body");
MessageBox.Show($"{body}\n ================= \n" + exception, title);
Utils.OpenFolder(Path.Combine(InstallDirectory, "Logs"));
}
}
private async Task UploadLog()
{
const string DateFormat = "yyyy-mm-dd HH:mm:ss";
DateTime now = DateTime.Now;
string logPath = Path.GetDirectoryName(ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal).FilePath);
string Log = Path.Combine(logPath, "log.log");
string GameLog = File.ReadAllText(Path.Combine(InstallDirectory, "Logs", "_latest.log"));
string Separator = File.Exists(Log) ? $"\n\n=============================================\n============= Mod Assistant Log =============\n=============================================\n\n" : string.Empty;
string ModAssistantLog = File.Exists(Log) ? File.ReadAllText(Log) : string.Empty;
var nvc = new List<KeyValuePair<string, string>>()
{
new KeyValuePair<string, string>("title", $"_latest.log ({now.ToString(DateFormat)})"),
new KeyValuePair<string, string>("expireUnit", "hour"),
new KeyValuePair<string, string>("expireLength", "5"),
new KeyValuePair<string, string>("code", $"{GameLog}{Separator}{ModAssistantLog}"),
};
string[] items = new string[nvc.Count];
for (int i = 0; i < nvc.Count; i++)
{
KeyValuePair<string, string> item = nvc[i];
items[i] = WebUtility.UrlEncode(item.Key) + "=" + WebUtility.UrlEncode(item.Value);
}
StringContent content = new StringContent(string.Join("&", items), null, "application/x-www-form-urlencoded");
HttpResponseMessage resp = await Http.HttpClient.PostAsync(Utils.Constants.TeknikAPIUrl + "Paste", content);
string body = await resp.Content.ReadAsStringAsync();
Utils.TeknikPasteResponse TeknikResponse = Http.JsonSerializer.Deserialize<Utils.TeknikPasteResponse>(body);
LogURL = TeknikResponse.result.url;
}
private void OpenAppDataButton_Click(object sender, RoutedEventArgs e)
{
string location = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
"AppData", "LocalLow", "Hyperbolic Magnetism");
if (Directory.Exists(location))
{
Utils.OpenFolder(location);
}
else
{
MessageBox.Show((string)Application.Current.FindResource("Options:AppDataNotFound"));
}
}
private async void YeetBSIPAButton_Click(object sender, RoutedEventArgs e)
{
if (Mods.Instance.AllModsList == null)
{
MainWindow.Instance.MainText = $"{Application.Current.FindResource("Options:GettingModList")}...";
await Task.Run(async () => await Mods.Instance.GetAllMods());
MainWindow.Instance.MainText = $"{Application.Current.FindResource("Options:FindingBSIPAVersion")}...";
await Task.Run(() => Mods.Instance.GetBSIPAVersion());
}
foreach (Mod mod in Mods.InstalledMods)
{
if (mod.name.ToLower() == "bsipa")
{
Mods.Instance.UninstallMod(mod);
break;
}
}
MainWindow.Instance.MainText = $"{Application.Current.FindResource("Options:BSIPAUninstalled")}...";
}
private async void YeetModsButton_Click(object sender, RoutedEventArgs e)
{
string title = (string)Application.Current.FindResource("Options:YeetModsBox:Title");
string line1 = (string)Application.Current.FindResource("Options:YeetModsBox:RemoveAllMods");
string line2 = (string)Application.Current.FindResource("Options:YeetModsBox:CannotBeUndone");
var resp = System.Windows.Forms.MessageBox.Show($"{line1}\n{line2}", title, System.Windows.Forms.MessageBoxButtons.YesNo);
if (resp == System.Windows.Forms.DialogResult.Yes)
{
if (Mods.Instance.AllModsList == null)
{
MainWindow.Instance.MainText = $"{Application.Current.FindResource("Options:GettingModList")}...";
await Task.Run(async () => await Mods.Instance.CheckInstalledMods());
}
foreach (Mod mod in Mods.InstalledMods)
{
Mods.Instance.UninstallMod(mod);
}
if (Directory.Exists(Path.Combine(App.BeatSaberInstallDirectory, "Plugins")))
Directory.Delete(Path.Combine(App.BeatSaberInstallDirectory, "Plugins"), true);
if (Directory.Exists(Path.Combine(App.BeatSaberInstallDirectory, "Libs")))
Directory.Delete(Path.Combine(App.BeatSaberInstallDirectory, "Libs"), true);
if (Directory.Exists(Path.Combine(App.BeatSaberInstallDirectory, "IPA")))
Directory.Delete(Path.Combine(App.BeatSaberInstallDirectory, "IPA"), true);
MainWindow.Instance.MainText = $"{Application.Current.FindResource("Options:AllModsUninstalled")}...";
}
}
private void ApplicationThemeComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if ((sender as ComboBox).SelectedItem == null)
{
Themes.ApplyWindowsTheme();
MainWindow.Instance.MainText = (string)Application.Current.FindResource("Options:CurrentThemeRemoved");
}
else
{
Themes.ApplyTheme((sender as ComboBox).SelectedItem.ToString());
}
}
public void LanguageSelectComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if ((sender as ComboBox).SelectedItem == null)
{
// Apply default language
Console.WriteLine("Applying default language");
Languages.LoadLanguage("en");
}
else
{
// Get the matching language from the LoadedLanguages array, then try and use it
var languageName = (sender as ComboBox).SelectedItem.ToString();
var selectedLanguage = Languages.LoadedLanguages.Find(language => language.NativeName.CompareTo(languageName) == 0);
if (Languages.LoadLanguage(selectedLanguage.Name))
{
Properties.Settings.Default.LanguageCode = selectedLanguage.Name;
Properties.Settings.Default.Save();
if (Languages.FirstRun)
{
Languages.FirstRun = false;
}
else
{
Process.Start(Utils.ExePath, App.Arguments);
Application.Current.Dispatcher.Invoke(() => { Application.Current.Shutdown(); });
}
}
}
}
private void ApplicationThemeExportTemplate_Click(object sender, RoutedEventArgs e)
{
Themes.WriteThemeToDisk("Ugly Kulu-Ya-Ku");
Themes.LoadThemes();
}
private void ApplicationThemeOpenThemesFolder_Click(object sender, RoutedEventArgs e)
{
if (Directory.Exists(Themes.ThemeDirectory))
{
Utils.OpenFolder(Themes.ThemeDirectory);
}
else
{
MessageBox.Show((string)Application.Current.FindResource("Options:ThemeFolderNotFound"));
}
}
private void InstallPlaylistButton_Click(object sender, RoutedEventArgs e)
{
string playlistFile = Utils.GetManualFile();
if (File.Exists(playlistFile))
{
Task.Run(() => { API.Playlists.DownloadFrom(playlistFile).Wait(); });
}
}
private void ShowOCIWindowComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
ComboBox comboBox = sender as ComboBox;
if (comboBox.SelectedItem != null)
{
ComboBoxItem comboBoxItem = (ComboBoxItem)comboBox.SelectedItem;
UpdateOCIWindow(comboBoxItem.Tag.ToString());
}
}
public void UpdateOCIWindow(string state)
{
ComboBox comboBox = ShowOCIWindowComboBox;
if (comboBox != null)
{
if (state == "Yes") comboBox.SelectedIndex = 0;
else if (state == "Close") comboBox.SelectedIndex = 1;
else if (state == "No") comboBox.SelectedIndex = 2;
else return;
}
if (!string.IsNullOrEmpty(state))
{
OCIWindow = App.OCIWindow = Properties.Settings.Default.OCIWindow = state;
Properties.Settings.Default.Save();
}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

View File

@ -1,103 +0,0 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!--
Mod Assistant BSMG theme by Megalon2D
https://twitter.com/megalon2D
-->
<!-- Standard Styles -->
<Color x:Key="StandardContent">#DCDDDE</Color>
<Color x:Key="StandardPrimary">#36393F</Color>
<Color x:Key="StandardSecondary">#2F3136</Color>
<Color x:Key="StandardBackground">#202225</Color>
<Color x:Key="StandardBorder">#202225</Color>
<Color x:Key="StandardHighlight">#7289DA</Color>
<Color x:Key="StandardActive">#44347C</Color>
<Color x:Key="StandardIcon">#DCDDDE</Color>
<Color x:Key="DiscordTextBox">#40444B</Color>
<Color x:Key="DiscordHighlight">#32353B</Color>
<!-- Default text -->
<SolidColorBrush x:Key="TextColor" Color="{StaticResource ResourceKey=StandardContent}" />
<SolidColorBrush x:Key="TextHighlighted" Color="Black" />
<!-- Buttons (Info/Mods/About/Options as well as More Info and Install/Update) -->
<SolidColorBrush x:Key="ButtonBackground" Color="#303237" />
<SolidColorBrush x:Key="ButtonOutline" Color="#202225" />
<SolidColorBrush x:Key="ButtonHighlightedBackground" Color="{DynamicResource ResourceKey=StandardHighlight}" />
<SolidColorBrush x:Key="ButtonClickedBackground" Color="{DynamicResource ResourceKey=StandardActive}" />
<SolidColorBrush x:Key="ButtonDisabledBackground" Color="{DynamicResource ResourceKey=StandardSecondary}" />
<SolidColorBrush x:Key="ButtonDangerBackground" Color="{DynamicResource ResourceKey=StandardActive}" />
<!-- Page Buttons (Side of Main Page) -->
<SolidColorBrush x:Key="PageButtonBackground" Color="{DynamicResource ResourceKey=StandardPrimary}" />
<SolidColorBrush x:Key="PageButtonOutline" Color="{DynamicResource ResourceKey=StandardBorder}" />
<SolidColorBrush x:Key="PageButtonHighlightedBackground" Color="{DynamicResource ResourceKey=StandardHighlight}" />
<SolidColorBrush x:Key="PageButtonClickedBackground" Color="{DynamicResource ResourceKey=StandardActive}" />
<SolidColorBrush x:Key="PageButtonDisabledBackground" Color="{DynamicResource ResourceKey=StandardSecondary}" />
<!-- Mod List -->
<SolidColorBrush x:Key="ModColumnBackground" Color="{DynamicResource ResourceKey=StandardPrimary}" />
<SolidColorBrush x:Key="ModColumnBorderBrush" Color="{DynamicResource ResourceKey=StandardPrimary}" />
<SolidColorBrush x:Key="ModColumnHeaderHighlighted" Color="{DynamicResource ResourceKey=StandardHighlight}" />
<SolidColorBrush x:Key="ModListBackground" Color="{DynamicResource ResourceKey=StandardPrimary}" />
<SolidColorBrush x:Key="ModListItemHighlighted" Color="{DynamicResource ResourceKey=DiscordHighlight}" />
<SolidColorBrush x:Key="ModListItemHighlightedOutline" Color="Transparent" />
<SolidColorBrush x:Key="ModListItemSelected" Color="{DynamicResource ResourceKey=StandardHighlight}" />
<SolidColorBrush x:Key="ModListItemSelectedOutline" Color="Transparent" />
<SolidColorBrush x:Key="ModListBorderBrush" Color="Transparent" />
<!-- Combo Box (Version select) -->
<SolidColorBrush x:Key="ComboBoxBackground" Color="{DynamicResource ResourceKey=StandardPrimary}" />
<SolidColorBrush x:Key="ComboBoxOutline" Color="{DynamicResource ResourceKey=StandardBorder}" />
<SolidColorBrush x:Key="ComboBoxHighlighted" Color="{DynamicResource ResourceKey=StandardHighlight}" />
<SolidColorBrush x:Key="ComboBoxSelected" Color="{DynamicResource ResourceKey=StandardActive}" />
<SolidColorBrush x:Key="ComboBoxClicked" Color="{DynamicResource ResourceKey=StandardPrimary}" />
<SolidColorBrush x:Key="ComboBoxArrow" Color="{DynamicResource ResourceKey=StandardBorder}" />
<!-- Checkboxes (Mod List and Options) -->
<SolidColorBrush x:Key="CheckboxDefaultBackground" Color="{DynamicResource ResourceKey=StandardPrimary}" />
<SolidColorBrush x:Key="CheckboxDefaultOutlineColor" Color="{DynamicResource ResourceKey=StandardBorder}" />
<SolidColorBrush x:Key="CheckboxDisabledBackground" Color="{DynamicResource ResourceKey=StandardSecondary}" />
<SolidColorBrush x:Key="CheckboxDisabledOutlineColor" Color="{DynamicResource ResourceKey=StandardBorder}" />
<SolidColorBrush x:Key="CheckboxDisabledTickColor" Color="{DynamicResource ResourceKey=StandardBorder}" />
<SolidColorBrush x:Key="CheckboxHoveredBackground" Color="{DynamicResource ResourceKey=StandardHighlight}" />
<SolidColorBrush x:Key="CheckboxHoveredTickColor" Color="{DynamicResource ResourceKey=StandardIcon}" />
<SolidColorBrush x:Key="CheckboxTickColor" Color="{DynamicResource ResourceKey=StandardIcon}" />
<SolidColorBrush x:Key="CheckboxPressedBackground" Color="{DynamicResource ResourceKey=StandardActive}" />
<!-- Scroll Bars -->
<SolidColorBrush x:Key="ScrollBarBackground" Color="{DynamicResource ResourceKey=StandardSecondary}" />
<SolidColorBrush x:Key="ScrollBarBorder" Color="{DynamicResource ResourceKey=Transparent}" />
<SolidColorBrush x:Key="ScrollBarTextColor" Color="{DynamicResource ResourceKey=StandardPrimary}" />
<SolidColorBrush x:Key="ScrollBarDisabled" Color="{DynamicResource ResourceKey=StandardSecondary}" />
<SolidColorBrush x:Key="ScrollBarArrowColor" Color="{DynamicResource ResourceKey=StandardActive}" />
<SolidColorBrush x:Key="ScrollBarArrowClicked" Color="{DynamicResource ResourceKey=StandardPrimary}" />
<SolidColorBrush x:Key="ScrollBarArrowHovered" Color="{DynamicResource ResourceKey=StandardHighlight}" />
<SolidColorBrush x:Key="ScrollBarHandle" Color="{DynamicResource ResourceKey=StandardBackground}" />
<SolidColorBrush x:Key="ScrollBarHandleHovered" Color="{DynamicResource ResourceKey=StandardBackground}" />
<SolidColorBrush x:Key="ScrollBarHandleClick" Color="{DynamicResource ResourceKey=StandardBackground}" />
<GridLength x:Key="ScrollBarButtonHeight">0</GridLength>
<!-- Various important elements that need to be controlled independently -->
<SolidColorBrush x:Key="ModAssistantBackground" Color="{DynamicResource ResourceKey=StandardPrimary}" />
<SolidColorBrush x:Key="FrameBackgroundColor" Color="#00000000" />
<SolidColorBrush x:Key="BottomStatusBarBackground" Color="{DynamicResource ResourceKey=DiscordTextBox}" />
<SolidColorBrush x:Key="BottomStatusBarOutline" Color="{DynamicResource ResourceKey=DiscordTextBox}" />
<SolidColorBrush x:Key="DirectoryBackground" Color="{DynamicResource ResourceKey=DiscordTextBox}" />
<SolidColorBrush x:Key="DirectoryOutline" Color="{DynamicResource ResourceKey=DiscordTextBox}" />
<!-- Colors for the corresponding icons. -->
<SolidColorBrush x:Key="InfoIconColor" Color="{DynamicResource ResourceKey=StandardIcon}" />
<SolidColorBrush x:Key="ModsIconColor" Color="{DynamicResource ResourceKey=StandardIcon}" />
<SolidColorBrush x:Key="AboutIconColor" Color="{DynamicResource ResourceKey=StandardIcon}" />
<SolidColorBrush x:Key="OptionsIconColor" Color="{DynamicResource ResourceKey=StandardIcon}" />
<SolidColorBrush x:Key="LoadingIconColor" Color="{DynamicResource ResourceKey=StandardIcon}" />
<!-- Background and Side image settings. -->
<!-- Fill, None, Uniform, UniformToFill -->
<Stretch x:Key="BackgroundImageStretch">UniformToFill</Stretch>
<!-- Bottom, Center, Top -->
<VerticalAlignment x:Key="SideImageYPosition">Top</VerticalAlignment>
</ResourceDictionary>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

136
README.md
View File

@ -1,141 +1,51 @@
[![Mod Assistant](https://cdn.assistant.moe/images/ModAssistant/Icons/Banner.svg?v=5)](https://github.com/Assistant/ModAssistant/releases/latest)
[![Download here!](https://cdn.assistant.moe/images/ModAssistant/Icons/Download.svg)](https://github.com/Assistant/ModAssistant/releases/latest)
#[Download here!](https://github.com/knah/VRCMelonAssistant/releases/latest)
Mod Assistant is a PC mod installer for Beat Saber. It uses mods from [BeatMods](https://beatmods.com/).
VRChat Melon Assistant is a PC mod installer for VRChat. It uses mods published in [VRChat Modding Group Discord](https://discord.gg/rCqKSvR).
It's a (very stripped down) fork of [Assistant's Mod Assistant](https://github.com/Assistant/ModAssistant), a mod manager for Beat Saber.
**Modifying the VRChat client is not allowed by VRChat Terms of Service and can lead to your account being banned.** Mods available via this installer are manually checked to minimize the chance of that happening, but the risk is always there.
VRChat Melon Assistant is not affiliated with and/or endorsed by VRChat Inc.
* [Features](#Features)
* [Usage](#Usage)
* [Themes](#Themes)
* [Custom Themes](#Custom-Themes)
* [Built In](#Built-In)
* [Packaged `.mat` Files](#Packaged-mat-Files)
* [Loose Folder Themes](#Loose-Folder-Themes)
* [Overriding Themes](#Overriding-Themes)
* [Common Issues](#Common-Issues)
## Features
Mod Assistant boasts a rich feature set, some of which include:
* Dependency resolution
VRChat Melon Assistant boasts a rich feature set, some of which include:
* Installed mod detection
* Mod uninstallation
* OneClick&trade; Install support
* Broken mod move-aside (temporarily uninstalls them until a fix is available)
* Complex theming engine
* Localization support
* Headpats and Hugs
## Usage
Download the newest installer from the release section and run it. This application auto-updates when launched, there is no need to download a new release each time.
1. **Run the game at least once before trying to mod the game!** This applies to reinstalling your game too. All mods are moved into an `Old X.X.X Plugins` folder on first launch to avoid version mismatches, so make sure to do this before installing mods on a fresh version.
2. Once that's done, simply check off the mods that you wish to install and click the <kbd>Install or Update</kbd> button. Likewise, click the <kbd>Uninstall</kbd> button to remove any mods.
3. Mods are installed to `IPA/Pending` until the game is run. Boot the game to complete mod installation.
Download the newest build from the release section and run it. This application auto-updates when launched, there is no need to download a new release each time.
Then, simply check off the mods that you wish to install or update and click the <kbd>Install or Update</kbd> button. Likewise, click the <kbd>Uninstall</kbd> button to remove any mods.
## Themes
<details>
<summary><b>Light</b></summary>
<div>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Light/Intro.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Light/Mods.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Light/About.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Light/Options.png" /></p>
</div>
</details>
<details>
<summary><b>Dark</b></summary>
<div>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Dark/Intro.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Dark/Mods.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Dark/About.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Dark/Options.png" /></p>
</div>
</details>
<details>
<summary><b>BSMG</b></summary>
<div>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/BSMG/Intro.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/BSMG/Mods.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/BSMG/About.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/BSMG/Options.png" /></p>
</div>
</details>
<details>
<summary><b>Light Pink</b></summary>
<div>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Light Pink/Intro.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Light Pink/Mods.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Light Pink/About.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Light Pink/Options.png" /></p>
</div>
</details>
<details>
<summary><b>Your own!</b></summary>
<div>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Custom/Intro.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Custom/Mods.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Custom/About.png" /></p>
<p><img src="https://cdn.assistant.moe/images/ModAssistant/Themes/Custom/Options.png" /></p>
</div>
</details>
### Custom Themes
Custom themes are located in a folder called `Themes` in the same folder as `ModAssistant.exe`. Mod Assistant can load themes from one of three sources.
### Built In
These come with the program and you can't change them, however you can overwrite them by creating one of the other two theme types with the same name.
If you have a particularly popular theme, you can submit a [Pull Request](https://github.com/Assistant/ModAssistant/pulls) to add your theme as a built-in theme.
### Packaged `.mat` Files
These are pre-packaged theme files. Under the hood they are renamed`.zip` files, and the file structure is the same as that of `Folders` themes. These will be overwritten by `Folders` themes with the same name.
To create one follow the instructions on `Folders` themes, and zip the files up into a zip archive, and rename it to `<themeName>.mat`.
### Loose Folder Themes
These will overwrite all other themes, and are loaded from a folder named after the theme. There are 4 types of files you can include:
* `Theme.xaml`
* This file determines the colors and styling of the theme.
* The filename isn't important, but the `.xaml` file extension is.
* To see an example of this file press the <kbd>Export Template</kbd> button in the `Options` page. It will create a folder in `Themes` called `Ugly Kulu-Ya-Ku`. You can open that file to use as a template for your own themes, or just use it.
* `Waifu.png`
* This will be loaded as the background image.
* It will be centered, and you can pick how to stretch it in the associated `.xaml` file.
* The filename isn't important, but the `.png` file extension is.
* `Waifu.side.png`
* This will be loaded as the left side image.<br />It will be left aligned, and you can pick its vertical alignment in the associated `.xaml` file.
* The filename isn't important, but the `.side.png` file extension is.
* `Video.{mp4, webm, mkv, avi, m2ts}`
* This will be loaded as a background video, with sound.
* The filename isn't important, but the file extension must be supported (`.mp4`, `.webm`, `.mkv`, `.avi`, `.m2ts`)
* Whether the file works or not will depend on what codecs the file has, and whether those are available on your machine.
### Overriding Themes
You can mix and match parts from different themes by giving them the same name.
The priority in which they will be used is `Loose Folder Themes` > `Packaged .mat files` > `Built in`. Overriding themes will only change the files that are included.
Examples:
* Adding `/Themes/Dark.mat` which includes `.png` and `.xaml` files will override both those aspects of the `Dark` theme.
* Adding `/Themes/Dark/image.png` will use that image as the background for the `Dark` theme, overriding both the built in theme and `Dark.mat` if it exists.
VRChat Melon Assistant should support themes for Mod Assistant. Check [its README](https://github.com/Assistant/ModAssistant#themes) for more info on theming.
However, this is not a supported feature. If something doesn't work, don't complain to either Assistant or knah.
## Common Issues
**I hit install but I don't see anything in game!**
Double check that you followed the [Usage](#usage) instructions correctly.
Make sure you're looking in the right place. Sometimes mod menus move as modding libraries/practices change.
Double check that you followed the [Usage](#usage) instructions correctly.
Make sure you're looking in the right place. Sometimes mod menus move as modding libraries/practices change.
Additionally, make sure the proper VRChat installation directory is selected in option tab.
**I don't see a certain mod in the mods list!**
Mod Assistant uses mods from [BeatMods](https://beatmods.com/) and shows whatever is available for download. If you need to install a mod manually, please refer to the [Beat Saber Modding Group Wiki](https://bsmg.wiki/pc-modding.html#manual-installation).
VRChat Melon Assistant uses mods from VRChat Modding Group and shows whatever is available for download. It's recommended to avoid non-VRCMG mods due to rampant spread of malware disguised as mods.
**I hit install but now my game won't launch, I can't click any buttons, I only see a black screen, etc**
Please visit the [Beat Saber Modding Group](https://discord.gg/beatsabermods) `#pc-help` channels. Check the pinned messages or ask for help and see if you can work out things out.
Please visit the [VRChat Modding Group](https://discord.gg/rCqKSvR) `#help-and-support` channel. Check the pinned messages or ask for help and see if you can work out things out.
## Credits
semver by Max Hauser
Lemon icon from Twitter Emoji
https://github.com/twitter/twemoji
Original Mod Assistant is made by Assistant and used under the terms of MIT License.
https://github.com/Assistant/ModAssistant
semver by Max Hauser
https://github.com/maxhauser/semver

View File

@ -3,7 +3,14 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2027
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModAssistant", "ModAssistant\ModAssistant.csproj", "{6A224B82-40DA-40B3-94DC-EFBEC2BDDA39}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VRCMelonAssistant", "VRCMelonAssistant\VRCMelonAssistant.csproj", "{6A224B82-40DA-40B3-94DC-EFBEC2BDDA39}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8DBEE4E3-1033-433D-B1F3-F7D789808141}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
.github\FUNDING.yml = .github\FUNDING.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="VRCMelonAssistant.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<userSettings>
<VRCMelonAssistant.Properties.Settings>
<setting name="InstallFolder" serializeAs="String">
<value />
</setting>
<setting name="StoreType" serializeAs="String">
<value />
</setting>
<setting name="Agreed" serializeAs="String">
<value>False</value>
</setting>
<setting name="UpgradeRequired" serializeAs="String">
<value>True</value>
</setting>
<setting name="LastTab" serializeAs="String">
<value />
</setting>
<setting name="SelectedTheme" serializeAs="String">
<value />
</setting>
<setting name="CloseWindowOnFinish" serializeAs="String">
<value>False</value>
</setting>
<setting name="LanguageCode" serializeAs="String">
<value />
</setting>
</VRCMelonAssistant.Properties.Settings>
</userSettings>
</configuration>

View File

@ -1,5 +1,5 @@
<Application
x:Class="ModAssistant.App"
x:Class="VRCMelonAssistant.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
DispatcherUnhandledException="Application_DispatcherUnhandledException"
@ -21,6 +21,8 @@
<!-- Load SVG icons, courtesy of lolPants. -->
<ResourceDictionary x:Name="Icons" Source="Resources/Icons.xaml" />
<ResourceDictionary x:Name="AppResources" Source="Resources/AppResources.xaml" />
<!-- Load Styles needed for the Theme engine to work. -->
<ResourceDictionary x:Name="Button_Style" Source="Styles/Button.xaml" />
<ResourceDictionary x:Name="Label_Style" Source="Styles/Label.xaml" />

View File

@ -6,60 +6,50 @@ using System.Reflection;
using System.Threading.Tasks;
using System.Windows;
namespace ModAssistant
namespace VRCMelonAssistant
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
public static string BeatSaberInstallDirectory;
public static string BeatSaberInstallType;
public static bool SaveModSelection;
public static bool CheckInstalledMods;
public static bool SelectInstalledMods;
public static bool ReinstallInstalledMods;
public static string VRChatInstallDirectory;
public static string VRChatInstallType;
public static bool CloseWindowOnFinish;
public static string Version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
public static List<string> SavedMods = ModAssistant.Properties.Settings.Default.SavedMods.Split(',').ToList();
public static MainWindow window;
public static string Arguments;
public static bool Update = true;
public static bool GUI = true;
public static string OCIWindow;
private async void Application_Startup(object sender, StartupEventArgs e)
{
// Set SecurityProtocol to prevent crash with TLS
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
if (ModAssistant.Properties.Settings.Default.UpgradeRequired)
if (VRCMelonAssistant.Properties.Settings.Default.UpgradeRequired)
{
ModAssistant.Properties.Settings.Default.Upgrade();
ModAssistant.Properties.Settings.Default.UpgradeRequired = false;
ModAssistant.Properties.Settings.Default.Save();
VRCMelonAssistant.Properties.Settings.Default.Upgrade();
VRCMelonAssistant.Properties.Settings.Default.UpgradeRequired = false;
VRCMelonAssistant.Properties.Settings.Default.Save();
}
Version = Version.Substring(0, Version.Length - 2);
OCIWindow = ModAssistant.Properties.Settings.Default.OCIWindow;
if (string.IsNullOrEmpty(OCIWindow))
{
OCIWindow = "Yes";
}
Pages.Options options = Pages.Options.Instance;
options.InstallDirectory =
BeatSaberInstallDirectory = Utils.GetInstallDir();
VRChatInstallDirectory = Utils.GetInstallDir();
Languages.LoadLanguages();
while (string.IsNullOrEmpty(BeatSaberInstallDirectory))
while (string.IsNullOrEmpty(VRChatInstallDirectory))
{
string title = (string)Current.FindResource("App:InstallDirDialog:Title");
string body = (string)Current.FindResource("App:InstallDirDialog:OkCancel");
if (System.Windows.Forms.MessageBox.Show(body, title, System.Windows.Forms.MessageBoxButtons.OKCancel) == System.Windows.Forms.DialogResult.OK)
{
BeatSaberInstallDirectory = Utils.GetManualDir();
VRChatInstallDirectory = Utils.GetManualDir();
}
else
{
@ -68,21 +58,12 @@ namespace ModAssistant
}
options.InstallType =
BeatSaberInstallType = ModAssistant.Properties.Settings.Default.StoreType;
options.SaveSelection =
SaveModSelection = ModAssistant.Properties.Settings.Default.SaveSelected;
options.CheckInstalledMods =
CheckInstalledMods = ModAssistant.Properties.Settings.Default.CheckInstalled;
options.SelectInstalledMods =
SelectInstalledMods = ModAssistant.Properties.Settings.Default.SelectInstalled;
options.ReinstallInstalledMods =
ReinstallInstalledMods = ModAssistant.Properties.Settings.Default.ReinstallInstalled;
VRChatInstallType = VRCMelonAssistant.Properties.Settings.Default.StoreType;
options.CloseWindowOnFinish =
CloseWindowOnFinish = ModAssistant.Properties.Settings.Default.CloseWindowOnFinish;
CloseWindowOnFinish = VRCMelonAssistant.Properties.Settings.Default.CloseWindowOnFinish;
await ArgumentHandler(e.Args);
await Init();
options.UpdateOCIWindow(OCIWindow);
}
private async Task Init()
@ -122,10 +103,6 @@ namespace ModAssistant
{
Utils.SendNotify(string.Format((string)Current.FindResource("App:InvalidArgument"), "--install"));
}
else
{
await OneClickInstaller.InstallAsset(args[1]);
}
if (CloseWindowOnFinish)
{
@ -152,8 +129,8 @@ namespace ModAssistant
{
if (Languages.LoadLanguage(args[1]))
{
ModAssistant.Properties.Settings.Default.LanguageCode = args[1];
ModAssistant.Properties.Settings.Default.Save();
VRCMelonAssistant.Properties.Settings.Default.LanguageCode = args[1];
VRCMelonAssistant.Properties.Settings.Default.Save();
Languages.UpdateUI(args[1]);
}
}
@ -166,10 +143,6 @@ namespace ModAssistant
{
Utils.SendNotify(string.Format((string)Current.FindResource("App:InvalidArgument"), "--register"));
}
else
{
OneClickInstaller.Register(args[1], true, args[2]);
}
Update = false;
GUI = false;
@ -181,10 +154,6 @@ namespace ModAssistant
{
Utils.SendNotify(string.Format((string)Current.FindResource("App:InvalidArgument"), "--unregister"));
}
else
{
OneClickInstaller.Unregister(args[1], true);
}
Update = false;
GUI = false;

View File

@ -2,7 +2,7 @@ using System.Collections.Generic;
using System.IO;
using System.Windows;
namespace ModAssistant
namespace VRCMelonAssistant
{
class Diagnostics
{

View File

@ -0,0 +1,98 @@
using System.Collections.Generic;
namespace VRCMelonAssistant
{
public static class HardcodedCategories
{
private static readonly Dictionary<string, List<string>> CategoryContents = new()
{
{"Safety & Security", new() {"Advanced Safety", "Finitizer", "True Shader Anticrash", "Safety-Presets"}},
{"Core mods and libraries", new() {"UI Expansion Kit", "ActionMenuApi", "VRCModUpdater.Loader"}},
{"All-in-one mods", new() {"emmVRCLoader"}},
{"Camera mods", new() {
"CameraMinus", "DesktopCamera", "BetterSteadycam", "ITR's Melon Cameras", "CameraResChanger",
"LocalCameraMod", "Lag Free Screenshots"
}},
{"Performance & Fidelity", new() {
"Core Limiter", "MirrorResolutionUnlimiter", "AvatarHider", "Runtime Graphics Settings",
"GamePriority", "FrameFocus", "ClearVRAM"
}},
{"Utilities & Tweaks", new() {
"ReloadAvatars", "KeyboardPaste", "No Outlines", "UnmuteSound", "SparkleBeGone",
"BTKSAImmersiveHud", "OGTrustRanks", "ToggleMicIcon", "Friends+ home",
"MicSensitivity", "CloningBeGone", "ToggleFullScreen", "View Point Tweaker"
}},
{"Hardware support", new() {"LeapMotionExtension", "ThumbParams", "VRCFaceTracking"}},
{"Dynamic bones", new() {
"ImmersiveTouch", "Dynamic Bones Safety", "MultiplayerDynamicBonesMod", "Multiplayer Dynamic Bones",
}},
{"World tweaks", new() {
"PostProcessing", "NearClipPlaneAdj", "RemoveChairs", "ComponentToggle", "No Grabby Hands", "AOOverride"
}},
{"Fixes", new() {"Invite+ fix", "CursorLockFix", "DownloadFix",}},
{"New features & Overhauls", new() {
"IKTweaks", "JoinNotifier", "FBT Saver", "BTKSANameplateMod", "AdvancedInvites", "VRCVideoLibrary",
"BTKSASelfPortrait", "OldMate", "BetterLoadingScreen", "Loading Screen Pictures", "FavCat",
"ActionMenuUtils", "WorldPredownload", "AskToPortal", "Headlight", "ITR's Player Tracer",
"InstanceHistory", "PortableMirrorMod", "VRCBonesController"
}},
{"UI mods", new() {
"Particle and DynBone limiter settings UI", "CalibrateConfirm", "Emoji Page Buttons",
"UserInfoExtensions", "MLConsoleViewer", "OwO Mod", "ActiveBackground", "PlayerList", "ComfyVRMenu",
"DiscordMute", "MicToggle", "VRCPlusPet"
}},
{"Movement", new() {
"TeleporterVR", "ImmobilizePlayerMod", "TrackingRotator", "OculusPlayspaceMover",
"ITR's Gravity Controller", "QMFreeze", "Double-Tap Runner", "Player Rotater",
}},
{"Very Niche Mods", new() {"HWIDPatch", "No Steam. At all.", "Vertex Animation Remover", "LocalPlayerPrefs", "BTKSAGestureMod",}}
};
private static readonly Dictionary<string, string> CategoryDescriptions = new()
{
{"Safety & Security", "Crash less, block annoyances"},
{"Core mods and libraries", "Other mods might require these"},
{"All-in-one mods", "It does a lot of stuff"},
{"Camera mods", "For all your screenshot or streaming needs"},
{"Performance & Fidelity", "Improve performance or make the game look better"},
{"Utilities & Tweaks", "Small mods that address specific issues"},
{"Hardware support", "For all exotic hardware out there"},
{"Dynamic bones", "Mods that affect jiggly bits"},
{"World tweaks", "Change aspects of the world you're in"},
{"Fixes", "It's not a bug, it's a feature"},
{"New features & Overhauls", "Mods that introduce new features or significantly change existing ones"},
{"UI mods", "Modify the user interface or introduce new functionality to it"},
{"Movement", "Move in new exciting ways"},
{"Very Niche Mods", "Only use these if you're really sure you need them"}
};
private static readonly Dictionary<string, string> ModNameToCategory = new();
static HardcodedCategories()
{
foreach (var keyValuePair in CategoryContents)
foreach (var s in keyValuePair.Value)
ModNameToCategory.Add(s.ToLowerInvariant(), keyValuePair.Key);
}
public static string GetCategoryFor(Mod mod)
{
foreach (var alias in mod.aliases)
{
if (ModNameToCategory.TryGetValue(alias.ToLowerInvariant(), out var result)) return result;
}
foreach (var version in mod.versions)
{
if (ModNameToCategory.TryGetValue(version.name.ToLowerInvariant(), out var result)) return result;
}
return null;
}
public static string GetCategoryDescription(string category)
{
return CategoryDescriptions.TryGetValue(category, out var result) ? result : "";
}
}
}

View File

@ -3,7 +3,7 @@ using System.Net;
using System.Net.Http;
using System.Web.Script.Serialization;
namespace ModAssistant
namespace VRCMelonAssistant
{
static class Http
{
@ -26,7 +26,7 @@ namespace ModAssistant
};
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
_client.DefaultRequestHeaders.Add("User-Agent", "ModAssistant/" + App.Version);
_client.DefaultRequestHeaders.Add("User-Agent", "VRCMelonAssistant/" + App.Version);
return _client;
}

View File

@ -2,7 +2,7 @@ using System.Diagnostics;
using System.Windows;
using System.Windows.Documents;
namespace ModAssistant
namespace VRCMelonAssistant
{
public static class HyperlinkExtensions
{
@ -28,7 +28,7 @@ namespace ModAssistant
hyperlink.RequestNavigate -= Hyperlink_RequestNavigate;
}
private static void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
public static void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
{
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
e.Handled = true;

View File

@ -0,0 +1,109 @@
using System;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using VRCMelonAssistant.Pages;
namespace VRCMelonAssistant
{
public static class InstallHandlers
{
public static bool IsMelonLoaderInstalled()
{
return File.Exists(Path.Combine(App.VRChatInstallDirectory, "version.dll")) && File.Exists(Path.Combine(App.VRChatInstallDirectory, "MelonLoader", "Dependencies", "Bootstrap.dll"));
}
public static bool RemoveMelonLoader()
{
MainWindow.Instance.MainText = $"{(string)App.Current.FindResource("Mods:UnInstallingMelonLoader")}...";
try
{
var versionDllPath = Path.Combine(App.VRChatInstallDirectory, "version.dll");
var melonLoaderDirPath = Path.Combine(App.VRChatInstallDirectory, "MelonLoader");
if (File.Exists(versionDllPath))
File.Delete(versionDllPath);
if (Directory.Exists(melonLoaderDirPath))
Directory.Delete(melonLoaderDirPath, true);
}
catch (Exception ex)
{
MessageBox.Show($"{App.Current.FindResource("Mods:UninstallMLFailed")}.\n\n" + ex);
return false;
}
return true;
}
public static async Task InstallMelonLoader()
{
if (!RemoveMelonLoader()) return;
try
{
MainWindow.Instance.MainText = $"{(string) App.Current.FindResource("Mods:DownloadingMelonLoader")}...";
using var installerZip = await DownloadFileToMemory("https://github.com/LavaGang/MelonLoader/releases/download/v0.3.0/MelonLoader.x64.zip");
using var zipReader = new ZipArchive(installerZip, ZipArchiveMode.Read);
MainWindow.Instance.MainText = $"{(string) App.Current.FindResource("Mods:UnpackingMelonLoader")}...";
foreach (var zipArchiveEntry in zipReader.Entries)
{
var targetFileName = Path.Combine(App.VRChatInstallDirectory, zipArchiveEntry.FullName);
Directory.CreateDirectory(Path.GetDirectoryName(targetFileName));
using var targetFile = File.OpenWrite(targetFileName);
using var entryStream = zipArchiveEntry.Open();
await entryStream.CopyToAsync(targetFile);
}
Directory.CreateDirectory(Path.Combine(App.VRChatInstallDirectory, "Mods"));
Directory.CreateDirectory(Path.Combine(App.VRChatInstallDirectory, "Plugins"));
}
catch (Exception ex)
{
MessageBox.Show($"{App.Current.FindResource("Mods:InstallMLFailed")}.\n\n" + ex);
}
}
internal static async Task<Stream> DownloadFileToMemory(string link)
{
using var resp = await Http.HttpClient.GetAsync(link);
return await resp.Content.ReadAsStreamAsync();
}
public static async Task InstallMod(Mod mod)
{
string downloadLink = mod.versions[0].downloadlink;
if (string.IsNullOrEmpty(downloadLink))
{
MessageBox.Show(string.Format((string)App.Current.FindResource("Mods:ModDownloadLinkMissing"), mod.versions[0].name));
return;
}
if (mod.installedFilePath != null)
File.Delete(mod.installedFilePath);
var modUri = new Uri(downloadLink);
var targetFilePath = Path.Combine(App.VRChatInstallDirectory, mod.versions[0].IsPlugin ? "Plugins" : "Mods",
mod.versions[0].IsBroken ? "Broken" : "", modUri.Segments.Last());
Directory.CreateDirectory(Path.GetDirectoryName(targetFilePath));
using (Stream stream = await DownloadFileToMemory(downloadLink))
{
using var targetFile = File.OpenWrite(targetFilePath);
await stream.CopyToAsync(targetFile);
}
mod.ListItem.IsInstalled = true;
mod.installedFilePath = targetFilePath;
mod.ListItem.InstalledVersion = mod.versions[0].modversion;
mod.ListItem.InstalledModInfo = mod;
}
}
}

View File

@ -4,16 +4,16 @@ using System.Globalization;
using System.IO;
using System.Linq;
using System.Windows;
using ModAssistant.Pages;
using VRCMelonAssistant.Pages;
namespace ModAssistant
namespace VRCMelonAssistant
{
class Languages
{
public static string LoadedLanguage { get; private set; }
public static List<CultureInfo> LoadedLanguages { get => availableCultures.ToList(); }
public static bool FirstRun = true;
private static readonly string[] availableLanguageCodes = { "de", "en", "fr", "it", "ko", "nb", "nl", "ru", "sv", "zh" };
private static readonly string[] availableLanguageCodes = { "en" };
private static IEnumerable<CultureInfo> availableCultures;
public static void LoadLanguages()

View File

@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using VRCMelonAssistant.Pages;
namespace VRCMelonAssistant
{
public class Mod
{
public int _id;
public string uploaddate;
public string category;
public string[] aliases;
public ModVersion[] versions;
public Mods.ModListItem ListItem;
public string installedFilePath;
public string installedVersion;
public bool installedInBrokenDir;
public class ModVersion
{
public int _version;
public string name;
public string modversion;
public string modtype;
public string author;
public string description;
public string downloadlink;
public string sourcelink;
public string hash;
public string updatedate;
public string vrchatversion;
public string loaderversion;
public int approvalStatus;
public bool IsBroken => approvalStatus == 2;
public bool IsPlugin => modtype.Equals("plugin", StringComparison.InvariantCultureIgnoreCase);
}
}
}

View File

@ -1,4 +1,4 @@
namespace ModAssistant
namespace VRCMelonAssistant
{
class Promotions
{
@ -6,9 +6,9 @@ namespace ModAssistant
{
new Promotion
{
ModName = "YUR Fit Calorie Tracker",
ModName = "emmVRCLoader",
Text = "Join our Discord!",
Link = "https://yur.chat"
Link = "https://discord.gg/emmvrc"
}
};
}

View File

@ -9,9 +9,9 @@ using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using Microsoft.Win32;
using ModAssistant.Pages;
using VRCMelonAssistant.Pages;
namespace ModAssistant
namespace VRCMelonAssistant
{
public class Themes
{
@ -23,7 +23,7 @@ namespace ModAssistant
/// Local dictionary of Resource Dictionaries mapped by their names.
/// </summary>
private static readonly Dictionary<string, Theme> loadedThemes = new Dictionary<string, Theme>();
private static readonly List<string> preInstalledThemes = new List<string> { "Light", "Dark", "BSMG", "Light Pink" };
private static readonly List<string> preInstalledThemes = new List<string> { "Light", "Dark", "Light Pink" };
/// <summary>
/// Index of "LoadedTheme" in App.xaml
@ -140,7 +140,7 @@ namespace ModAssistant
}
/// <summary>
/// Applies a loaded theme to ModAssistant.
/// Applies a loaded theme to VRCMelonAssistant.
/// </summary>
/// <param name="theme">Name of the theme.</param>
/// <param name="sendMessage">Send message to MainText (default: true).</param>
@ -209,7 +209,7 @@ namespace ModAssistant
* Writing it as is instead of using XAMLWriter keeps the source as is with comments, spacing, and organization.
* Using XAMLWriter would compress it into an unorganized mess.
*/
using (Stream s = Assembly.GetExecutingAssembly().GetManifestResourceStream($"ModAssistant.Themes.{themeName}.xaml"))
using (Stream s = Assembly.GetExecutingAssembly().GetManifestResourceStream($"VRCMelonAssistant.Themes.{themeName}.xaml"))
using (FileStream writer = new FileStream($@"{ThemeDirectory}\\{themeName}\\{themeName}.xaml", FileMode.Create))
{
byte[] buffer = new byte[s.Length];
@ -392,7 +392,7 @@ namespace ModAssistant
/*
* Check to see if the lengths of each file are different. If they are, overwrite what currently exists.
* The reason we are also checking LoadedTheme against the name variable is to prevent overwriting a file that's
* already being used by ModAssistant and causing a System.IO.IOException.
* already being used by VRCMelonAssistant and causing a System.IO.IOException.
*/
FileInfo existingInfo = new FileInfo(videoName);
if (existingInfo.Length != file.Length && LoadedTheme != name)
@ -449,7 +449,7 @@ namespace ModAssistant
{
var assembly = Assembly.GetExecutingAssembly();
var resourceNames = assembly.GetManifestResourceNames();
var desiredResourceName = $"ModAssistant.Themes.{themeName}.{imageName}.png";
var desiredResourceName = $"VRCMelonAssistant.Themes.{themeName}.{imageName}.png";
// Don't attempt to access non-existent manifest resources
if (!resourceNames.Contains(desiredResourceName))
@ -508,8 +508,6 @@ namespace ModAssistant
ChangeColor(icons, "InfoIconColor", "info_circleDrawingGroup");
ChangeColor(icons, "OptionsIconColor", "cogDrawingGroup");
ChangeColor(icons, "ModsIconColor", "microchipDrawingGroup");
ChangeColor(icons, "LoadingIconColor", "loadingInnerDrawingGroup");
ChangeColor(icons, "LoadingIconColor", "loadingMiddleDrawingGroup");
ChangeColor(icons, "LoadingIconColor", "loadingOuterDrawingGroup");
}

View File

@ -3,19 +3,19 @@ using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;
using System.Windows;
using static ModAssistant.Http;
using static VRCMelonAssistant.Http;
namespace ModAssistant
namespace VRCMelonAssistant
{
class Updater
{
private static readonly string APILatestURL = "https://api.github.com/repos/Assistant/ModAssistant/releases/latest";
private static readonly string APILatestURL = "https://api.github.com/repos/knah/VRCMelonAssistant/releases/latest";
private static Update LatestUpdate;
private static Version CurrentVersion;
private static Version LatestVersion;
private static bool NeedsUpdate = false;
private static readonly string NewExe = Path.Combine(Path.GetDirectoryName(Utils.ExePath), "ModAssistant.exe");
private static readonly string NewExe = Path.Combine(Path.GetDirectoryName(Utils.ExePath), "VRCMelonAssistant.exe");
private static readonly string Arguments = App.Arguments;
#pragma warning disable CS0162 // Unreachable code detected
@ -38,7 +38,7 @@ namespace ModAssistant
public static async Task Run()
{
if (Path.GetFileName(Utils.ExePath).Equals("ModAssistant.old.exe")) RunNew();
if (Path.GetFileName(Utils.ExePath).Equals("VRCMelonAssistant.old.exe")) RunNew();
try
{
NeedsUpdate = await CheckForUpdate();
@ -53,12 +53,12 @@ namespace ModAssistant
public static async Task StartUpdate()
{
string OldExe = Path.Combine(Path.GetDirectoryName(Utils.ExePath), "ModAssistant.old.exe");
string OldExe = Path.Combine(Path.GetDirectoryName(Utils.ExePath), "VRCMelonAssistant.old.exe");
string DownloadLink = null;
foreach (Update.Asset asset in LatestUpdate.assets)
{
if (asset.name == "ModAssistant.exe")
if (asset.name == "VRCMelonAssistant.exe")
{
DownloadLink = asset.browser_download_url;
}

View File

@ -12,9 +12,10 @@ using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows;
using Microsoft.Win32;
using static ModAssistant.Http;
using VRCMelonAssistant.Pages;
using static VRCMelonAssistant.Http;
namespace ModAssistant
namespace VRCMelonAssistant
{
public class Utils
{
@ -23,14 +24,9 @@ namespace ModAssistant
public class Constants
{
public const string BeatSaberAPPID = "620980";
public const string BeatModsAPIUrl = "https://beatmods.com/api/v1/";
public const string TeknikAPIUrl = "https://api.teknik.io/v1/";
public const string BeatModsURL = "https://beatmods.com";
public const string BeatModsVersions = "https://versions.beatmods.com/versions.json";
public const string BeatModsAlias = "https://alias.beatmods.com/aliases.json";
public const string VRChatAppId = "438100";
public const string VRCMGModsJson = "https://api.vrcmg.com/v0/mods.json";
public const string WeebCDNAPIURL = "https://pat.assistant.moe/api/v1.0/";
public const string BeatModsModsOptions = "mod?status=approved";
public const string MD5Spacer = " ";
public static readonly char[] IllegalCharacters = new char[]
{
@ -42,20 +38,6 @@ namespace ModAssistant
};
}
public class TeknikPasteResponse
{
public Result result;
public class Result
{
public string id;
public string url;
public string title;
public string syntax;
public DateTime? expiration;
public string password;
}
}
public class WeebCDNRandomResponse
{
public int index;
@ -125,8 +107,8 @@ namespace ModAssistant
if (!string.IsNullOrEmpty(InstallDir)
&& Directory.Exists(InstallDir)
&& Directory.Exists(Path.Combine(InstallDir, "Beat Saber_Data", "Plugins"))
&& File.Exists(Path.Combine(InstallDir, "Beat Saber.exe")))
&& Directory.Exists(Path.Combine(InstallDir, "VRChat_Data", "Plugins"))
&& File.Exists(Path.Combine(InstallDir, "VRChat.exe")))
{
return InstallDir;
}
@ -164,13 +146,14 @@ namespace ModAssistant
public static string SetDir(string directory, string store)
{
App.BeatSaberInstallDirectory = directory;
App.BeatSaberInstallType = store;
App.VRChatInstallDirectory = directory;
App.VRChatInstallType = store;
Pages.Options.Instance.InstallDirectory = directory;
Pages.Options.Instance.InstallType = store;
Properties.Settings.Default.InstallFolder = directory;
Properties.Settings.Default.StoreType = store;
Properties.Settings.Default.Save();
MainWindow.Instance.MarkModsPageForRefresh();
return directory;
}
@ -210,9 +193,9 @@ namespace ModAssistant
regex = new Regex("\\s\"installdir\"\\s+\"(.+)\"");
foreach (string path in SteamPaths)
{
if (File.Exists(Path.Combine(@path, @"appmanifest_" + Constants.BeatSaberAPPID + ".acf")))
if (File.Exists(Path.Combine(@path, @"appmanifest_" + Constants.VRChatAppId + ".acf")))
{
using (StreamReader reader = new StreamReader(Path.Combine(@path, @"appmanifest_" + Constants.BeatSaberAPPID + ".acf")))
using (StreamReader reader = new StreamReader(Path.Combine(@path, @"appmanifest_" + Constants.VRChatAppId + ".acf")))
{
string line;
while ((line = reader.ReadLine()) != null)
@ -220,7 +203,7 @@ namespace ModAssistant
Match match = regex.Match(line);
if (match.Success)
{
if (File.Exists(Path.Combine(@path, @"common", match.Groups[1].Value, "Beat Saber.exe")))
if (File.Exists(Path.Combine(@path, @"common", match.Groups[1].Value, "VRChat.exe")))
{
return SetDir(Path.Combine(@path, @"common", match.Groups[1].Value), "Steam");
}
@ -234,7 +217,7 @@ namespace ModAssistant
public static string GetVersion()
{
string filename = Path.Combine(App.BeatSaberInstallDirectory, "Beat Saber_Data", "globalgamemanagers");
string filename = Path.Combine(App.VRChatInstallDirectory, "VRChat_Data", "globalgamemanagers");
using (FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read))
{
byte[] file = File.ReadAllBytes(filename);
@ -258,9 +241,9 @@ namespace ModAssistant
if (!string.IsNullOrEmpty(OculusInstall))
{
if (File.Exists(Path.Combine(OculusInstall, "Software", "hyperbolic-magnetism-beat-saber", "Beat Saber.exe")))
if (File.Exists(Path.Combine(OculusInstall, "Software", "vrchat-vrchat", "VRChat.exe")))
{
return SetDir(Path.Combine(OculusInstall, "Software", "hyperbolic-magnetism-beat-saber"), "Oculus");
return SetDir(Path.Combine(OculusInstall, "Software", "vrchat-vrchat"), "Oculus");
}
}
@ -294,8 +277,8 @@ namespace ModAssistant
string GUIDLetter = guidLetterVolumes.FirstOrDefault(x => libraryPath.Contains(x.Key)).Value;
if (!string.IsNullOrEmpty(GUIDLetter))
{
string finalPath = Path.Combine(GUIDLetter, libraryPath.Substring(49), @"Software\hyperbolic-magnetism-beat-saber");
if (File.Exists(Path.Combine(finalPath, "Beat Saber.exe")))
string finalPath = Path.Combine(GUIDLetter, libraryPath.Substring(49), @"Software\vrchat-vrchat");
if (File.Exists(Path.Combine(finalPath, "VRChat.exe")))
{
return SetDir(finalPath, "Oculus");
}
@ -323,10 +306,10 @@ namespace ModAssistant
path = path.Replace("\\select.this.directory", "");
path = path.Replace(".this.directory", "");
path = path.Replace("\\select.directory", "");
if (File.Exists(Path.Combine(path, "Beat Saber.exe")))
if (File.Exists(Path.Combine(path, "VRChat.exe")))
{
string store;
if (File.Exists(Path.Combine(path, "Beat Saber_Data", "Plugins", "steam_api64.dll")))
if (File.Exists(Path.Combine(path, "VRChat_Data", "Plugins", "steam_api64.dll")))
{
store = "Steam";
}
@ -356,21 +339,6 @@ namespace ModAssistant
return null;
}
public static bool IsVoid()
{
string directory = App.BeatSaberInstallDirectory;
string pluginsDirectory = Path.Combine(directory, "Beat Saber_Data", "Plugins");
if (File.Exists(Path.Combine(directory, "IGG-GAMES.COM.url")) ||
File.Exists(Path.Combine(directory, "SmartSteamEmu.ini")) ||
File.Exists(Path.Combine(directory, "GAMESTORRENT.CO.url")) ||
File.Exists(Path.Combine(pluginsDirectory, "BSteam crack.dll")) ||
File.Exists(Path.Combine(pluginsDirectory, "HUHUVR_steam_api64.dll")) ||
Directory.GetFiles(pluginsDirectory, "*.ini", SearchOption.TopDirectoryOnly).Where(x => Path.GetFileName(x) != "desktop.ini").Any())
return true;
return false;
}
public static byte[] StreamToArray(Stream input)
{
byte[] buffer = new byte[16 * 1024];

View File

@ -22,7 +22,7 @@ THE SOFTWARE.
using System.Text;
namespace ModAssistant.Libs
namespace VRCMelonAssistant.Libs
{
internal static class IntExtensions
{

View File

@ -29,7 +29,7 @@ using System.Security.Permissions;
#endif
using System.Text.RegularExpressions;
namespace ModAssistant.Libs
namespace VRCMelonAssistant.Libs
{
/// <summary>
/// A semantic version implementation.

View File

@ -1,7 +1,7 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ModAssistant"
xmlns:local="clr-namespace:VRCMelonAssistant"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="ResourceDictionaryName">i18n:en-DEBUG</sys:String>
@ -101,9 +101,6 @@
<sys:String x:Key="Options:SelectInstalledMods">Options:SelectInstalledMods</sys:String>
<sys:String x:Key="Options:ReinstallInstalledMods">Options:Reinstall Installed Mods</sys:String>
<sys:String x:Key="Options:EnableOneClickInstalls">Options:EnableOneClickInstalls</sys:String>
<sys:String x:Key="Options:BeatSaver">Options:BeatSaver</sys:String>
<sys:String x:Key="Options:ModelSaber">Options:ModelSaber</sys:String>
<sys:String x:Key="Options:Playlists">Options:Playlists</sys:String>
<sys:String x:Key="Options:CloseWindow">Options:CloseWindow</sys:String>
<sys:String x:Key="Options:GameType">Options:GameType</sys:String>
<sys:String x:Key="Options:GameType:Steam">Options:GameType:Steam</sys:String>

View File

@ -1,20 +1,20 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ModAssistant"
xmlns:local="clr-namespace:VRCMelonAssistant"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String x:Key="ResourceDictionaryName">i18n:en-US</sys:String>
<!-- App -->
<sys:String x:Key="App:InstallDirDialog:Title">Couldn't find your Beat Saber install folder!</sys:String>
<sys:String x:Key="App:InstallDirDialog:Title">Couldn't find your VRChat install folder!</sys:String>
<sys:String x:Key="App:InstallDirDialog:OkCancel">Press OK to try again, or Cancel to close application.</sys:String>
<sys:String x:Key="App:InvalidArgument">Invalid argument! '{0}' requires an option.</sys:String>
<sys:String x:Key="App:UnrecognizedArgument">Unrecognized argument. Closing Mod Assistant.</sys:String>
<sys:String x:Key="App:UnrecognizedArgument">Unrecognized argument. Closing VRChat Melon Assistant.</sys:String>
<sys:String x:Key="App:UnhandledException">An unhandled exception just occurred</sys:String>
<sys:String x:Key="App:Exception">Exception</sys:String>
<!-- Main Window -->
<sys:String x:Key="MainWindow:WindowTitle">Mod Assistant</sys:String>
<sys:String x:Key="MainWindow:WindowTitle">VRChat Melon Assistant</sys:String>
<sys:String x:Key="MainWindow:IntroButton">Intro</sys:String>
<sys:String x:Key="MainWindow:ModsButton">Mods</sys:String>
<sys:String x:Key="MainWindow:AboutButton">About</sys:String>
@ -24,33 +24,33 @@
<sys:String x:Key="MainWindow:ModInfoButton">Mod Info</sys:String>
<sys:String x:Key="MainWindow:InstallButtonTop">Install</sys:String>
<sys:String x:Key="MainWindow:InstallButtonBottom">or Update</sys:String>
<sys:String x:Key="MainWindow:GameVersionLoadFailed">Could not load game versions, Mods tab will be unavailable.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Title">New Game Version Detected!</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line1">It looks like there's been a game update.</sys:String>
<sys:String x:Key="MainWindow:GameUpdateDialog:Line2">Please double check that the correct version is selected at the bottom left corner!</sys:String>
<sys:String x:Key="MainWindow:NoModSelected">No mod selected!</sys:String>
<sys:String x:Key="MainWindow:NoModInfoPage">{0} does not have an info page.</sys:String>
<!-- Intro Page -->
<sys:String x:Key="Intro:Title">Intro</sys:String>
<sys:String x:Key="Intro:PageTitle">Welcome to Mod Assistant</sys:String>
<sys:String x:Key="Intro:PageTitle">Welcome to VRChat Melon Assistant</sys:String>
<sys:String x:Key="Intro:Terms:Header">Please read this page entirely and carefully</sys:String>
<Span x:Key="Intro:Terms:Line1">
By using this program attest to have read and agree to the following terms:
</Span>
<Span x:Key="Intro:Terms:Line2">
Beat Saber
<Bold>does not</Bold> natively support mods. This means:
VRChat
<Bold>explicitly forbids</Bold> modding the game client in their Terms of Service. This means:
</Span>
<Span x:Key="Intro:Terms:Term0">
Modding the client
<Bold>can</Bold> lead to bans. Mods available via this installer are manually checked to minimize the chance of that happening, but <Bold>the risk is always there</Bold>.
</Span>
<Span x:Key="Intro:Terms:Term1">
Mods
<Bold>will break</Bold> every update. This is normal, and
<Bold>not</Bold> Beat Games' fault.
<Bold>not</Bold> VRChat's fault.
</Span>
<Span x:Key="Intro:Terms:Term2">
Mods
<Bold>will</Bold> cause bugs and performance issues. This is
<Bold>not</Bold> Beat Games' fault.
<Bold>not</Bold> VRChat's fault.
</Span>
<Span x:Key="Intro:Terms:Term3">
Mods are made for
@ -58,21 +58,21 @@
<Bold>free time.</Bold> Please be patient and understanding.
</Span>
<Span x:Key="Intro:ReviewsBeatGamesFault">
<Bold>DO NOT</Bold> leave negative reviews because mods broke. This is
<Bold>not</Bold> Beat Games' fault.
<LineBreak/> They are not trying to kill mods.
<Bold>DO NOT</Bold> complain to VRChat Team because mods broke. This is
<Bold>not</Bold> VRChat's fault.
<LineBreak/> They are not trying to kill mods. Most likely.
</Span>
<Span x:Key="Intro:ReviewsRustySpoon">
If I keep seeing people leave negative reviews
If I keep seeing people complain to the devs
<Italic>because</Italic> mods broke,
<LineBreak/>
<Bold>I will personally kill mods with a rusty spoon</Bold>
</Span>
<Span x:Key="Intro:WikiGuide">
Please read the Beginners Guide on the
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bsmg.wiki/pc-modding.html">
Wiki
</Hyperlink>.
Feel free to join the
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://discord.gg/rCqKSvR">
VRChat Modding Group discord
</Hyperlink> for more info, help, and support.
</Span>
<sys:String x:Key="Intro:AgreeButton">I Agree</sys:String>
<sys:String x:Key="Intro:DisagreeButton">Disagree</sys:String>
@ -93,37 +93,34 @@
<sys:String x:Key="Mods:CheckingInstalledMods">Checking installed mods</sys:String>
<sys:String x:Key="Mods:LoadingMods">Loading Mods</sys:String>
<sys:String x:Key="Mods:FinishedLoadingMods">Finished loading mods</sys:String>
<sys:String x:Key="Mods:NoMods">No mods available for this version of Beat Saber</sys:String>
<sys:String x:Key="Mods:NoMods">No mods available</sys:String>
<sys:String x:Key="Mods:InstallingMod">Installing {0}</sys:String>
<sys:String x:Key="Mods:InstalledMod">Installed {0}</sys:String>
<sys:String x:Key="Mods:UnInstallingMelonLoader">Uninstalling MelonLoader</sys:String>
<sys:String x:Key="Mods:DownloadingMelonLoader">Downloading MelonLoader</sys:String>
<sys:String x:Key="Mods:UnpackingMelonLoader">Unpacking MelonLoader</sys:String>
<sys:String x:Key="Mods:FinishedInstallingMods">Finished installing mods</sys:String>
<sys:String x:Key="Mods:ModDownloadLinkMissing">Could not find download link for {0}</sys:String>
<sys:String x:Key="Mods:UninstallBox:Title">Uninstall {0}?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body1">Are you sure you want to remove {0}?</sys:String>
<sys:String x:Key="Mods:UninstallBox:Body2">This could break your other mods</sys:String>
<sys:String x:Key="Mods:UninstallSingleFailed">Error uninstalling mod. Make sure VRChat is not running.</sys:String>
<sys:String x:Key="Mods:UninstallMLFailed">Error uninstalling MelonLoader. Make sure VRChat is not running.</sys:String>
<sys:String x:Key="Mods:InstallMLFailed">Error installing MelonLoader. Try using the standalone installer.</sys:String>
<sys:String x:Key="Mods:FailedExtract">Failed to extract {0}, trying again in {1} seconds. ({2}/{3})</sys:String>
<sys:String x:Key="Mods:FailedExtractMaxReached">Failed to extract {0} after max attempts ({1}), skipping. This mod might not work properly so proceed at your own risk</sys:String>
<sys:String x:Key="Mods:SearchLabel">Search...</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Title">Failed to Uninstall BSIPA</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Body">BSIPA installation not found, uninstall operation skipped.</sys:String>
<!-- About Page -->
<sys:String x:Key="About:Title">About</sys:String>
<sys:String x:Key="About:PageTitle">About Mod Assistant</sys:String>
<sys:String x:Key="About:List:Header">I'm Assistant, and I made Mod Assistant for mod assistance, with a few principles in mind:</sys:String>
<sys:String x:Key="About:List:Item1">Simplicity</sys:String>
<sys:String x:Key="About:List:Item2">Portability</sys:String>
<sys:String x:Key="About:List:Item3">Single Executable</sys:String>
<sys:String x:Key="About:List:Item4">Responsible use</sys:String>
<sys:String x:Key="About:PageTitle">About VRChat Melon Assistant</sys:String>
<sys:String x:Key="About:List:Header">VRChat Melon Assistant is a fork of Assistant's Mod Assistant for Beat Saber.</sys:String>
<Span x:Key="About:SupportAssistant">
If you enjoy this program and would like to support me, please visit my
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://bs.assistant.moe/Donate/">
donation page
</Hyperlink>
or my
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://www.patreon.com/AssistantMoe">
Patreon
Visit
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://github.com/Assistant/ModAssistant">
Mod Assistant GitHub repo
</Hyperlink>
to appreciate their hard work and/or throw some money at them!
</Span>
<sys:String x:Key="About:SpecialThanks">Special Thanks ♥</sys:String>
<sys:String x:Key="About:Donate">Donate</sys:String>
@ -140,10 +137,6 @@
<sys:String x:Key="Options:CheckInstalledMods">Detect Installed Mods</sys:String>
<sys:String x:Key="Options:SelectInstalledMods">Select Installed Mods</sys:String>
<sys:String x:Key="Options:ReinstallInstalledMods">Reinstall Installed Mods</sys:String>
<sys:String x:Key="Options:EnableOneClickInstalls">Enable OneClick™ Installs</sys:String>
<sys:String x:Key="Options:BeatSaver">BeatSaver</sys:String>
<sys:String x:Key="Options:ModelSaber">ModelSaber</sys:String>
<sys:String x:Key="Options:Playlists">Playlists</sys:String>
<sys:String x:Key="Options:CloseWindow">Close window when finished</sys:String>
<sys:String x:Key="Options:GameType">Game Type</sys:String>
<sys:String x:Key="Options:GameType:Steam">Steam</sys:String>
@ -153,29 +146,24 @@
<sys:String x:Key="Options:InstallingPlaylist">Installing Playlist: {0}</sys:String>
<sys:String x:Key="Options:FailedPlaylistSong">Failed song: {0}</sys:String>
<sys:String x:Key="Options:FinishedPlaylist">[{0} fails] Finished Installing Playlist: {1}</sys:String>
<sys:String x:Key="Options:ShowOCIWindow">Show OneClick Installer Window</sys:String>
<sys:String x:Key="Options:OCIWindowYes">Yes</sys:String>
<sys:String x:Key="Options:OCIWindowClose">Close</sys:String>
<sys:String x:Key="Options:OCIWindowNo">No</sys:String>
<sys:String x:Key="Options:Diagnostics">Diagnostics</sys:String>
<sys:String x:Key="Options:OpenLogsButton">Open Logs</sys:String>
<sys:String x:Key="Options:OpenAppDataButton">Open AppData</sys:String>
<sys:String x:Key="Options:UninstallBSIPAButton">Uninstall BSIPA</sys:String>
<sys:String x:Key="Options:RemoveAllModsButton">Remove All Mods</sys:String>
<sys:String x:Key="Options:RemoveMLButton">Remove MelonLoader</sys:String>
<sys:String x:Key="Options:InstallMLButton">Install MelonLoader</sys:String>
<sys:String x:Key="Options:ApplicationTheme">Application Theme</sys:String>
<sys:String x:Key="Options:ExportTemplateButton">Export Template</sys:String>
<sys:String x:Key="Options:UploadingLog">Uploading Log</sys:String>
<sys:String x:Key="Options:LogUrlCopied">Log URL Copied To Clipboard!</sys:String>
<sys:String x:Key="Options:LogUploadFailed">Uploading Log Failed</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Title">Uploading log failed!</sys:String>
<sys:String x:Key="Options:LogUploadFailed:Body">Could not upload log file to Teknik, please try again or send the file manually.</sys:String>
<sys:String x:Key="Options:GettingModList">Getting Mod List</sys:String>
<sys:String x:Key="Options:FindingBSIPAVersion">Finding BSIPA Version</sys:String>
<sys:String x:Key="Options:BSIPAUninstalled">BSIPA Uninstalled</sys:String>
<sys:String x:Key="Options:YeetModsBox:Title">Uninstall All Mods?</sys:String>
<sys:String x:Key="Options:YeetModsBox:RemoveAllMods">Are you sure you want to remove ALL mods?</sys:String>
<sys:String x:Key="Options:YeetModsBox:CannotBeUndone">This cannot be undone.</sys:String>
<sys:String x:Key="Options:AllModsUninstalled">All Mods Uninstalled</sys:String>
<sys:String x:Key="Options:YeetMLBox:Title">Uninstall MelonLoader?</sys:String>
<sys:String x:Key="Options:YeetMLBox:RemoveAllMods">Are you sure you want to uninstall MelonLoader?</sys:String>
<sys:String x:Key="Options:YeetMLBox:CannotBeUndone">All your mods and mod data will stay intact.</sys:String>
<sys:String x:Key="Options:MLUninstalled">MelonLoader Uninstalled</sys:String>
<sys:String x:Key="Options:MLInstalled">MelonLoader Installed</sys:String>
<sys:String x:Key="Options:CurrentThemeRemoved">Current theme has been removed, reverting to default...</sys:String>
<sys:String x:Key="Options:ThemeFolderNotFound">Themes folder not found! Try exporting the template...</sys:String>
<sys:String x:Key="Options:AppDataNotFound">AppData folder not found! Try launching your game.</sys:String>
@ -183,54 +171,6 @@
<!-- Loading Page -->
<sys:String x:Key="Loading:Loading">Loading Mods</sys:String>
<!-- Invalid Page -->
<sys:String x:Key="Invalid:Title">Invalid</sys:String>
<sys:String x:Key="Invalid:PageTitle">Invalid Installation Detected</sys:String>
<sys:String x:Key="Invalid:PageSubtitle">Your game installation is corrupted or otherwise invalid</sys:String>
<sys:String x:Key="Invalid:List:Header">This can happen if your copy of the game is pirated, or if you copied a pirated copy over your legit install</sys:String>
<Span x:Key="Invalid:List:Line1">
If your copy of the game is pirated,
<Bold>please purchase the game
<Hyperlink NavigateUri="https://beatgames.com/" local:HyperlinkExtensions.IsExternal="True">
HERE
</Hyperlink>
</Bold>.
</Span>
<Span x:Key="Invalid:List:Line2">
If your copy of the game is
<Bold>not</Bold> pirated, please
<Hyperlink NavigateUri="https://bsmg.wiki/support#clean-installation" local:HyperlinkExtensions.IsExternal="True">
do a clean install
</Hyperlink>.
</Span>
<Span x:Key="Invalid:List:Line3">
If those don't help, ask for support in the
<Span Foreground="Blue">#pc-help</Span> channel in
<Hyperlink NavigateUri="https://discord.gg/beatsabermods" local:HyperlinkExtensions.IsExternal="True">
BSMG
</Hyperlink>.
</Span>
<sys:String x:Key="Invalid:BoughtGame1">If you used to have a pirated version but have since bought the game</sys:String>
<sys:String x:Key="Invalid:SelectFolderButton">Select Folder</sys:String>
<sys:String x:Key="Invalid:BoughtGame2">You will need to restart Mod Assistant after changing to the legit install</sys:String>
<!-- OneClick Class -->
<sys:String x:Key="OneClick:MapDownloadFailed">Could not get map details.</sys:String>
<sys:String x:Key="OneClick:SongDownloadFailed">Could not download the song.</sys:String>
<sys:String x:Key="OneClick:SongDownload:Failed">Could not download the song.</sys:String>
<sys:String x:Key="OneClick:SongDownload:NetworkIssues">There might be issues with BeatSaver or your internet connection.</sys:String>
<sys:String x:Key="OneClick:SongDownload:FailedTitle">Failed to download song ZIP</sys:String>
<sys:String x:Key="OneClick:InstallDirNotFound">Beat Saber installation path not found.</sys:String>
<sys:String x:Key="OneClick:InstalledAsset">Installed: {0}</sys:String>
<sys:String x:Key="OneClick:AssetInstallFailed">Failed to install.</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} OneClick™ Install handlers registered!</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{0} OneClick™ Install handlers unregistered!</sys:String>
<sys:String x:Key="OneClick:Installing">Installing: {0}</sys:String>
<sys:String x:Key="OneClick:RatelimitSkip">Max tries reached: Skipping {0}</sys:String>
<sys:String x:Key="OneClick:RatelimitHit">Ratelimit hit. Resuming in {0}</sys:String>
<sys:String x:Key="OneClick:Failed">Download failed: {0}</sys:String>
<sys:String x:Key="OneClick:Done">Done'd</sys:String>
<!-- Themes Class -->
<sys:String x:Key="Themes:ThemeNotFound">Theme not found, reverting to default theme...</sys:String>
<sys:String x:Key="Themes:ThemeSet">Theme set to {0}.</sys:String>
@ -244,9 +184,17 @@
<sys:String x:Key="Updater:DownloadFailed">Couldn't download update.</sys:String>
<!-- Utils Class -->
<sys:String x:Key="Utils:NotificationTitle">Mod Assistant</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">Could not detect your Beat Saber install folder. Please select it manually.</sys:String>
<sys:String x:Key="Utils:RunAsAdmin">Mod Assistant needs to run this task as Admin. Please try again.</sys:String>
<sys:String x:Key="Utils:InstallDir:DialogTitle">Select your Beat Saber install folder</sys:String>
<sys:String x:Key="Utils:NotificationTitle">VRChat Melon Assistant</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">Could not detect your VRChat install folder. Please select it manually.</sys:String>
<sys:String x:Key="Utils:RunAsAdmin">VRChat Melon Assistant needs to run this task as Admin. Please try again.</sys:String>
<sys:String x:Key="Utils:InstallDir:DialogTitle">Select your VRChat install folder</sys:String>
<sys:String x:Key="Utils:CannotOpenFolder">Can't open folder: {0}</sys:String>
<sys:String x:Key="ModInfoWindow:Title">Mod info for {0}</sys:String>
<sys:String x:Key="ModInfoWindow:Author">Author: {0}</sys:String>
<sys:String x:Key="ModInfoWindow:NoAuthor">Unknown author</sys:String>
<sys:String x:Key="ModInfoWindow:NoDescription">No description available</sys:String>
<sys:String x:Key="ModInfoWindow:DownloadLink">Download link: </sys:String>
<sys:String x:Key="ModInfoWindow:SourceCodeLink">Source code: </sys:String>
<sys:String x:Key="ModInfoWindow:InternalIds">Internal ID: {0} {1}</sys:String>
</ResourceDictionary>

View File

@ -1,9 +1,9 @@
<Window
x:Class="ModAssistant.MainWindow"
x:Class="VRCMelonAssistant.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ModAssistant"
xmlns:local="clr-namespace:VRCMelonAssistant"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="{DynamicResource MainWindow:WindowTitle}"
Icon="Resources/icon.ico"
@ -11,7 +11,7 @@
UIElement.PreviewMouseDown="Window_PreviewMouseDown"
mc:Ignorable="d">
<Grid>
<Rectangle Fill="{DynamicResource ModAssistantBackground}" />
<Rectangle Fill="{DynamicResource VRCMelonAssistantBackground}" />
<Rectangle>
<Rectangle.Fill>
<ImageBrush x:Name="BackgroundImage" Stretch="{DynamicResource BackgroundImageStretch}" />
@ -135,25 +135,6 @@
</Viewbox>
</StackPanel>
</Button>
<StackPanel
Name="GameVersions"
Grid.Row="5"
VerticalAlignment="Bottom">
<TextBlock FontSize="10">
<TextBlock Text="{DynamicResource MainWindow:GameVersionLabel}" />
:
</TextBlock>
<ComboBox
Name="GameVersionsBox"
Margin="0,5,5,0"
SelectionChanged="GameVersionsBox_SelectionChanged" />
<ComboBox
Name="GameVersionsBoxOverride"
Margin="0,5,5,0"
Visibility="Collapsed" />
</StackPanel>
</Grid>
<StackPanel Grid.Row="1" VerticalAlignment="Center">
@ -204,7 +185,7 @@
</Button>
<Button
Name="InstallButton"
Grid.Column="2"
Grid.Column="2"
Height="40"
MinWidth="115"
Margin="10,10,0,0"

View File

@ -5,10 +5,10 @@ using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using ModAssistant.Pages;
using static ModAssistant.Http;
using VRCMelonAssistant.Pages;
using static VRCMelonAssistant.Http;
namespace ModAssistant
namespace VRCMelonAssistant
{
/// <summary>
/// Interaction logic for MainWindow.xaml
@ -18,9 +18,6 @@ namespace ModAssistant
public static MainWindow Instance;
public static bool ModsOpened = false;
public static bool ModsLoading = false;
public static string GameVersion;
public static string GameVersionOverride;
public TaskCompletionSource<bool> VersionLoadStatus = new TaskCompletionSource<bool>();
public string MainText
{
@ -51,21 +48,11 @@ namespace ModAssistant
VersionText.Text = App.Version;
if (Utils.IsVoid())
{
Main.Content = Invalid.Instance;
Instance.ModsButton.IsEnabled = false;
Instance.OptionsButton.IsEnabled = false;
Instance.IntroButton.IsEnabled = false;
Instance.AboutButton.IsEnabled = false;
Instance.GameVersionsBox.IsEnabled = false;
return;
}
Themes.LoadThemes();
Themes.FirstLoad(Properties.Settings.Default.SelectedTheme);
Task.Run(() => LoadVersionsAsync());
if (Properties.Settings.Default.Agreed)
Instance.ModsButton.IsEnabled = true;
if (!Properties.Settings.Default.Agreed || string.IsNullOrEmpty(Properties.Settings.Default.LastTab))
{
@ -79,7 +66,7 @@ namespace ModAssistant
Main.Content = Intro.Instance;
break;
case "Mods":
_ = ShowModsPage();
ShowModsPage();
break;
case "About":
Main.Content = About.Instance;
@ -100,7 +87,7 @@ namespace ModAssistant
* Explaination:
* OneClickStatus is initialized as a static object,
* so the window will exist, even if it is unused.
* This would cause Mod Assistant to not shutdown,
* This would cause VRChat Melon Assistant to not shutdown,
* because technically a window was still open.
*/
protected override void OnClosed(EventArgs e)
@ -110,102 +97,10 @@ namespace ModAssistant
Application.Current.Shutdown();
}
private async void LoadVersionsAsync()
internal void MarkModsPageForRefresh()
{
try
{
var resp = await HttpClient.GetAsync(Utils.Constants.BeatModsVersions);
var body = await resp.Content.ReadAsStringAsync();
List<string> versions = JsonSerializer.Deserialize<string[]>(body).ToList();
resp = await HttpClient.GetAsync(Utils.Constants.BeatModsAlias);
body = await resp.Content.ReadAsStringAsync();
Dictionary<string, string[]> aliases = JsonSerializer.Deserialize<Dictionary<string, string[]>>(body);
Dispatcher.Invoke(() =>
{
GameVersion = GetGameVersion(versions, aliases);
GameVersionsBox.ItemsSource = versions;
GameVersionsBox.SelectedValue = GameVersion;
if (!string.IsNullOrEmpty(GameVersionOverride))
{
GameVersionsBox.Visibility = Visibility.Collapsed;
GameVersionsBoxOverride.Visibility = Visibility.Visible;
GameVersionsBoxOverride.Text = GameVersionOverride;
GameVersionsBoxOverride.IsEnabled = false;
}
if (!string.IsNullOrEmpty(GameVersion) && Properties.Settings.Default.Agreed)
{
Instance.ModsButton.IsEnabled = true;
}
});
VersionLoadStatus.SetResult(true);
}
catch (Exception e)
{
Dispatcher.Invoke(() =>
{
GameVersionsBox.IsEnabled = false;
MessageBox.Show($"{Application.Current.FindResource("MainWindow:GameVersionLoadFailed")}\n{e}");
});
VersionLoadStatus.SetResult(false);
}
}
private string GetGameVersion(List<string> versions, Dictionary<string, string[]> aliases)
{
string version = Utils.GetVersion();
if (!string.IsNullOrEmpty(version) && versions.Contains(version))
{
return version;
}
string aliasOf = CheckAliases(versions, aliases, version);
if (!string.IsNullOrEmpty(aliasOf))
{
return aliasOf;
}
string versionsString = string.Join(",", versions.ToArray());
if (Properties.Settings.Default.AllGameVersions != versionsString)
{
Properties.Settings.Default.AllGameVersions = versionsString;
Properties.Settings.Default.Save();
string title = (string)Application.Current.FindResource("MainWindow:GameUpdateDialog:Title");
string line1 = (string)Application.Current.FindResource("MainWindow:GameUpdateDialog:Line1");
string line2 = (string)Application.Current.FindResource("MainWindow:GameUpdateDialog:Line2");
Utils.ShowMessageBoxAsync($"{line1}\n\n{line2}", title);
return versions[0];
}
if (!string.IsNullOrEmpty(Properties.Settings.Default.GameVersion) && versions.Contains(Properties.Settings.Default.GameVersion))
return Properties.Settings.Default.GameVersion;
return versions[0];
}
private string CheckAliases(List<string> versions, Dictionary<string, string[]> aliasesDict, string detectedVersion)
{
Dictionary<string, List<string>> aliases = aliasesDict.ToDictionary(x => x.Key, x => x.Value.ToList());
foreach (string version in versions)
{
if (aliases.TryGetValue(version, out var x))
{
if (x.Contains(detectedVersion))
{
GameVersionOverride = detectedVersion;
return version;
}
}
}
return string.Empty;
ModsOpened = false;
InstallButton.IsEnabled = false;
}
private async Task ShowModsPage()
@ -218,7 +113,7 @@ namespace ModAssistant
Mods.Instance.RefreshColumns();
}
if (ModsOpened == true && Mods.Instance.PendingChanges == false)
if (ModsOpened && !Mods.Instance.PendingChanges)
{
OpenModsPage();
return;
@ -242,7 +137,7 @@ namespace ModAssistant
private void ModsButton_Click(object sender, RoutedEventArgs e)
{
_ = ShowModsPage();
ShowModsPage();
}
private void IntroButton_Click(object sender, RoutedEventArgs e)
@ -280,37 +175,16 @@ namespace ModAssistant
return;
}
Mods.ModListItem mod = ((Mods.ModListItem)Mods.Instance.ModsListView.SelectedItem);
string infoUrl = mod.ModInfo.link;
if (string.IsNullOrEmpty(infoUrl))
{
MessageBox.Show(string.Format((string)Application.Current.FindResource("MainWindow:NoModInfoPage"), mod.ModName));
}
else
{
System.Diagnostics.Process.Start(infoUrl);
}
ShowModInfoWindow(mod.ModInfo);
}
private async void GameVersionsBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
internal static void ShowModInfoWindow(Mod mod)
{
string oldGameVersion = GameVersion;
GameVersion = (sender as ComboBox).SelectedItem.ToString();
if (string.IsNullOrEmpty(oldGameVersion)) return;
Properties.Settings.Default.GameVersion = GameVersion;
Properties.Settings.Default.Save();
if (ModsOpened)
{
var prevPage = Main.Content;
Mods.Instance.PendingChanges = true;
await ShowModsPage();
Main.Content = prevPage;
}
var infoWindow = new ModInfoWindow();
infoWindow.SetMod(mod);
infoWindow.Owner = Instance;
infoWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;
infoWindow.ShowDialog();
}
private void Window_PreviewMouseDown(object sender, MouseButtonEventArgs e)

View File

@ -0,0 +1,26 @@
<Window x:Class="VRCMelonAssistant.ModInfoWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:VRCMelonAssistant"
mc:Ignorable="d"
Height="450" Width="800">
<Grid>
<Rectangle Fill="{DynamicResource VRCMelonAssistantBackground}" />
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
<StackPanel Orientation="Vertical" Margin="10">
<TextBlock FontSize="16" Name="ModName" />
<TextBlock Name="ModVersion"/>
<TextBlock Name="ModAuthor" />
<TextBlock />
<TextBlock Name="ModDescription" TextWrapping="Wrap" />
<TextBlock />
<TextBlock Name="SourceCodeLink" />
<TextBlock Name="DownloadLink" />
<TextBlock Name="InternalIds" />
</StackPanel>
</ScrollViewer>
</Grid>
</Window>

View File

@ -0,0 +1,49 @@
using System.Linq;
using System.Windows;
using System.Windows.Documents;
namespace VRCMelonAssistant
{
public partial class ModInfoWindow : Window
{
public ModInfoWindow()
{
InitializeComponent();
}
public void SetMod(Mod mod)
{
Title = string.Format((string) FindResource("ModInfoWindow:Title"), mod.versions[0].name);
ModDescription.Text = mod.versions[0].description ?? (string) FindResource("ModInfoWindow:NoDescription");
ModName.Text = mod.versions[0].name;
ModAuthor.Text = string.Format((string) FindResource("ModInfoWindow:Author"), mod.versions[0].author ?? FindResource("ModInfoWindow:NoAuthor"));
ModVersion.Text = mod.versions[0].modversion;
var dlLink = mod.versions[0].downloadlink;
DownloadLink.Text = (string) FindResource("ModInfoWindow:DownloadLink");
DownloadLink.Inlines.Add(new Run(" "));
if (dlLink?.StartsWith("http") == true)
DownloadLink.Inlines.Add(WrapNavigator(new Hyperlink(new Run(dlLink))));
else
DownloadLink.Inlines.Add(new Run(dlLink));
var srcLink = mod.versions[0].sourcelink;
SourceCodeLink.Text = (string) FindResource("ModInfoWindow:SourceCodeLink");
SourceCodeLink.Inlines.Add(new Run(" "));
if (srcLink?.StartsWith("http") == true)
SourceCodeLink.Inlines.Add(WrapNavigator(new Hyperlink(new Run(srcLink))));
else
SourceCodeLink.Inlines.Add(new Run(srcLink));
InternalIds.Text = string.Format((string) FindResource("ModInfoWindow:InternalIds"), mod._id, mod.versions[0]._version);
}
private static Hyperlink WrapNavigator(Hyperlink link)
{
link.RequestNavigate += HyperlinkExtensions.Hyperlink_RequestNavigate;
return link;
}
}
}

View File

@ -1,9 +1,9 @@
<Page
x:Class="ModAssistant.Pages.About"
x:Class="VRCMelonAssistant.Pages.About"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ModAssistant"
xmlns:local="clr-namespace:VRCMelonAssistant"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
xmlns:winForms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
@ -41,34 +41,7 @@
FontSize="16"
Text="{DynamicResource About:List:Header}"
TextWrapping="Wrap" />
<TextBlock
Grid.Row="2"
Margin="15,5"
FontSize="16">
<TextBlock Text="{DynamicResource About:List:Item1}" />
</TextBlock>
<TextBlock
Grid.Row="3"
Margin="15,5"
FontSize="16">
<TextBlock Text="{DynamicResource About:List:Item2}" />
</TextBlock>
<TextBlock
Grid.Row="4"
Margin="15,5"
FontSize="16">
<TextBlock Text="{DynamicResource About:List:Item3}" />
</TextBlock>
<TextBlock
Grid.Row="5"
Margin="15,5"
FontSize="16">
<TextBlock Text="{DynamicResource About:List:Item4}" />
</TextBlock>
<TextBlock
Grid.Row="6"
@ -89,6 +62,38 @@
HorizontalAlignment="Center"
Orientation="Horizontal">
<StackPanel Margin="10" Orientation="Vertical">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="20"
FontWeight="Bold">
<Hyperlink NavigateUri="https://github.com/Assistant/" RequestNavigate="Hyperlink_RequestNavigate">
Assistant
</Hyperlink>
</TextBlock>
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="16">
Creating the original
</TextBlock>
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="16">
Mod Assistant
</TextBlock>
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="16">
<Hyperlink local:HyperlinkExtensions.IsExternal="True" NavigateUri="https://ko-fi.com/N4N8JX7B">
<Run Text="{DynamicResource About:Donate}" />
</Hyperlink>
</TextBlock>
</StackPanel>
<StackPanel Margin="10" Orientation="Vertical">
<TextBlock
HorizontalAlignment="Center"

View File

@ -3,9 +3,9 @@ using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using static ModAssistant.Http;
using static VRCMelonAssistant.Http;
namespace ModAssistant.Pages
namespace VRCMelonAssistant.Pages
{
/// <summary>
/// Interaction logic for Page1.xaml

View File

@ -1,9 +1,9 @@
<Page
x:Class="ModAssistant.Pages.Intro"
x:Class="VRCMelonAssistant.Pages.Intro"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ModAssistant"
xmlns:local="clr-namespace:VRCMelonAssistant"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="DynamicResource Intro:Title"
d:DesignHeight="629"
@ -23,6 +23,7 @@
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
@ -59,7 +60,7 @@
Margin="15,5"
FontSize="16"
TextWrapping="Wrap">
<StaticResource ResourceKey="Intro:Terms:Term1" />
<StaticResource ResourceKey="Intro:Terms:Term0" />
</TextBlock>
<TextBlock
@ -67,7 +68,7 @@
Margin="15,5"
FontSize="16"
TextWrapping="Wrap">
<StaticResource ResourceKey="Intro:Terms:Term2" />
<StaticResource ResourceKey="Intro:Terms:Term1" />
</TextBlock>
<TextBlock
@ -75,15 +76,15 @@
Margin="15,5"
FontSize="16"
TextWrapping="Wrap">
<StaticResource ResourceKey="Intro:Terms:Term3" />
<StaticResource ResourceKey="Intro:Terms:Term2" />
</TextBlock>
<TextBlock
Grid.Row="7"
Margin="0,5"
Margin="15,5"
FontSize="16"
TextWrapping="Wrap">
<StaticResource ResourceKey="Intro:ReviewsBeatGamesFault" />
<StaticResource ResourceKey="Intro:Terms:Term3" />
</TextBlock>
<TextBlock
@ -91,7 +92,7 @@
Margin="0,5"
FontSize="16"
TextWrapping="Wrap">
<StaticResource ResourceKey="Intro:ReviewsRustySpoon" />
<StaticResource ResourceKey="Intro:ReviewsBeatGamesFault" />
</TextBlock>
<TextBlock
@ -99,11 +100,19 @@
Margin="0,5"
FontSize="16"
TextWrapping="Wrap">
<StaticResource ResourceKey="Intro:ReviewsRustySpoon" />
</TextBlock>
<TextBlock
Grid.Row="10"
Margin="0,5"
FontSize="16"
TextWrapping="Wrap">
<StaticResource ResourceKey="Intro:WikiGuide" />
</TextBlock>
<StackPanel
Grid.Row="10"
Grid.Row="11"
Margin="10"
HorizontalAlignment="Center"
VerticalAlignment="Center"

View File

@ -3,7 +3,7 @@ using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
namespace ModAssistant.Pages
namespace VRCMelonAssistant.Pages
{
/// <summary>
/// Interaction logic for Intro.xaml
@ -34,21 +34,11 @@ namespace ModAssistant.Pages
private void Agree_Click(object sender, RoutedEventArgs e)
{
if (string.IsNullOrEmpty(MainWindow.GameVersion))
{
string line1 = (string)FindResource("Intro:VersionDownloadFailed");
string line2 = (string)FindResource("Intro:ModsTabDisabled");
MainWindow.Instance.ModsButton.IsEnabled = true;
MessageBox.Show($"{line1}.\n{line2}");
}
else
{
MainWindow.Instance.ModsButton.IsEnabled = true;
string text = (string)FindResource("Intro:ModsTabEnabled");
Utils.SendNotify(text);
MainWindow.Instance.MainText = text;
}
string text = (string) FindResource("Intro:ModsTabEnabled");
Utils.SendNotify(text);
MainWindow.Instance.MainText = text;
Properties.Settings.Default.Agreed = true;
Properties.Settings.Default.Save();
}

View File

@ -1,9 +1,9 @@
<Page
x:Class="ModAssistant.Pages.Invalid"
x:Class="VRCMelonAssistant.Pages.Invalid"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ModAssistant.Pages"
xmlns:local="clr-namespace:VRCMelonAssistant.Pages"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="{DynamicResource Invalid:Title}"
d:DesignHeight="629"

View File

@ -3,7 +3,7 @@ using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
namespace ModAssistant.Pages
namespace VRCMelonAssistant.Pages
{
/// <summary>
/// Interaction logic for Invalid.xaml
@ -16,7 +16,7 @@ namespace ModAssistant.Pages
public Invalid()
{
InitializeComponent();
InstallDirectory = App.BeatSaberInstallDirectory;
InstallDirectory = App.VRChatInstallDirectory;
DirectoryTextBlock.Text = InstallDirectory;
}

View File

@ -1,9 +1,9 @@
<Page
x:Class="ModAssistant.Pages.Loading"
x:Class="VRCMelonAssistant.Pages.Loading"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ModAssistant.Pages"
xmlns:local="clr-namespace:VRCMelonAssistant.Pages"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Loading"
d:DesignHeight="450"
@ -43,18 +43,6 @@
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Image
Grid.Row="0"
Margin="100,100,100,0"
VerticalAlignment="Center"
Source="{DynamicResource loadingInnerDrawingImage}"
Stretch="Uniform" />
<Image
Grid.Row="0"
Margin="100,100,100,0"
VerticalAlignment="Center"
Source="{DynamicResource loadingMiddleDrawingImage}"
Stretch="Uniform" />
<Image
Grid.Row="0"
Margin="100,100,100,0"

View File

@ -2,7 +2,7 @@ using System;
using System.Windows.Controls;
using System.Windows.Data;
namespace ModAssistant.Pages
namespace VRCMelonAssistant.Pages
{
/// <summary>
/// Interaction logic for Loading.xaml

View File

@ -1,10 +1,11 @@
<Page
x:Class="ModAssistant.Pages.Mods"
x:Class="VRCMelonAssistant.Pages.Mods"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ModAssistant"
xmlns:local="clr-namespace:VRCMelonAssistant"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:system="clr-namespace:System;assembly=mscorlib"
Title="{DynamicResource Mods:Title}"
d:DesignHeight="629"
d:DesignWidth="1182"
@ -49,7 +50,8 @@
Grid.Row="1"
Grid.Column="1"
SelectionChanged="ModsListView_SelectionChanged"
SelectionMode="Single">
SelectionMode="Single"
MouseDoubleClick="ModsListView_OnMouseDoubleClick">
<ListView.View>
<GridView>
<GridView.Columns>
@ -100,7 +102,7 @@
<Run Text="{Binding PromotionText}" />
</Hyperlink>
</TextBlock>
<TextBlock MouseLeftButtonDown="CopyText" Text="{Binding ModDescription}" />
<TextBlock Text="{Binding ModDescription}" MouseLeftButtonDown="ModsListView_OnMouseDoubleClick" />
</StackPanel>
</DataTemplate>
@ -131,11 +133,12 @@
<GroupStyle>
<GroupStyle.HeaderTemplate>
<DataTemplate>
<TextBlock
Padding="6,0,0,0"
FontSize="14"
FontWeight="Bold"
Text="{Binding Name}" />
<StackPanel Orientation="Horizontal">
<TextBlock Padding="6,0,0,0">
<Run FontSize="16" FontWeight="Bold" Text="{Binding Name.Name, Mode=OneWay}" />
<Run FontSize="12" FontStyle="Italic" Text="{Binding Name.Description, Mode=OneWay}" />
</TextBlock>
</StackPanel>
</DataTemplate>
</GroupStyle.HeaderTemplate>
</GroupStyle>

View File

@ -0,0 +1,539 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms;
using System.Windows.Input;
using System.Windows.Media.Animation;
using System.Windows.Navigation;
using Mono.Cecil;
using VRCMelonAssistant.Libs;
using static VRCMelonAssistant.Http;
using TextBox = System.Windows.Controls.TextBox;
namespace VRCMelonAssistant.Pages
{
/// <summary>
/// Interaction logic for Mods.xaml
/// </summary>
public sealed partial class Mods : Page
{
public static Mods Instance = new Mods();
private static readonly ModListItem.CategoryInfo BrokenCategory = new("Broken", "These mods were broken by a game update. They will be temporarily removed and restored once they are updated for the current game version");
private static readonly ModListItem.CategoryInfo UncategorizedCategory = new("Uncategorized", "Mods without a category assigned");
private static readonly ModListItem.CategoryInfo UnknownCategory = new("Unknown/Unverified", "Mods not coming from VRCMG. Potentially dangerous.");
public List<string> DefaultMods = new List<string>() { "UI Expansion Kit", "Finitizer", "VRCModUpdater.Loader" };
public Mod[] AllModsList;
public List<Mod> UnknownMods = new List<Mod>();
public CollectionView view;
public bool PendingChanges;
public bool HaveInstalledMods;
private readonly SemaphoreSlim _modsLoadSem = new SemaphoreSlim(1, 1);
public List<ModListItem> ModList { get; set; }
public Mods()
{
InitializeComponent();
}
private void RefreshModsList()
{
view?.Refresh();
}
public void RefreshColumns()
{
if (MainWindow.Instance.Main.Content != Instance) return;
double viewWidth = ModsListView.ActualWidth;
double totalSize = 0;
GridViewColumn description = null;
if (ModsListView.View is GridView grid)
{
foreach (var column in grid.Columns)
{
if (column.Header?.ToString() == FindResource("Mods:Header:Description").ToString())
{
description = column;
}
else
{
totalSize += column.ActualWidth;
}
if (double.IsNaN(column.Width))
{
column.Width = column.ActualWidth;
column.Width = double.NaN;
}
}
double descriptionNewWidth = viewWidth - totalSize - 35;
description.Width = descriptionNewWidth > 200 ? descriptionNewWidth : 200;
}
}
public async Task LoadMods()
{
await _modsLoadSem.WaitAsync();
try
{
MainWindow.Instance.InstallButton.IsEnabled = false;
MainWindow.Instance.InfoButton.IsEnabled = false;
AllModsList = null;
ModList = new List<ModListItem>();
UnknownMods.Clear();
HaveInstalledMods = false;
ModsListView.Visibility = Visibility.Hidden;
MainWindow.Instance.MainText = $"{FindResource("Mods:CheckingInstalledMods")}...";
await CheckInstalledMods();
InstalledColumn.Width = double.NaN;
UninstallColumn.Width = 70;
DescriptionColumn.Width = 750;
MainWindow.Instance.MainText = $"{FindResource("Mods:LoadingMods")}...";
await PopulateModsList();
ModsListView.ItemsSource = ModList;
view = (CollectionView)CollectionViewSource.GetDefaultView(ModsListView.ItemsSource);
PropertyGroupDescription groupDescription = new PropertyGroupDescription("Category");
view.GroupDescriptions.Add(groupDescription);
this.DataContext = this;
RefreshModsList();
ModsListView.Visibility = ModList.Count == 0 ? Visibility.Hidden : Visibility.Visible;
NoModsGrid.Visibility = ModList.Count == 0 ? Visibility.Visible : Visibility.Hidden;
MainWindow.Instance.MainText = $"{FindResource("Mods:FinishedLoadingMods")}.";
MainWindow.Instance.InstallButton.IsEnabled = ModList.Count != 0;
}
finally
{
_modsLoadSem.Release();
}
}
public async Task CheckInstalledMods()
{
await GetAllMods();
await Task.Run(() =>
{
CheckInstallDir("Plugins", false);
CheckInstallDir("Mods", false);
CheckInstallDir("Plugins/Broken", true);
CheckInstallDir("Mods/Broken", true);
});
}
public async Task GetAllMods()
{
try
{
var resp = await HttpClient.GetAsync(Utils.Constants.VRCMGModsJson);
var body = await resp.Content.ReadAsStringAsync();
AllModsList = JsonSerializer.Deserialize<Mod[]>(body);
foreach (var mod in AllModsList)
mod.category ??= HardcodedCategories.GetCategoryFor(mod) ?? "Uncategorized";
Array.Sort(AllModsList, (a, b) =>
{
var categoryCompare = String.Compare(a.category, b.category, StringComparison.Ordinal);
if (categoryCompare != 0) return categoryCompare;
return String.Compare(a.versions[0].name, b.versions[0].name, StringComparison.Ordinal);
});
}
catch (Exception e)
{
System.Windows.MessageBox.Show($"{FindResource("Mods:LoadFailed")}.\n\n" + e);
}
}
private void CheckInstallDir(string directory, bool isBrokenDir)
{
if (!Directory.Exists(Path.Combine(App.VRChatInstallDirectory, directory)))
{
return;
}
foreach (string file in Directory.GetFileSystemEntries(Path.Combine(App.VRChatInstallDirectory, directory), "*.dll", SearchOption.TopDirectoryOnly))
{
if (!File.Exists(file) || Path.GetExtension(file) != ".dll") continue;
var modInfo = ExtractModVersions(file);
if (modInfo.Item1 != null && modInfo.Item2 != null)
{
var haveFoundMod = false;
foreach (var mod in AllModsList)
{
if (!mod.aliases.Contains(modInfo.ModName) && mod.versions.All(it => it.name != modInfo.ModName)) continue;
HaveInstalledMods = true;
haveFoundMod = true;
mod.installedFilePath = file;
mod.installedVersion = modInfo.ModVersion;
mod.installedInBrokenDir = isBrokenDir;
break;
}
if (!haveFoundMod)
{
var mod = new Mod()
{
installedFilePath = file,
installedVersion = modInfo.ModVersion,
installedInBrokenDir = isBrokenDir,
versions = new []
{
new Mod.ModVersion()
{
name = modInfo.ModName,
modversion = modInfo.ModVersion,
description = "",
}
}
};
UnknownMods.Add(mod);
}
}
}
}
private (string ModName, string ModVersion) ExtractModVersions(string dllPath)
{
using var asmdef = AssemblyDefinition.ReadAssembly(dllPath);
foreach (var attr in asmdef.CustomAttributes)
if (attr.AttributeType.Name == "MelonInfoAttribute" || attr.AttributeType.Name == "MelonModInfoAttribute")
return ((string) attr.ConstructorArguments[1].Value, (string) attr.ConstructorArguments[2].Value);
return (null, null);
}
public async Task PopulateModsList()
{
foreach (Mod mod in AllModsList)
AddModToList(mod);
foreach (var mod in UnknownMods)
AddModToList(mod, UnknownCategory);
}
private void AddModToList(Mod mod, ModListItem.CategoryInfo categoryOverride = null)
{
bool preSelected = false;
var latestVersion = mod.versions[0];
if (DefaultMods.Contains(latestVersion.name) && !HaveInstalledMods || mod.installedFilePath != null)
{
preSelected = true;
}
ModListItem.CategoryInfo GetCategory(Mod mod)
{
if (mod.category == null) return UncategorizedCategory;
return new ModListItem.CategoryInfo(mod.category,
HardcodedCategories.GetCategoryDescription(mod.category));
}
ModListItem ListItem = new ModListItem()
{
IsSelected = preSelected,
IsEnabled = true,
ModName = latestVersion.name,
ModVersion = latestVersion.modversion,
ModDescription = latestVersion.description.Replace("\r\n", " ").Replace("\n", " "),
ModInfo = mod,
IsInstalled = mod.installedFilePath != null,
InstalledVersion = mod.installedVersion,
InstalledModInfo = mod,
Category = categoryOverride ?? (latestVersion.IsBroken ? BrokenCategory : GetCategory(mod))
};
foreach (Promotion promo in Promotions.ActivePromotions)
{
if (latestVersion.name == promo.ModName)
{
ListItem.PromotionText = promo.Text;
ListItem.PromotionLink = promo.Link;
}
}
mod.ListItem = ListItem;
ModList.Add(ListItem);
}
public async void InstallMods()
{
MainWindow.Instance.InstallButton.IsEnabled = false;
if (!InstallHandlers.IsMelonLoaderInstalled())
await InstallHandlers.InstallMelonLoader();
foreach (Mod mod in AllModsList)
{
// Ignore mods that are newer than installed version or up-to-date
if (mod.ListItem.GetVersionComparison >= 0 && mod.installedInBrokenDir == mod.versions[0].IsBroken) continue;
if (mod.ListItem.IsSelected)
{
MainWindow.Instance.MainText = $"{string.Format((string)FindResource("Mods:InstallingMod"), mod.versions[0].name)}...";
await InstallHandlers.InstallMod(mod);
MainWindow.Instance.MainText = $"{string.Format((string)FindResource("Mods:InstalledMod"), mod.versions[0].name)}.";
}
}
MainWindow.Instance.MainText = $"{FindResource("Mods:FinishedInstallingMods")}.";
MainWindow.Instance.InstallButton.IsEnabled = true;
RefreshModsList();
}
private void ModCheckBox_Checked(object sender, RoutedEventArgs e)
{
Mod mod = ((sender as System.Windows.Controls.CheckBox).Tag as Mod);
mod.ListItem.IsSelected = true;
RefreshModsList();
}
private void ModCheckBox_Unchecked(object sender, RoutedEventArgs e)
{
Mod mod = ((sender as System.Windows.Controls.CheckBox).Tag as Mod);
mod.ListItem.IsSelected = false;
RefreshModsList();
}
public class Category
{
public string CategoryName { get; set; }
public List<ModListItem> Mods = new List<ModListItem>();
}
public class ModListItem
{
public string ModName { get; set; }
public string ModVersion { get; set; }
public string ModDescription { get; set; }
public bool PreviousState { get; set; }
public bool IsEnabled { get; set; }
public bool IsSelected { get; set; }
public Mod ModInfo { get; set; }
public CategoryInfo Category { get; set; }
public Mod InstalledModInfo { get; set; }
public bool IsInstalled { get; set; }
private SemVersion _installedVersion { get; set; }
public string InstalledVersion
{
get
{
if (!IsInstalled || _installedVersion == null) return "-";
return _installedVersion.ToString();
}
set
{
if (SemVersion.TryParse(value, out SemVersion tempInstalledVersion))
{
_installedVersion = tempInstalledVersion;
}
else
{
_installedVersion = null;
}
}
}
public string GetVersionColor
{
get
{
if (!IsInstalled || _installedVersion == null) return "Black";
return _installedVersion >= ModVersion ? "Green" : "Red";
}
}
public string GetVersionDecoration
{
get
{
if (!IsInstalled || _installedVersion == null) return "None";
return _installedVersion >= ModVersion ? "None" : "Strikethrough";
}
}
public int GetVersionComparison
{
get
{
if (!IsInstalled || _installedVersion == null || _installedVersion < ModVersion) return -1;
if (_installedVersion > ModVersion) return 1;
return 0;
}
}
public bool CanDelete => IsInstalled;
public string CanSeeDelete => IsInstalled ? "Visible" : "Hidden";
public string PromotionText { get; set; }
public string PromotionLink { get; set; }
public string PromotionMargin
{
get
{
if (string.IsNullOrEmpty(PromotionText)) return "0";
return "0,0,5,0";
}
}
public record CategoryInfo(string Name, string Description)
{
public string Name { get; } = Name;
public string Description { get; } = Description;
}
}
private void ModsListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if ((Mods.ModListItem)Instance.ModsListView.SelectedItem == null)
{
MainWindow.Instance.InfoButton.IsEnabled = false;
}
else
{
MainWindow.Instance.InfoButton.IsEnabled = true;
}
}
private void Uninstall_Click(object sender, RoutedEventArgs e)
{
Mod mod = ((sender as System.Windows.Controls.Button).Tag as Mod);
string title = string.Format((string)FindResource("Mods:UninstallBox:Title"), mod.versions[0].name);
string body1 = string.Format((string)FindResource("Mods:UninstallBox:Body1"), mod.versions[0].name);
string body2 = string.Format((string)FindResource("Mods:UninstallBox:Body2"), mod.versions[0].name);
var result = System.Windows.Forms.MessageBox.Show($"{body1}\n{body2}", title, MessageBoxButtons.YesNo);
if (result == DialogResult.Yes)
{
UninstallModFromList(mod);
}
}
private void UninstallModFromList(Mod mod)
{
UninstallMod(mod.ListItem.InstalledModInfo);
mod.ListItem.IsInstalled = false;
mod.ListItem.InstalledVersion = null;
mod.ListItem.IsSelected = false;
RefreshModsList();
view.Refresh();
}
public void UninstallMod(Mod mod)
{
try
{
File.Delete(mod.installedFilePath);
}
catch (Exception ex)
{
System.Windows.MessageBox.Show($"{FindResource("Mods:UninstallSingleFailed")}.\n\n" + ex);
}
}
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
e.Handled = true;
}
private void Page_Loaded(object sender, RoutedEventArgs e)
{
RefreshColumns();
}
private void SearchButton_Click(object sender, RoutedEventArgs e)
{
if (SearchBar.Height == 0)
{
SearchBar.Focus();
Animate(SearchBar, 0, 16, new TimeSpan(0, 0, 0, 0, 300));
Animate(SearchText, 0, 16, new TimeSpan(0, 0, 0, 0, 300));
ModsListView.Items.Filter = new Predicate<object>(SearchFilter);
}
else
{
Animate(SearchBar, 16, 0, new TimeSpan(0, 0, 0, 0, 300));
Animate(SearchText, 16, 0, new TimeSpan(0, 0, 0, 0, 300));
ModsListView.Items.Filter = null;
}
}
private void SearchBar_TextChanged(object sender, TextChangedEventArgs e)
{
ModsListView.Items.Filter = new Predicate<object>(SearchFilter);
if (SearchBar.Text.Length > 0)
{
SearchText.Text = null;
}
else
{
SearchText.Text = (string)FindResource("Mods:SearchLabel");
}
}
private bool SearchFilter(object mod)
{
ModListItem item = mod as ModListItem;
if (item.ModName.ToLower().Contains(SearchBar.Text.ToLower())) return true;
if (item.ModDescription.ToLower().Contains(SearchBar.Text.ToLower())) return true;
if (item.ModName.ToLower().Replace(" ", string.Empty).Contains(SearchBar.Text.ToLower().Replace(" ", string.Empty))) return true;
if (item.ModDescription.ToLower().Replace(" ", string.Empty).Contains(SearchBar.Text.ToLower().Replace(" ", string.Empty))) return true;
return false;
}
private void Animate(TextBlock target, double oldHeight, double newHeight, TimeSpan duration)
{
target.Height = oldHeight;
DoubleAnimation animation = new DoubleAnimation(newHeight, duration);
target.BeginAnimation(HeightProperty, animation);
}
private void Animate(TextBox target, double oldHeight, double newHeight, TimeSpan duration)
{
target.Height = oldHeight;
DoubleAnimation animation = new DoubleAnimation(newHeight, duration);
target.BeginAnimation(HeightProperty, animation);
}
private void ModsListView_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
{
if (e.ClickCount != 2) return;
var selectedMod = ModsListView.SelectedItem as ModListItem;
if (selectedMod == null) return;
MainWindow.ShowModInfoWindow(selectedMod.ModInfo);
}
}
}

View File

@ -1,9 +1,9 @@
<Page
x:Class="ModAssistant.Pages.Options"
x:Class="VRCMelonAssistant.Pages.Options"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ModAssistant.Pages"
xmlns:local="clr-namespace:VRCMelonAssistant.Pages"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="{DynamicResource Options:Title}"
d:DesignHeight="629"
@ -106,148 +106,6 @@
Click="OpenDirButton_Click"
Content="{DynamicResource Options:OpenFolderButton}" />
<TextBlock
Grid.Row="3"
Margin="5"
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold"
Text="{DynamicResource Options:SaveSelectedMods}" />
<CheckBox
Name="SaveSelected"
Grid.Row="3"
Grid.Column="1"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Checked="SaveSelected_Checked"
IsChecked="{Binding SaveSelection, Mode=TwoWay}"
Unchecked="SaveSelected_Unchecked" />
<TextBlock
Grid.Row="4"
Margin="5"
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold"
Text="{DynamicResource Options:CheckInstalledMods}" />
<CheckBox
Name="CheckInstalled"
Grid.Row="4"
Grid.Column="1"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Checked="CheckInstalled_Checked"
IsChecked="{Binding CheckInstalledMods, Mode=TwoWay}"
Unchecked="CheckInstalled_Unchecked" />
<TextBlock
Grid.Row="5"
Margin="50,5,5,5"
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold"
Text="{DynamicResource Options:SelectInstalledMods}" />
<CheckBox
Name="SelectInstalled"
Grid.Row="5"
Grid.Column="1"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Checked="SelectInstalled_Checked"
IsChecked="{Binding SelectInstalledMods, Mode=TwoWay}"
Unchecked="SelectInstalled_Unchecked" />
<TextBlock
Grid.Row="6"
Margin="50,5,5,5"
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold"
Text="{DynamicResource Options:ReinstallInstalledMods}" />
<CheckBox
Name="ReinstallInstalled"
Grid.Row="6"
Grid.Column="1"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Checked="ReinstallInstalled_Checked"
IsChecked="{Binding ReinstallInstalledMods, Mode=TwoWay}"
Unchecked="ReinstallInstalled_Unchecked" />
<Menu
Grid.Row="8"
Grid.Column="0"
Margin="5"
Background="Transparent"
BorderBrush="Transparent">
<MenuItem
Header="{DynamicResource Options:EnableOneClickInstalls}"
StaysOpenOnClick="True"
Padding="5,0">
<MenuItem
Padding="5,0"
Header="{DynamicResource Options:BeatSaver}"
Name="BeatSaverProtocolHandler"
IsCheckable="True"
StaysOpenOnClick="True"
Checked="BeatSaverProtocolHandler_Checked"
IsChecked="{Binding BeatSaverProtocolHandlerEnabled}"
Unchecked="BeatSaverProtocolHandler_Unchecked"/>
<MenuItem
Padding="5,0"
Header="{DynamicResource Options:ModelSaber}"
Name="ModelSaberProtocolHandler"
IsCheckable="True"
StaysOpenOnClick="True"
Checked="ModelSaberProtocolHandler_Checked"
IsChecked="{Binding ModelSaberProtocolHandlerEnabled}"
Unchecked="ModelSaberProtocolHandler_Unchecked"/>
<MenuItem
Padding="5,0"
Header="{DynamicResource Options:Playlists}"
Name="PlaylistProtocolHandler"
IsCheckable="True"
StaysOpenOnClick="True"
Checked="PlaylistsProtocolHandler_Checked"
IsChecked="{Binding PlaylistsProtocolHandlerEnabled}"
Unchecked="PlaylistsProtocolHandler_Unchecked" />
<!-- <MenuItem
Padding="5,0"
Header="{DynamicResource Options:CloseWindow}"
Name="CloseWindowToggle"
IsCheckable="True"
StaysOpenOnClick="True"
Checked="CloseWindowOnFinish_Checked"
IsChecked="{Binding CloseWindowOnFinish}"
Unchecked="CloseWindowOnFinish_Unchecked" />
-->
</MenuItem>
</Menu>
<StackPanel
Grid.Row="9"
Grid.ColumnSpan="2"
Orientation="Horizontal">
<TextBlock
Margin="5,5,10,5"
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold"
Text="{DynamicResource Options:ShowOCIWindow}" />
<ComboBox
Margin="0,0,0,5"
MinWidth="80"
Name="ShowOCIWindowComboBox"
HorizontalAlignment="Stretch"
VerticalAlignment="Bottom"
SelectionChanged="ShowOCIWindowComboBox_SelectionChanged">
<ComboBoxItem Tag="Yes" Content="{DynamicResource Options:OCIWindowYes}" />
<ComboBoxItem Tag="Close" Content="{DynamicResource Options:OCIWindowClose}" />
<ComboBoxItem Tag="No" Content="{DynamicResource Options:OCIWindowNo}"/>
</ComboBox>
</StackPanel>
<StackPanel
Grid.Row="12"
Margin="5"
@ -309,27 +167,6 @@
Click="ApplicationThemeOpenThemesFolder_Click"
Content="{DynamicResource Options:OpenFolderButton}" />
<TextBlock
Grid.Row="14"
Margin="15,5,5,5"
HorizontalAlignment="Left"
FontSize="24"
FontWeight="Bold"
Text="{DynamicResource Options:Tools}" />
<StackPanel
Grid.Row="15"
Grid.ColumnSpan="4"
Margin="0"
HorizontalAlignment="Left"
Orientation="Horizontal">
<Button
Height="30"
Margin="5"
Padding="5"
Click="InstallPlaylistButton_Click"
Content="{DynamicResource Options:InstallPlaylist}" />
</StackPanel>
<TextBlock
Grid.Row="16"
Margin="15,5,5,5"
@ -343,12 +180,6 @@
Margin="0"
HorizontalAlignment="Left"
Orientation="Horizontal">
<Button
Height="30"
Margin="5"
Padding="5"
Click="OpenLogsDirButton_Click"
Content="{DynamicResource Options:OpenLogsButton}" />
<Button
x:Name="OpenAppData"
Height="30"
@ -356,13 +187,6 @@
Padding="5"
Click="OpenAppDataButton_Click"
Content="{DynamicResource Options:OpenAppDataButton}" />
<Button
x:Name="YeetBSIPA"
Height="30"
Margin="5"
Padding="5"
Click="YeetBSIPAButton_Click"
Content="{DynamicResource Options:UninstallBSIPAButton}" />
<Button
Height="30"
Margin="5"
@ -371,6 +195,21 @@
Click="YeetModsButton_Click">
<TextBlock Foreground="White" Text="{DynamicResource Options:RemoveAllModsButton}" />
</Button>
<Button
Height="30"
Margin="5"
Padding="5"
Background="{DynamicResource ButtonDangerBackground}"
Click="YeetMelonLoaderButton_Click">
<TextBlock Foreground="White" Text="{DynamicResource Options:RemoveMLButton}" />
</Button>
<Button
Height="30"
Margin="5"
Padding="5"
Click="InstallMelonLoaderButton_Click">
<TextBlock Foreground="White" Text="{DynamicResource Options:InstallMLButton}" />
</Button>
</StackPanel>
</Grid>

View File

@ -0,0 +1,185 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using Path = System.IO.Path;
namespace VRCMelonAssistant.Pages
{
/// <summary>
/// Interaction logic for Options.xaml
/// </summary>
public partial class Options : Page
{
public static Options Instance = new Options();
public string InstallDirectory { get; set; }
public string InstallType { get; set; }
public bool CloseWindowOnFinish { get; set; }
public string LogURL { get; private set; }
public Options()
{
InitializeComponent();
this.DataContext = this;
}
private void SelectDirButton_Click(object sender, RoutedEventArgs e)
{
Utils.GetManualDir();
DirectoryTextBlock.Text = InstallDirectory;
GameTypeTextBlock.Text = InstallType;
}
private void OpenDirButton_Click(object sender, RoutedEventArgs e)
{
Utils.OpenFolder(InstallDirectory);
}
private void Test_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show(Utils.GetSteamDir());
}
private void CloseWindowOnFinish_Checked(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.CloseWindowOnFinish = true;
App.CloseWindowOnFinish = true;
CloseWindowOnFinish = true;
Properties.Settings.Default.Save();
}
private void CloseWindowOnFinish_Unchecked(object sender, RoutedEventArgs e)
{
Properties.Settings.Default.CloseWindowOnFinish = false;
App.CloseWindowOnFinish = false;
CloseWindowOnFinish = false;
Properties.Settings.Default.Save();
}
private void OpenAppDataButton_Click(object sender, RoutedEventArgs e)
{
string location = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
"AppData", "LocalLow", "VRChat");
if (Directory.Exists(location))
{
Utils.OpenFolder(location);
}
else
{
MessageBox.Show((string)Application.Current.FindResource("Options:AppDataNotFound"));
}
}
private async void YeetModsButton_Click(object sender, RoutedEventArgs e)
{
string title = (string)Application.Current.FindResource("Options:YeetModsBox:Title");
string line1 = (string)Application.Current.FindResource("Options:YeetModsBox:RemoveAllMods");
string line2 = (string)Application.Current.FindResource("Options:YeetModsBox:CannotBeUndone");
var resp = System.Windows.Forms.MessageBox.Show($"{line1}\n{line2}", title, System.Windows.Forms.MessageBoxButtons.YesNo);
if (resp == System.Windows.Forms.DialogResult.Yes)
{
var modsDir = Path.Combine(App.VRChatInstallDirectory, "Mods");
Directory.Delete(modsDir, true);
var pluginsDir = Path.Combine(App.VRChatInstallDirectory, "Plugins");
Directory.Delete(pluginsDir, true);
Directory.CreateDirectory(modsDir);
Directory.CreateDirectory(pluginsDir);
MainWindow.Instance.MainText = $"{Application.Current.FindResource("Options:AllModsUninstalled")}...";
}
}
private async void YeetMelonLoaderButton_Click(object sender, RoutedEventArgs e)
{
string title = (string)Application.Current.FindResource("Options:YeetMLBox:Title");
string line1 = (string)Application.Current.FindResource("Options:YeetMLBox:RemoveAllMods");
string line2 = (string)Application.Current.FindResource("Options:YeetMLBox:CannotBeUndone");
var resp = System.Windows.Forms.MessageBox.Show($"{line1}\n{line2}", title, System.Windows.Forms.MessageBoxButtons.YesNo);
if (resp == System.Windows.Forms.DialogResult.Yes)
{
InstallHandlers.RemoveMelonLoader();
MainWindow.Instance.MainText = $"{Application.Current.FindResource("Options:MLUninstalled")}...";
}
}
private async void InstallMelonLoaderButton_Click(object sender, RoutedEventArgs e)
{
await InstallHandlers.InstallMelonLoader();
MainWindow.Instance.MainText = $"{Application.Current.FindResource("Options:MLInstalled")}...";
}
private void ApplicationThemeComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if ((sender as ComboBox).SelectedItem == null)
{
Themes.ApplyWindowsTheme();
MainWindow.Instance.MainText = (string)Application.Current.FindResource("Options:CurrentThemeRemoved");
}
else
{
Themes.ApplyTheme((sender as ComboBox).SelectedItem.ToString());
}
}
public void LanguageSelectComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if ((sender as ComboBox).SelectedItem == null)
{
// Apply default language
Console.WriteLine("Applying default language");
Languages.LoadLanguage("en");
}
else
{
// Get the matching language from the LoadedLanguages array, then try and use it
var languageName = (sender as ComboBox).SelectedItem.ToString();
var selectedLanguage = Languages.LoadedLanguages.Find(language => language.NativeName.CompareTo(languageName) == 0);
if (Languages.LoadLanguage(selectedLanguage.Name))
{
Properties.Settings.Default.LanguageCode = selectedLanguage.Name;
Properties.Settings.Default.Save();
if (Languages.FirstRun)
{
Languages.FirstRun = false;
}
else
{
Process.Start(Utils.ExePath, App.Arguments);
Application.Current.Dispatcher.Invoke(() => { Application.Current.Shutdown(); });
}
}
}
}
private void ApplicationThemeExportTemplate_Click(object sender, RoutedEventArgs e)
{
Themes.WriteThemeToDisk("Ugly Kulu-Ya-Ku");
Themes.LoadThemes();
}
private void ApplicationThemeOpenThemesFolder_Click(object sender, RoutedEventArgs e)
{
if (Directory.Exists(Themes.ThemeDirectory))
{
Utils.OpenFolder(Themes.ThemeDirectory);
}
else
{
MessageBox.Show((string)Application.Current.FindResource("Options:ThemeFolderNotFound"));
}
}
}
}

View File

@ -7,12 +7,12 @@ using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Mod Assistant")]
[assembly: AssemblyTitle("VRChat Melon Assistant")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Mod Assistant")]
[assembly: AssemblyCopyright("Copyright © Assistant 2019")]
[assembly: AssemblyProduct("VRChat Melon Assistant")]
[assembly: AssemblyCopyright("Copyright © knah 2021; based on ModAssistant © Assistant 2019-2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@ -52,4 +52,4 @@ using System.Windows;
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.18.0")]
[assembly: AssemblyFileVersion("1.1.18.0")]
[assembly: AssemblyFileVersion("1.1.18.0+vrc")]

View File

@ -8,7 +8,7 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace ModAssistant.Properties
namespace VRCMelonAssistant.Properties
{
@ -44,7 +44,7 @@ namespace ModAssistant.Properties
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ModAssistant.Properties.Resources", typeof(Resources).Assembly);
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("VRCMelonAssistant.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;

View File

@ -8,11 +8,11 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace ModAssistant.Properties {
namespace VRCMelonAssistant.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.4.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@ -47,42 +47,6 @@ namespace ModAssistant.Properties {
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool SaveSelected {
get {
return ((bool)(this["SaveSelected"]));
}
set {
this["SaveSelected"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool CheckInstalled {
get {
return ((bool)(this["CheckInstalled"]));
}
set {
this["CheckInstalled"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public string SavedMods {
get {
return ((string)(this["SavedMods"]));
}
set {
this["SavedMods"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
@ -95,42 +59,6 @@ namespace ModAssistant.Properties {
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool SelectInstalled {
get {
return ((bool)(this["SelectInstalled"]));
}
set {
this["SelectInstalled"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string GameVersion {
get {
return ((string)(this["GameVersion"]));
}
set {
this["GameVersion"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string AllGameVersions {
get {
return ((string)(this["AllGameVersions"]));
}
set {
this["AllGameVersions"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
@ -167,18 +95,6 @@ namespace ModAssistant.Properties {
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool ReinstallInstalled {
get {
return ((bool)(this["ReinstallInstalled"]));
}
set {
this["ReinstallInstalled"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
@ -202,17 +118,5 @@ namespace ModAssistant.Properties {
this["LanguageCode"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string OCIWindow {
get {
return ((string)(this["OCIWindow"]));
}
set {
this["OCIWindow"] = value;
}
}
}
}

View File

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="ModAssistant.Properties" GeneratedClassName="Settings">
<?xml version="1.0" encoding="UTF-8"?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="VRCMelonAssistant.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="InstallFolder" Type="System.String" Scope="User">
@ -8,27 +8,9 @@
<Setting Name="StoreType" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="SaveSelected" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="CheckInstalled" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="SavedMods" Type="System.String" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="Agreed" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="SelectInstalled" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="GameVersion" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="AllGameVersions" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="UpgradeRequired" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
@ -38,17 +20,12 @@
<Setting Name="SelectedTheme" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="ReinstallInstalled" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="CloseWindowOnFinish" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="LanguageCode" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="OCIWindow" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>
</SettingsFile>

View File

@ -0,0 +1,8 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:VRCMelonAssistant"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:pages="clr-namespace:VRCMelonAssistant.Pages">
</ResourceDictionary>

View File

@ -26,19 +26,23 @@
</DrawingGroup>
<DrawingImage x:Key="microchipDrawingImage" Drawing="{StaticResource microchipDrawingGroup}" />
<Geometry x:Key="loadingInnerGeometry">F1 M4000,4000z M0,0z M1833.4,1475.6C1827.5,1490 1818.3,1503.3 1805.8,1514.3 1762.7,1551.9 1697.3,1547.4 1659.7,1504.3 1628.8,1468.8 1626.4,1418.3 1650.5,1380.6L1170.6,1131.3 1336.5,1597.2C1394,1576.7 1460.7,1591.9 1503.2,1640.7 1558.7,1704.4 1552.1,1801.1 1488.4,1856.6 1473.5,1869.6 1456.7,1879.1 1439.1,1885.3L1814.9,2940.7 2747.8,2941 2875.1,2016.8 1833.4,1475.6z</Geometry>
<DrawingGroup x:Key="loadingInnerDrawingGroup" ClipGeometry="M0,0 V4000 H4000 V0 H0 Z">
<GeometryDrawing Brush="{DynamicResource LoadingIconColor}" Geometry="{StaticResource loadingInnerGeometry}" />
</DrawingGroup>
<DrawingImage x:Key="loadingInnerDrawingImage" Drawing="{DynamicResource loadingInnerDrawingGroup}" />
<Geometry x:Key="loadingMiddleGeometry">F1 M4000,4000z M0,0z M3384.4,1915.4C3385.5,2231.2 3278.1,2552.4 3057.5,2818.2 2570.1,3405.4 1714.7,3499.3 1146.9,3028 579.1,2556.7 514.1,1698.6 1001.5,1111.5 1222.2,845.7 1518.2,681 1828.8,624 1491,666 1167.9,831.7 933.3,1114.2 444.1,1703.5 525.3,2577.8 1114.5,3067 1703.7,3556.2 2578.1,3475.1 3067.3,2885.8 3301.9,2603.2 3405.2,2255.1 3384.4,1915.4z</Geometry>
<DrawingGroup x:Key="loadingMiddleDrawingGroup" ClipGeometry="M0,0 V4000 H4000 V0 H0 Z">
<GeometryDrawing Brush="{DynamicResource LoadingIconColor}" Geometry="{StaticResource loadingMiddleGeometry}" />
</DrawingGroup>
<DrawingImage x:Key="loadingMiddleDrawingImage" Drawing="{DynamicResource loadingMiddleDrawingGroup}" />
<Geometry x:Key="loadingOuterGeometry">F1 M4000,4000z M0,0z M3710.9,2000L3870,1840.9 3667.5,1638.4C3501.6,870.1 2818.3,294.3 2000.3,294.3 1182.4,294.3 499.1,870 333.2,1638.2L333,1637.9 130,1840.9 289.1,2000 130,2159.1 333,2362.1 333.2,2361.8C499.2,3130 1182.5,3705.6 2000.3,3705.6 2818.3,3705.6 3501.6,3129.8 3667.5,2361.5L3870,2159 3710.9,2000z M2000.3,3489.8C1177.5,3489.8 510.5,2822.8 510.5,2000 510.5,1177.2 1177.5,510.2 2000.3,510.2 2823.1,510.2 3490.1,1177.2 3490.1,2000 3490.1,2822.8 2823.1,3489.8 2000.3,3489.8z</Geometry>
<Geometry x:Key="loadingOuterGeometry">M53.0751762,0.2930124c-0.3906021-0.3907-1.0234032-0.3907-1.4141006,0l-4.7492027,4.7500997
c-0.0007973,0.0008001-0.0019989,0.0009999-0.002697,0.0016999c0,0-0.0009995,0.0019002-0.0017014,0.0027003L0.2929758,51.6696129
c-0.3906,0.3907013-0.3906,1.0235977,0,1.414299c7.2772999,7.2787018,16.8319988,10.9170036,26.3915997,10.9161034
c9.5555973-0.0010033,19.1151981-3.6394043,26.3906002-10.9161034c7.044899-7.0452003,10.9247971-16.4199982,10.9247971-26.3955002
C63.9999733,16.7130127,60.1200752,7.3392124,53.0751762,0.2930124z M25.684576,55.2598114
c-6.6767998-0.2311974-13.2832003-2.7827988-18.5009995-7.6531982L25.684576,29.1025124V55.2598114z M27.684576,29.1020126
l18.3379002,18.3422012c0.0578003,0.0578995,0.129097,0.0895004,0.1959991,0.1301994
c-5.2234001,4.8905983-11.8432007,7.4529991-18.5338993,7.6852989V29.1020126z M47.5670738,46.2267113
c-0.040699-0.0671997-0.0724983-0.1386986-0.1306-0.1968002L29.0985756,27.6877117h26.1591988
C55.0209732,34.6395111,52.3183746,41.1540108,47.5670738,46.2267113z M29.0990753,25.6873131L47.599575,7.1839123
c4.730999,5.0665998,7.4213982,11.5671005,7.6581993,18.5034008H29.0990753z M51.6610756,51.6696129
c-6.6669998,6.6681976-15.5371017,10.339798-24.9764996,10.339798c-9.1055012,0-17.6741009-3.4241982-24.2534008-9.6498985
l3.3382998-3.3386002c5.8694005,5.5032005,13.3885002,8.2630005,20.9151001,8.262001
c7.834898-0.0009995,15.6737995-2.9849014,21.6385975-8.9508018c5.777401-5.7775002,8.9589996-13.4643974,8.9589996-21.6436996
c0-7.8449001-2.9330978-15.230299-8.2684822-20.9188004l3.3373833-3.3378999
c6.2243004,6.5804005,9.6488991,15.1505995,9.6488991,24.2566986C61.9999733,36.129612,58.3280754,45.0014114,51.6610756,51.6696129
z</Geometry>
<DrawingGroup x:Key="loadingOuterDrawingGroup" ClipGeometry="M0,0 V4000 H4000 V0 H0 Z">
<GeometryDrawing Brush="{DynamicResource LoadingIconColor}" Geometry="{StaticResource loadingOuterGeometry}" />
</DrawingGroup>

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

View File

@ -1,5 +1,5 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="ModAssistantRepeatButton" TargetType="{x:Type RepeatButton}">
<Style x:Key="VRCMelonAssistantRepeatButton" TargetType="{x:Type RepeatButton}">
<Setter Property="BorderThickness" Value="1" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
@ -39,7 +39,7 @@
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ModAssistantSmallRepeatButton" TargetType="{x:Type RepeatButton}">
<Style x:Key="VRCMelonAssistantSmallRepeatButton" TargetType="{x:Type RepeatButton}">
<Setter Property="FrameworkElement.OverridesDefaultStyle" Value="True" />
<Setter Property="Background" Value="{DynamicResource ScrollBarBackground}" />
<Setter Property="Focusable" Value="False" />

View File

@ -25,7 +25,7 @@
Name="PART_LineUpButton"
Command="{x:Static ScrollBar.LineUpCommand}"
IsEnabled="{TemplateBinding IsMouseOver}"
Style="{DynamicResource ResourceKey=ModAssistantRepeatButton}">
Style="{DynamicResource ResourceKey=VRCMelonAssistantRepeatButton}">
<Path
Name="ArrowTop"
Margin="3,4,3,3"
@ -42,16 +42,16 @@
<RepeatButton
Background="{DynamicResource ScrollBarBackground}"
Command="{x:Static ScrollBar.PageUpCommand}"
Style="{DynamicResource ResourceKey=ModAssistantSmallRepeatButton}" />
Style="{DynamicResource ResourceKey=VRCMelonAssistantSmallRepeatButton}" />
</Track.DecreaseRepeatButton>
<Track.IncreaseRepeatButton>
<RepeatButton
Background="{DynamicResource ScrollBarBackground}"
Command="{x:Static ScrollBar.PageDownCommand}"
Style="{DynamicResource ResourceKey=ModAssistantSmallRepeatButton}" />
Style="{DynamicResource ResourceKey=VRCMelonAssistantSmallRepeatButton}" />
</Track.IncreaseRepeatButton>
<Track.Thumb>
<Thumb Background="{DynamicResource ScrollBarHandle}" Style="{DynamicResource ResourceKey=ModAssistantThumb}" />
<Thumb Background="{DynamicResource ScrollBarHandle}" Style="{DynamicResource ResourceKey=VRCMelonAssistantThumb}" />
</Track.Thumb>
</Track>
<RepeatButton
@ -59,7 +59,7 @@
Grid.Row="2"
Command="{x:Static ScrollBar.LineDownCommand}"
IsEnabled="{TemplateBinding IsMouseOver}"
Style="{DynamicResource ResourceKey=ModAssistantRepeatButton}">
Style="{DynamicResource ResourceKey=VRCMelonAssistantRepeatButton}">
<Path
Name="ArrowBottom"
Margin="3,4,3,3"
@ -130,7 +130,7 @@
Name="PART_LineLeftButton"
Command="{x:Static ScrollBar.LineLeftCommand}"
IsEnabled="{TemplateBinding IsMouseOver}"
Style="{DynamicResource ResourceKey=ModAssistantRepeatButton}">
Style="{DynamicResource ResourceKey=VRCMelonAssistantRepeatButton}">
<Path
Name="ArrowLeft"
Margin="3"
@ -146,16 +146,16 @@
<RepeatButton
Background="{DynamicResource ScrollBarBackground}"
Command="{x:Static ScrollBar.PageLeftCommand}"
Style="{DynamicResource ResourceKey=ModAssistantSmallRepeatButton}" />
Style="{DynamicResource ResourceKey=VRCMelonAssistantSmallRepeatButton}" />
</Track.DecreaseRepeatButton>
<Track.IncreaseRepeatButton>
<RepeatButton
Background="{DynamicResource ScrollBarBackground}"
Command="{x:Static ScrollBar.PageRightCommand}"
Style="{DynamicResource ResourceKey=ModAssistantSmallRepeatButton}" />
Style="{DynamicResource ResourceKey=VRCMelonAssistantSmallRepeatButton}" />
</Track.IncreaseRepeatButton>
<Track.Thumb>
<Thumb Background="{DynamicResource ScrollBarHandle}" Style="{DynamicResource ResourceKey=ModAssistantThumb}" />
<Thumb Background="{DynamicResource ScrollBarHandle}" Style="{DynamicResource ResourceKey=VRCMelonAssistantThumb}" />
</Track.Thumb>
</Track>
<RepeatButton
@ -163,7 +163,7 @@
Grid.Column="2"
Command="{x:Static ScrollBar.LineRightCommand}"
IsEnabled="{TemplateBinding IsMouseOver}"
Style="{DynamicResource ResourceKey=ModAssistantRepeatButton}">
Style="{DynamicResource ResourceKey=VRCMelonAssistantRepeatButton}">
<Path
Name="ArrowRight"
Margin="3"

View File

@ -1,5 +1,5 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="ModAssistantThumb" TargetType="{x:Type Thumb}">
<Style x:Key="VRCMelonAssistantThumb" TargetType="{x:Type Thumb}">
<Setter Property="FrameworkElement.OverridesDefaultStyle" Value="True" />
<Setter Property="IsTabStop" Value="False" />
<Setter Property="Template">

View File

@ -1,6 +1,6 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Mod Assistant Dark Theme by Caeden117 and lolPants -->
<!-- VRChat Melon Assistant Dark Theme by Caeden117 and lolPants -->
<!-- Standard Styles -->
<Color x:Key="StandardContent">#E0E0E0</Color>
@ -74,7 +74,7 @@
<GridLength x:Key="ScrollBarButtonHeight">0</GridLength>
<!-- Various important elements that need to be controlled independently -->
<SolidColorBrush x:Key="ModAssistantBackground" Color="{DynamicResource ResourceKey=StandardSecondary}" />
<SolidColorBrush x:Key="VRCMelonAssistantBackground" Color="{DynamicResource ResourceKey=StandardSecondary}" />
<SolidColorBrush x:Key="FrameBackgroundColor" Color="#CC0F0F0F" />
<SolidColorBrush x:Key="BottomStatusBarBackground" Color="{DynamicResource ResourceKey=StandardPrimary}" />
<SolidColorBrush x:Key="BottomStatusBarOutline" Color="{DynamicResource ResourceKey=StandardBorder}" />

View File

@ -1,6 +1,6 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Mod Assistant Light Pink Theme by Caeden117 -->
<!-- VRChat Melon Assistant Light Pink Theme by Caeden117 -->
<!-- Default text -->
<SolidColorBrush x:Key="TextColor" Color="#101010" />
@ -64,7 +64,7 @@
<GridLength x:Key="ScrollBarButtonHeight">0</GridLength>
<!-- Various important elements that need to be controlled independently -->
<SolidColorBrush x:Key="ModAssistantBackground" Color="#FFFAE5FF" />
<SolidColorBrush x:Key="VRCMelonAssistantBackground" Color="#FFFAE5FF" />
<SolidColorBrush x:Key="FrameBackgroundColor" Color="#CCFAE5FF" />
<SolidColorBrush x:Key="BottomStatusBarBackground" Color="#FFE288D6" />
<SolidColorBrush x:Key="DirectoryBackground" Color="#FFE288D6" />

View File

@ -1,6 +1,6 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Mod Assistant Light Theme by Caeden117 and lolPants -->
<!-- VRChat Melon Assistant Light Theme by Caeden117 and lolPants -->
<!-- Standard Styles -->
<Color x:Key="StandardContent">#101010</Color>
@ -73,7 +73,7 @@
<GridLength x:Key="ScrollBarButtonHeight">0</GridLength>
<!-- Various important elements that need to be controlled independently -->
<SolidColorBrush x:Key="ModAssistantBackground" Color="{DynamicResource ResourceKey=StandardSecondary}" />
<SolidColorBrush x:Key="VRCMelonAssistantBackground" Color="{DynamicResource ResourceKey=StandardSecondary}" />
<SolidColorBrush x:Key="FrameBackgroundColor" Color="#CCF3F3F3" />
<SolidColorBrush x:Key="BottomStatusBarBackground" Color="{DynamicResource ResourceKey=StandardPrimary}" />
<SolidColorBrush x:Key="BottomStatusBarOutline" Color="{DynamicResource ResourceKey=StandardBorder}" />

View File

@ -1,8 +1,8 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!--
Mod Assistant Ugly Kulu-Ya-Ku Theme by Assistant
Feel free to use this as a template for designing your own themes for Mod Assistant.
VRChat Melon Assistant Ugly Kulu-Ya-Ku Theme by Assistant
Feel free to use this as a template for designing your own themes for VRChat Melon Assistant.
The Color fields take in Hexadecimal RGB (#RRGGBB) or Hexadecimal ARGB (#AARRGGBB).
They can also take in common names like "Gray", "Maroon", "Magenta", "LimeGreen", etc.
@ -89,7 +89,7 @@
<GridLength x:Key="ScrollBarButtonHeight">0</GridLength>
<!-- Various important elements that need to be controlled independently -->
<SolidColorBrush x:Key="ModAssistantBackground" Color="{DynamicResource ResourceKey=StandardIcon}" />
<SolidColorBrush x:Key="VRCMelonAssistantBackground" Color="{DynamicResource ResourceKey=StandardIcon}" />
<SolidColorBrush x:Key="FrameBackgroundColor" Color="#CCFF51B6" />
<SolidColorBrush x:Key="BottomStatusBarBackground" Color="#BF489A" />
<SolidColorBrush x:Key="BottomStatusBarOutline" Color="{DynamicResource ResourceKey=StandardBorder}" />

View File

@ -1,18 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\ILRepack.MSBuild.Task.2.0.13\build\ILRepack.MSBuild.Task.props" Condition="Exists('..\packages\ILRepack.MSBuild.Task.2.0.13\build\ILRepack.MSBuild.Task.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{6A224B82-40DA-40B3-94DC-EFBEC2BDDA39}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>ModAssistant</RootNamespace>
<AssemblyName>ModAssistant</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<RootNamespace>VRCMelonAssistant</RootNamespace>
<AssemblyName>VRCMelonAssistant</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
@ -37,13 +39,50 @@
<ApplicationIcon>Resources\icon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<HintPath>..\packages\Microsoft.Build.Framework.15.9.20\lib\net46\Microsoft.Build.Framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<HintPath>..\packages\Microsoft.Build.Utilities.Core.15.9.20\lib\net46\Microsoft.Build.Utilities.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.Setup.Configuration.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<HintPath>..\packages\Microsoft.VisualStudio.Setup.Configuration.Interop.1.16.30\lib\net35\Microsoft.VisualStudio.Setup.Configuration.Interop.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Mono.Cecil, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e">
<HintPath>..\packages\Mono.Cecil.0.11.3\lib\net40\Mono.Cecil.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Mono.Cecil.Mdb, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e">
<HintPath>..\packages\Mono.Cecil.0.11.3\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Mono.Cecil.Pdb, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e">
<HintPath>..\packages\Mono.Cecil.0.11.3\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Mono.Cecil.Rocks, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e">
<HintPath>..\packages\Mono.Cecil.0.11.3\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<HintPath>..\packages\System.Collections.Immutable.1.5.0\lib\netstandard2.0\System.Collections.Immutable.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.Management" />
<Reference Include="System.Runtime.InteropServices.RuntimeInformation, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<HintPath>..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Windows.Forms" />
@ -66,12 +105,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Compile Include="Classes\External Interfaces\BeatSaver.cs" />
<Compile Include="Classes\External Interfaces\ModelSaber.cs" />
<Compile Include="Classes\External Interfaces\Playlists.cs" />
<Compile Include="Classes\External Interfaces\Utils.cs" />
<Compile Include="Classes\HardcodedCategories.cs" />
<Compile Include="Classes\Http.cs" />
<Compile Include="Classes\HyperlinkExtensions.cs" />
<Compile Include="Classes\InstallHandlers.cs" />
<Compile Include="Classes\Languages.cs" />
<Compile Include="Classes\Promotions.cs" />
<Compile Include="Classes\Diagnostics.cs" />
@ -79,17 +116,13 @@
<Compile Include="Classes\Updater.cs" />
<Compile Include="Libs\semver\SemVersion.cs" />
<Compile Include="Libs\semver\IntExtensions.cs" />
<Compile Include="OneClickStatus.xaml.cs">
<DependentUpon>OneClickStatus.xaml</DependentUpon>
<Compile Include="ModInfoWindow.xaml.cs">
<DependentUpon>ModInfoWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\Intro.xaml.cs">
<DependentUpon>Intro.xaml</DependentUpon>
</Compile>
<Compile Include="Classes\Mod.cs" />
<Page Include="Localisation\de.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localisation\en-DEBUG.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
@ -111,42 +144,7 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localisation\fr.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localisation\it.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localisation\ko.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localisation\nb.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localisation\nl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localisation\sv.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localisation\ru.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Localisation\zh.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="OneClickStatus.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ModInfoWindow.xaml" />
<Page Include="Pages\Intro.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
@ -159,7 +157,6 @@
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="Classes\OneClickInstaller.cs" />
<Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
@ -184,6 +181,7 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Resources\AppResources.xaml" />
<Page Include="Resources\Icons.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
@ -248,10 +246,6 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Themes\BSMG.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\Dark.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
@ -294,6 +288,7 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>PublicSettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
@ -305,8 +300,20 @@
<ItemGroup>
<Resource Include="Resources\icon.ico" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Themes\BSMG\Sidebar.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\ILRepack.MSBuild.Task.2.0.13\build\ILRepack.MSBuild.Task.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILRepack.MSBuild.Task.2.0.13\build\ILRepack.MSBuild.Task.props'))" />
</Target>
<Target Name="ILRepack" AfterTargets="Build">
<PropertyGroup>
<WorkingDirectory>$(MSBuildThisFileDirectory)bin\$(Configuration)\$(TargetFramework)</WorkingDirectory>
</PropertyGroup>
<ILRepack OutputType="$(OutputType)" MainAssembly="$(AssemblyName).exe" OutputAssembly="$(AssemblyName).exe" InputAssemblies="$(WorkingDirectory)\Mono.Cecil.dll" WilcardInputAssemblies="true" WorkingDirectory="$(WorkingDirectory)" />
</Target>
</Project>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="ILRepack.MSBuild.Task" version="2.0.13" targetFramework="net48" />
<package id="Microsoft.Build.Framework" version="15.9.20" targetFramework="net48" />
<package id="Microsoft.Build.Utilities.Core" version="15.9.20" targetFramework="net48" />
<package id="Microsoft.VisualStudio.Setup.Configuration.Interop" version="1.16.30" targetFramework="net48" developmentDependency="true" />
<package id="Mono.Cecil" version="0.11.3" targetFramework="net461" />
<package id="System.Collections.Immutable" version="1.5.0" targetFramework="net48" />
<package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="net48" />
</packages>