Unverified Commit 9be7b482 authored by piratesephiroth's avatar piratesephiroth Committed by GitHub
Browse files

Merge pull request #38 from V10lator/UWU

Use UWUVCIs image repository
parents fea4a821 eb857708
......@@ -20,7 +20,7 @@
<value />
</setting>
<setting name="BannersRepository" serializeAs="String">
<value>https://raw.githubusercontent.com/cucholix/wiivc-bis/master/</value>
<value>https://raw.githubusercontent.com/UWUVCI-PRIME/UWUVCI-IMAGES/master/</value>
</setting>
</TeconMoon_s_WiiVC_Injector.Properties.Settings>
</userSettings>
......
......@@ -178,13 +178,13 @@ namespace TeconMoon_s_WiiVC_Injector
public void DownloadFromRepo(string cucholixRepoID)
{
var client = new WebClient();
IconPreviewBox.Load(Properties.Settings.Default.BannersRepository + SystemType + "/image/" + cucholixRepoID + "/iconTex.png");
IconPreviewBox.Load(Properties.Settings.Default.BannersRepository + SystemType + "/" + cucholixRepoID + "/iconTex.png");
if (File.Exists(Path.GetTempPath() + "WiiVCInjector\\SOURCETEMP\\iconTex.png")) { File.Delete(Path.GetTempPath() + "WiiVCInjector\\SOURCETEMP\\iconTex.png"); }
client.DownloadFile(IconPreviewBox.ImageLocation, Path.GetTempPath() + "WiiVCInjector\\SOURCETEMP\\iconTex.png");
IconSourceDirectory.Text = "iconTex.png downloaded from Cucholix's Repo";
IconSourceDirectory.ForeColor = Color.Black;
FlagIconSpecified = true;
BannerPreviewBox.Load(Properties.Settings.Default.BannersRepository + SystemType + "/image/" + cucholixRepoID + "/bootTvTex.png");
BannerPreviewBox.Load(Properties.Settings.Default.BannersRepository + SystemType + "/" + cucholixRepoID + "/bootTvTex.png");
if (File.Exists(Path.GetTempPath() + "WiiVCInjector\\SOURCETEMP\\bootTvTex.png")) { File.Delete(Path.GetTempPath() + "WiiVCInjector\\SOURCETEMP\\bootTvTex.png"); }
client.DownloadFile(BannerPreviewBox.ImageLocation, Path.GetTempPath() + "WiiVCInjector\\SOURCETEMP\\bootTvTex.png");
BannerSourceDirectory.Text = "bootTvTex.png downloaded from Cucholix's Repo";
......@@ -1002,7 +1002,7 @@ namespace TeconMoon_s_WiiVC_Injector
IEnumerable<string> ids = GameTdb.GetAlternativeIds(cucholixRepoID);
foreach (var id in ids)
{
if (RemoteFileExists(Properties.Settings.Default.BannersRepository + SystemType + "/image/" + id + "/iconTex.png"))
if (RemoteFileExists(Properties.Settings.Default.BannersRepository + SystemType + "/" + id + "/iconTex.png"))
{
DownloadFromRepo(id);
return true;
......
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
......@@ -12,7 +12,7 @@ namespace TeconMoon_s_WiiVC_Injector.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.5.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.7.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
......@@ -61,7 +61,7 @@ namespace TeconMoon_s_WiiVC_Injector.Properties {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/")]
[global::System.Configuration.DefaultSettingValueAttribute("https://raw.githubusercontent.com/UWUVCI-PRIME/UWUVCI-IMAGES/master/")]
public string BannersRepository {
get {
return ((string)(this["BannersRepository"]));
......
......@@ -12,7 +12,7 @@
<Value Profile="(Default)" />
</Setting>
<Setting Name="BannersRepository" Type="System.String" Scope="User">
<Value Profile="(Default)">https://raw.githubusercontent.com/cucholix/wiivc-bis/master/</Value>
<Value Profile="(Default)">https://raw.githubusercontent.com/UWUVCI-PRIME/UWUVCI-IMAGES/master/</Value>
</Setting>
</Settings>
</SettingsFile>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment