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 @@ ...@@ -20,7 +20,7 @@
<value /> <value />
</setting> </setting>
<setting name="BannersRepository" serializeAs="String"> <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> </setting>
</TeconMoon_s_WiiVC_Injector.Properties.Settings> </TeconMoon_s_WiiVC_Injector.Properties.Settings>
</userSettings> </userSettings>
......
...@@ -178,13 +178,13 @@ namespace TeconMoon_s_WiiVC_Injector ...@@ -178,13 +178,13 @@ namespace TeconMoon_s_WiiVC_Injector
public void DownloadFromRepo(string cucholixRepoID) public void DownloadFromRepo(string cucholixRepoID)
{ {
var client = new WebClient(); 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"); } 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"); client.DownloadFile(IconPreviewBox.ImageLocation, Path.GetTempPath() + "WiiVCInjector\\SOURCETEMP\\iconTex.png");
IconSourceDirectory.Text = "iconTex.png downloaded from Cucholix's Repo"; IconSourceDirectory.Text = "iconTex.png downloaded from Cucholix's Repo";
IconSourceDirectory.ForeColor = Color.Black; IconSourceDirectory.ForeColor = Color.Black;
FlagIconSpecified = true; 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"); } 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"); client.DownloadFile(BannerPreviewBox.ImageLocation, Path.GetTempPath() + "WiiVCInjector\\SOURCETEMP\\bootTvTex.png");
BannerSourceDirectory.Text = "bootTvTex.png downloaded from Cucholix's Repo"; BannerSourceDirectory.Text = "bootTvTex.png downloaded from Cucholix's Repo";
...@@ -1002,7 +1002,7 @@ namespace TeconMoon_s_WiiVC_Injector ...@@ -1002,7 +1002,7 @@ namespace TeconMoon_s_WiiVC_Injector
IEnumerable<string> ids = GameTdb.GetAlternativeIds(cucholixRepoID); IEnumerable<string> ids = GameTdb.GetAlternativeIds(cucholixRepoID);
foreach (var id in ids) 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); DownloadFromRepo(id);
return true; return true;
......
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // Dieser Code wurde von einem Tool generiert.
// Runtime Version:4.0.30319.42000 // Laufzeitversion:4.0.30319.42000
// //
// Changes to this file may cause incorrect behavior and will be lost if // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// the code is regenerated. // der Code erneut generiert wird.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
...@@ -12,7 +12,7 @@ namespace TeconMoon_s_WiiVC_Injector.Properties { ...@@ -12,7 +12,7 @@ namespace TeconMoon_s_WiiVC_Injector.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [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 { internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
...@@ -61,7 +61,7 @@ namespace TeconMoon_s_WiiVC_Injector.Properties { ...@@ -61,7 +61,7 @@ namespace TeconMoon_s_WiiVC_Injector.Properties {
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [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 { public string BannersRepository {
get { get {
return ((string)(this["BannersRepository"])); return ((string)(this["BannersRepository"]));
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<Value Profile="(Default)" /> <Value Profile="(Default)" />
</Setting> </Setting>
<Setting Name="BannersRepository" Type="System.String" Scope="User"> <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> </Setting>
</Settings> </Settings>
</SettingsFile> </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