mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-10 05:34:13 +00:00
images
This commit is contained in:
parent
43807cbb86
commit
37d4b2154d
20 changed files with 541 additions and 142 deletions
|
@ -23,6 +23,7 @@ using System.Threading;
|
|||
using System.Windows.Threading;
|
||||
using System.Diagnostics;
|
||||
using Microsoft.WindowsAPICodePack.Dialogs;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace UWUVCI_AIO_WPF
|
||||
{
|
||||
|
@ -2134,18 +2135,261 @@ namespace UWUVCI_AIO_WPF
|
|||
|
||||
return true;
|
||||
}
|
||||
public string getInternalName(string OpenGame, bool gc)
|
||||
public void getBootIMGNDS(string rom)
|
||||
{
|
||||
string linkbase = "https://raw.githubusercontent.com/Flumpster/UWUVCI-Images/master/";
|
||||
string repoid = "";
|
||||
string SystemType = "nds/";
|
||||
IMG_Message img = null;
|
||||
using (var fs = new FileStream(rom,
|
||||
FileMode.Open,
|
||||
FileAccess.Read))
|
||||
{
|
||||
byte[] procode = new byte[6];
|
||||
fs.Seek(0x3A, SeekOrigin.Begin);
|
||||
fs.Read(procode, 0, 6);
|
||||
repoid = ByteArrayToString(procode);
|
||||
Regex rgx = new Regex("[^a-zA-Z0-9 -]");
|
||||
repoid = rgx.Replace(repoid, "");
|
||||
Console.WriteLine("prodcode before scramble: " + repoid);
|
||||
|
||||
fs.Close();
|
||||
Console.WriteLine("prodcode after scramble: " + repoid);
|
||||
}
|
||||
if (CheckForInternetConnectionWOWarning())
|
||||
{
|
||||
if (RemoteFileExists(linkbase + SystemType + repoid + "/iconTex.png") == true)
|
||||
{
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "E" + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "E";
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "P" + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "P";
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "J" + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "J";
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
repoid = new string(new char[] { repoid[0], repoid[2], repoid[1], repoid[3] });
|
||||
if (RemoteFileExists(linkbase + SystemType + repoid + "/iconTex.png") == true)
|
||||
{
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "E" + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "E";
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "P" + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "P";
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "J" + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "J";
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public void getBootIMGN64(string rom)
|
||||
{
|
||||
string linkbase = "https://raw.githubusercontent.com/Flumpster/UWUVCI-Images/master/";
|
||||
string repoid = "";
|
||||
string SystemType = "n64/";
|
||||
IMG_Message img = null;
|
||||
using (var fs = new FileStream(rom,
|
||||
FileMode.Open,
|
||||
FileAccess.Read))
|
||||
{
|
||||
byte[] procode = new byte[6];
|
||||
fs.Seek(0x3A, SeekOrigin.Begin);
|
||||
fs.Read(procode, 0, 6);
|
||||
repoid = ByteArrayToString(procode);
|
||||
Regex rgx = new Regex("[^a-zA-Z0-9 -]");
|
||||
repoid = rgx.Replace(repoid, "");
|
||||
Console.WriteLine("prodcode before scramble: "+repoid);
|
||||
|
||||
fs.Close();
|
||||
Console.WriteLine("prodcode after scramble: "+repoid);
|
||||
}
|
||||
if (CheckForInternetConnectionWOWarning())
|
||||
{
|
||||
if (RemoteFileExists(linkbase + SystemType + repoid + "/iconTex.png") == true)
|
||||
{
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "E" + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "E" ;
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "P" + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "P" ;
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "J" + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "J" ;
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
repoid = new string(new char[] { repoid[0], repoid[2], repoid[1], repoid[3] });
|
||||
if (RemoteFileExists(linkbase + SystemType + repoid + "/iconTex.png") == true)
|
||||
{
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "E" + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "E";
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "P" + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "P";
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "J" + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "J";
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
}
|
||||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
private string ByteArrayToString(byte[] arr)
|
||||
{
|
||||
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
|
||||
return enc.GetString(arr);
|
||||
}
|
||||
public string getInternalWIIGCNName(string OpenGame, bool gc)
|
||||
{
|
||||
//string linkbase = "https://raw.githubusercontent.com/Flumpster/wiivc-bis/master/";
|
||||
string linkbase = "https://raw.githubusercontent.com/Flumpster/UWUVCI-Images/master/";
|
||||
string ret = "";
|
||||
try
|
||||
{
|
||||
using (var reader = new BinaryReader(File.OpenRead(OpenGame)))
|
||||
{
|
||||
string TempString = "";
|
||||
string SystemType = "wii";
|
||||
string SystemType = "wii/";
|
||||
if (gc)
|
||||
{
|
||||
SystemType = "gcn";
|
||||
SystemType = "gcn/";
|
||||
}
|
||||
IMG_Message img;
|
||||
reader.BaseStream.Position = 0x00;
|
||||
|
@ -2164,11 +2408,12 @@ namespace UWUVCI_AIO_WPF
|
|||
reader.BaseStream.Position = 0x200;
|
||||
while ((int)(TempChar = reader.ReadChar()) != 0) TempString = TempString + TempChar;
|
||||
string repoid = TempString;
|
||||
|
||||
if (CheckForInternetConnectionWOWarning())
|
||||
{
|
||||
if (RemoteFileExists("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/iconTex.png") == true)
|
||||
if (RemoteFileExists(linkbase + SystemType + repoid + "/iconTex.png") == true)
|
||||
{
|
||||
img = new IMG_Message("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/iconTex.png", "https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/bootTvTex.png");
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
|
@ -2176,10 +2421,10 @@ namespace UWUVCI_AIO_WPF
|
|||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid.Substring(0, 3) + "E" + repoid.Substring(4, 2) + "/iconTex.png") == true)
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "E" + repoid.Substring(4, 2) + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "E" + repoid.Substring(4, 2);
|
||||
img = new IMG_Message("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/iconTex.png", "https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/bootTvTex.png");
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
|
@ -2187,10 +2432,10 @@ namespace UWUVCI_AIO_WPF
|
|||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid.Substring(0, 3) + "P" + repoid.Substring(4, 2) + "/iconTex.png") == true)
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "P" + repoid.Substring(4, 2) + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "P" + repoid.Substring(4, 2);
|
||||
img = new IMG_Message("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/iconTex.png", "https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/bootTvTex.png");
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
|
@ -2198,10 +2443,10 @@ namespace UWUVCI_AIO_WPF
|
|||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid.Substring(0, 3) + "J" + repoid.Substring(4, 2) + "/iconTex.png") == true)
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "J" + repoid.Substring(4, 2) + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "J" + repoid.Substring(4, 2);
|
||||
img = new IMG_Message("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/iconTex.png", "https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/bootTvTex.png");
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
|
@ -2227,9 +2472,9 @@ namespace UWUVCI_AIO_WPF
|
|||
|
||||
if (CheckForInternetConnectionWOWarning())
|
||||
{
|
||||
if (RemoteFileExists("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/iconTex.png") == true)
|
||||
if (RemoteFileExists(linkbase + SystemType + repoid + "/iconTex.png") == true)
|
||||
{
|
||||
img = new IMG_Message("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/iconTex.png", "https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/bootTvTex.png");
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
|
@ -2237,10 +2482,10 @@ namespace UWUVCI_AIO_WPF
|
|||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid.Substring(0, 3) + "E" + repoid.Substring(4, 2) + "/iconTex.png") == true)
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "E" + repoid.Substring(4, 2) + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "E" + repoid.Substring(4, 2);
|
||||
img = new IMG_Message("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/iconTex.png", "https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/bootTvTex.png");
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
|
@ -2248,10 +2493,10 @@ namespace UWUVCI_AIO_WPF
|
|||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid.Substring(0, 3) + "P" + repoid.Substring(4, 2) + "/iconTex.png") == true)
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "P" + repoid.Substring(4, 2) + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "P" + repoid.Substring(4, 2);
|
||||
img = new IMG_Message("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/iconTex.png", "https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/bootTvTex.png");
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
|
@ -2259,10 +2504,10 @@ namespace UWUVCI_AIO_WPF
|
|||
catch (Exception) { }
|
||||
img.ShowDialog();
|
||||
}
|
||||
else if (RemoteFileExists("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid.Substring(0, 3) + "J" + repoid.Substring(4, 2) + "/iconTex.png") == true)
|
||||
else if (RemoteFileExists(linkbase + SystemType + repoid.Substring(0, 3) + "J" + repoid.Substring(4, 2) + "/iconTex.png") == true)
|
||||
{
|
||||
repoid = repoid.Substring(0, 3) + "J" + repoid.Substring(4, 2);
|
||||
img = new IMG_Message("https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/iconTex.png", "https://raw.githubusercontent.com/cucholix/wiivc-bis/master/" + SystemType + "/image/" + repoid + "/bootTvTex.png");
|
||||
img = new IMG_Message(linkbase + SystemType + repoid + "/iconTex.png", linkbase + SystemType + repoid + "/bootTvTex.png");
|
||||
try
|
||||
{
|
||||
img.Owner = mw;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<TextBlock x:Name="tbTK" HorizontalAlignment="Center" Margin="10,93,10,0" TextWrapping="Wrap" Text="TitleKey missing" VerticalAlignment="Top" TextAlignment="Center" Width="363" FontSize="20" Foreground="DarkRed"/>
|
||||
<TextBlock x:Name="tbCK" HorizontalAlignment="Center" Margin="10,128,10,0" TextWrapping="Wrap" Text="CommonKey missing" VerticalAlignment="Top" TextAlignment="Center" Width="363" FontSize="20" Foreground="DarkRed"/>
|
||||
<Button x:Name="btnDwnlnd" Content="Download" HorizontalAlignment="Left" Margin="272,184,0,0" VerticalAlignment="Top" Width="111" IsEnabled="False" Click="btnDwnlnd_Click"/>
|
||||
<Button x:Name="TK" Content="Enter TKey" HorizontalAlignment="Left" Margin="151,184,0,0" VerticalAlignment="Top" Width="102" Click="btnDwnlnd_Copy_Click" Visibility="Hidden" />
|
||||
<Button x:Name="TK" Content="Enter TKey" HorizontalAlignment="Left" Margin="159,184,0,0" VerticalAlignment="Top" Width="102" Click="btnDwnlnd_Copy_Click" Visibility="Hidden" />
|
||||
<Button x:Name="CK" Content="Enter CKey" HorizontalAlignment="Left" Margin="44,184,0,0" VerticalAlignment="Top" Width="102" Click="btnDwnlnd_Copy1_Click" Visibility="Hidden" />
|
||||
|
||||
</Grid>
|
||||
|
|
|
@ -24,17 +24,17 @@
|
|||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,72,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
<TextBox Name="ini" materialDesign:HintAssist.Hint="INI PATH (LEAVE EMPTY FOR BLANK INI)" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,121,157,317" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.N64Stuff.INIPath}" Height="45"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,133,0,0" VerticalAlignment="Top" Width="127" Click="Set_IniPath"/>
|
||||
<StackPanel Margin="10,20,244,436" Orientation="Horizontal" ToolTip="This may not work with every Game">
|
||||
<StackPanel Margin="10,20,244,436" Orientation="Horizontal" >
|
||||
|
||||
<Label Content="DarkFilter:" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="14" Width="102"/>
|
||||
<RadioButton Content="Keep" Width="78" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" GroupName="df" IsChecked="True" Click="RadioButton_Click"/>
|
||||
|
||||
<RadioButton x:Name="rbRDF" Width="111" Content="Remove" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" GroupName="df" Click="rbRDF_Click"/>
|
||||
</StackPanel>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="454,194,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="icoIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="icoIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="454,240,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="tvIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="tvIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="453,285,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="drcIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="drcIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="453,330,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="logIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="logIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
</Grid>
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,193,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="icoIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="icoIMG_MouseLeftButtonDown" Visibility="Hidden" />
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,239,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="tvIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="tvIMG_MouseLeftButtonDown" Visibility="Hidden" />
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,283,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="drcIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="drcIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,328,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="logIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="logIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
</Grid>
|
||||
|
||||
</Page>
|
||||
|
|
|
@ -44,7 +44,11 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
Injection.ToolTip = "Changing the extension of a ROM may result in a faulty inject.\nWe will not give any support in such cases";
|
||||
|
||||
}
|
||||
|
||||
public void imgpath(string icon, string tv)
|
||||
{
|
||||
ic.Text = icon;
|
||||
this.tv.Text = tv;
|
||||
}
|
||||
|
||||
private void Set_Rom_Path(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
@ -58,6 +62,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
mvm.CanInject = true;
|
||||
|
||||
}
|
||||
mvm.getBootIMGN64(mvm.RomPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -109,32 +114,44 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
}
|
||||
public void getInfoFromConfig()
|
||||
{
|
||||
rp.Text = "";
|
||||
if(rp != null)rp.Text = "";
|
||||
mvm.RomPath = "";
|
||||
mvm.RomSet = false;
|
||||
mvm.gc2rom = "";
|
||||
tv.Text = mvm.GameConfiguration.TGATv.ImgPath;
|
||||
if (tv.Text.Length > 0)
|
||||
if (tv != null)
|
||||
{
|
||||
tvIMG.Visibility = Visibility.Visible;
|
||||
tv.Text = mvm.GameConfiguration.TGATv.ImgPath;
|
||||
if (tv.Text.Length > 0)
|
||||
{
|
||||
tvIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
ic.Text = mvm.GameConfiguration.TGAIco.ImgPath;
|
||||
if (ic.Text.Length > 0)
|
||||
if (ic != null)
|
||||
{
|
||||
icoIMG.Visibility = Visibility.Visible;
|
||||
ic.Text = mvm.GameConfiguration.TGAIco.ImgPath;
|
||||
if (ic.Text.Length > 0)
|
||||
{
|
||||
icoIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
drc.Text = mvm.GameConfiguration.TGADrc.ImgPath;
|
||||
if (drc.Text.Length > 0)
|
||||
if (drc != null)
|
||||
{
|
||||
drcIMG.Visibility = Visibility.Visible;
|
||||
drc.Text = mvm.GameConfiguration.TGADrc.ImgPath;
|
||||
if (drc.Text.Length > 0)
|
||||
{
|
||||
drcIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
log.Text = mvm.GameConfiguration.TGALog.ImgPath;
|
||||
if (log.Text.Length > 0)
|
||||
if (log != null)
|
||||
{
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
log.Text = mvm.GameConfiguration.TGALog.ImgPath;
|
||||
if (log.Text.Length > 0)
|
||||
{
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
gn.Text = mvm.GameConfiguration.GameName;
|
||||
ini.Text = mvm.GameConfiguration.N64Stuff.INIPath;
|
||||
if (gn != null) gn.Text = mvm.GameConfiguration.GameName;
|
||||
if (ini != null) ini.Text = mvm.GameConfiguration.N64Stuff.INIPath;
|
||||
|
||||
}
|
||||
private void Set_TvTex(object sender, RoutedEventArgs e)
|
||||
|
@ -250,22 +267,22 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
}
|
||||
private void icoIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new ICOSHOW(ic.Text).ShowDialog());
|
||||
new ICOSHOW(ic.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void tvIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new TDRSHOW(tv.Text).ShowDialog());
|
||||
new TDRSHOW(tv.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void drcIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new TDRSHOW(drc.Text).ShowDialog());
|
||||
new TDRSHOW(drc.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void logIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new LOGSHOW(log.Text).ShowDialog());
|
||||
new LOGSHOW(log.Text).ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,16 +22,16 @@
|
|||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,284,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,193,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,72,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
<StackPanel Margin="10,20,244,436" Orientation="Horizontal" ToolTip="This may not work with every Game">
|
||||
<StackPanel Margin="10,20,244,436" Orientation="Horizontal" ToolTip="Patches Pokemon GBA games to work with GBA VC">
|
||||
|
||||
<Label Content="PokePatch:" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="14" Width="102"/>
|
||||
<RadioButton Content="Yes" Width="78" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" GroupName="df" Click="RadioButton_Click"/>
|
||||
|
||||
<RadioButton x:Name="rbRDF" Width="111" Content="No" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" GroupName="df" Click="rbRDF_Click" IsChecked="True"/>
|
||||
</StackPanel>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="454,194,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="icoIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="icoIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="454,240,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="tvIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="tvIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="453,285,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="drcIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="drcIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="453,330,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="logIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="logIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,193,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="icoIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="icoIMG_MouseLeftButtonDown" Visibility="Hidden" />
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,239,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="tvIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="tvIMG_MouseLeftButtonDown" Visibility="Hidden" />
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,283,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="drcIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="drcIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,328,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="logIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="logIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -239,22 +239,22 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
}
|
||||
private void icoIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new ICOSHOW(ic.Text).ShowDialog());
|
||||
new ICOSHOW(ic.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void tvIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new TDRSHOW(tv.Text).ShowDialog());
|
||||
new TDRSHOW(tv.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void drcIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new TDRSHOW(drc.Text).ShowDialog());
|
||||
new TDRSHOW(drc.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void logIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new LOGSHOW(log.Text).ShowDialog());
|
||||
new LOGSHOW(log.Text).ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
|
||||
<Grid DataContext="{StaticResource mvm}">
|
||||
<TextBox materialDesign:HintAssist.Hint="ROM PATH" Name="rp" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,60,157,378" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding RomPath}"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="ICONTEX" Name="ic" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 32 and a Dimension of 128x128" Margin="10,181,157,257" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGAIco.ImgPath}" Cursor="Help"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="BOOTDRCTEX (OPTIONAL)" Name="drc" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 854x480" Margin="10,272,157,166" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGADrc.ImgPath}" Cursor="Help"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="BOOTTVTEX" Name="tv" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 1280x720" Margin="10,227,157,211" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGATv.ImgPath}" Cursor="Help"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="BOOTLOGOTEX (OPTIONAL)" ToolTip="Needs a BitDepth of 32 and a Dimension of 170x42" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,121" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Cursor="Help" Text="{Binding GameConfiguration.TGALog.ImgPath}"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="ICONTEX" Name="ic" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 32 and a Dimension of 128x128" Margin="10,181,157,257" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGAIco.ImgPath}" Cursor="Help" TextChanged="ic_TextChanged"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="BOOTDRCTEX (OPTIONAL)" Name="drc" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 854x480" Margin="10,272,157,166" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGADrc.ImgPath}" Cursor="Help" TextChanged="drc_TextChanged"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="BOOTTVTEX" Name="tv" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 1280x720" Margin="10,227,157,211" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGATv.ImgPath}" Cursor="Help" TextChanged="tv_TextChanged"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="BOOTLOGOTEX (OPTIONAL)" ToolTip="Needs a BitDepth of 32 and a Dimension of 170x42" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,121" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Cursor="Help" Text="{Binding GameConfiguration.TGALog.ImgPath}" TextChanged="log_TextChanged"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,369,157,69" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" Text="{Binding GameConfiguration.GameName}" Name="gn" KeyUp="gn_KeyUp" MaxLength="250"/>
|
||||
<Button Content="Inject" HorizontalAlignment="Left" Margin="506,413,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,329,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
|
||||
|
@ -25,16 +25,16 @@
|
|||
|
||||
<TextBox Name="gc2" materialDesign:HintAssist.Hint="GAMECUBE DISC 2 (LEAVE BLANK IF NONE)" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,121,157,317" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding gc2rom}" Height="45"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,133,0,0" VerticalAlignment="Top" Width="127" Click="Button_Click"/>
|
||||
<StackPanel Margin="10,20,244,436" Orientation="Horizontal" ToolTip="This may not work with every Game">
|
||||
<StackPanel Margin="10,20,244,436" Orientation="Horizontal" >
|
||||
|
||||
<Label Content="Configuration:" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="14" Width="102"/>
|
||||
<CheckBox Content="Force 4:3" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="98" Click="CheckBox_Click" ToolTip="If checked Games will run in 4:3 instead of 16:9"/>
|
||||
<CheckBox Content="Use GamePad" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="98" Click="CheckBox_Click_1" ToolTip="If checked the GamePad will be used as a controller" Name="gp"/>
|
||||
</StackPanel>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="454,194,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="icoIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="icoIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="454,240,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="tvIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="tvIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="453,285,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="drcIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="drcIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="453,330,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="logIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="logIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
</Grid>
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,193,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="icoIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="icoIMG_MouseLeftButtonDown" Visibility="Hidden" />
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,239,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="tvIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="tvIMG_MouseLeftButtonDown" Visibility="Hidden" />
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,283,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="drcIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="drcIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,328,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="logIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="logIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
</Grid>
|
||||
|
||||
</Page>
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
mvm.CanInject = true;
|
||||
|
||||
}
|
||||
string rom = mvm.getInternalName(mvm.RomPath, true);
|
||||
string rom = mvm.getInternalWIIGCNName(mvm.RomPath, true);
|
||||
Regex reg = new Regex("[*'\",_&#^@:;?!<>|µ~#°²³´`éⓇ©™]");
|
||||
gn.Text = reg.Replace(rom, string.Empty);
|
||||
mvm.GameConfiguration.GameName = reg.Replace(rom, string.Empty);
|
||||
|
@ -271,22 +271,71 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
}
|
||||
private void icoIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new ICOSHOW(ic.Text).ShowDialog());
|
||||
new ICOSHOW(ic.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void tvIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new TDRSHOW(tv.Text).ShowDialog());
|
||||
new TDRSHOW(tv.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void drcIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new TDRSHOW(drc.Text).ShowDialog());
|
||||
new TDRSHOW(drc.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void logIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new LOGSHOW(log.Text).ShowDialog());
|
||||
new LOGSHOW(log.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void ic_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (ic.Text.Length > 0)
|
||||
{
|
||||
icoIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
icoIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}
|
||||
|
||||
private void drc_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (drc.Text.Length > 0)
|
||||
{
|
||||
drcIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
drcIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}
|
||||
|
||||
private void tv_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (tv.Text.Length > 0)
|
||||
{
|
||||
tvIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
tvIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}
|
||||
|
||||
private void log_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (log.Text.Length > 0)
|
||||
{
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,14 +22,14 @@
|
|||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,284,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,193,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,72,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
<StackPanel Margin="10,20,244,436" Orientation="Horizontal" ToolTip="This may not work with every Game">
|
||||
<StackPanel Margin="10,20,244,436" Orientation="Horizontal" ToolTip="If checked alows you to inject TurboGrafx-CD ROMs">
|
||||
|
||||
<Label Content="ROM Type:" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="14" Width="102"/>
|
||||
<CheckBox Content="TurboGrafxCD" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="98" Click="CheckBox_Click" ToolTip="If checked alows you to inject TurboGrafx-CD ROMs"/>
|
||||
<CheckBox Content="TurboGrafxCD" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="98" Click="CheckBox_Click" />
|
||||
</StackPanel>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="454,194,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="icoIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="icoIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="454,240,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="tvIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="tvIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="453,285,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="drcIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="drcIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="453,330,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="logIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="logIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,193,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="icoIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="icoIMG_MouseLeftButtonDown" Visibility="Hidden" />
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,239,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="tvIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="tvIMG_MouseLeftButtonDown" Visibility="Hidden" />
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,283,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="drcIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="drcIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,328,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="logIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="logIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -255,22 +255,22 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
|
||||
private void icoIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new ICOSHOW(ic.Text).ShowDialog());
|
||||
new ICOSHOW(ic.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void tvIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new TDRSHOW(tv.Text).ShowDialog());
|
||||
new TDRSHOW(tv.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void drcIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new TDRSHOW(drc.Text).ShowDialog());
|
||||
new TDRSHOW(drc.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void logIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new LOGSHOW(log.Text).ShowDialog());
|
||||
new LOGSHOW(log.Text).ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,284,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,193,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,72,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="454,194,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="icoIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="icoIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="454,240,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="tvIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="tvIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="453,285,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="drcIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="drcIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="453,330,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="logIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="logIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,193,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="icoIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="icoIMG_MouseLeftButtonDown" Visibility="Hidden" />
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,239,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="tvIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="tvIMG_MouseLeftButtonDown" Visibility="Hidden" />
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,283,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="drcIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="drcIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,328,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="logIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="logIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -44,7 +44,11 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public void imgpath(string icon, string tv)
|
||||
{
|
||||
ic.Text = icon;
|
||||
this.tv.Text = tv;
|
||||
}
|
||||
private void Set_Rom_Path(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string path = mvm.GetFilePath(true, false);
|
||||
|
@ -227,22 +231,22 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
}
|
||||
private void icoIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new ICOSHOW(ic.Text).ShowDialog());
|
||||
new ICOSHOW(ic.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void tvIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new TDRSHOW(tv.Text).ShowDialog());
|
||||
new TDRSHOW(tv.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void drcIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new TDRSHOW(drc.Text).ShowDialog());
|
||||
new TDRSHOW(drc.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void logIMG_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Task.Run(() => new LOGSHOW(log.Text).ShowDialog());
|
||||
new LOGSHOW(log.Text).ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
|
||||
<Grid DataContext="{StaticResource mvm}">
|
||||
<TextBox materialDesign:HintAssist.Hint="ROM PATH" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,60,157,378" Background="{x:Null}" Name="rp" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding RomPath}"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="ICONTEX" x:Name="ic" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 32 and a Dimension of 128x128" Margin="10,181,157,257" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGAIco.ImgPath}" Cursor="Help"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="BOOTDRCTEX (OPTIONAL)" x:Name="drc" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 854x480" Margin="10,272,157,166" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGADrc.ImgPath}" Cursor="Help"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="BOOTTVTEX" x:Name="tv" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 1280x720" Margin="10,227,157,211" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGATv.ImgPath}" Cursor="Help"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="BOOTLOGOTEX (OPTIONAL)" ToolTip="Needs a BitDepth of 32 and a Dimension of 170x42" x:Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,121" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Cursor="Help" Text="{Binding GameConfiguration.TGALog.ImgPath}"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="ICONTEX" x:Name="ic" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 32 and a Dimension of 128x128" Margin="10,181,157,257" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGAIco.ImgPath}" Cursor="Help" TextChanged="ic_TextChanged"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="BOOTDRCTEX (OPTIONAL)" x:Name="drc" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 854x480" Margin="10,272,157,166" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGADrc.ImgPath}" Cursor="Help" TextChanged="drc_TextChanged"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="BOOTTVTEX" x:Name="tv" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 1280x720" Margin="10,227,157,211" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGATv.ImgPath}" Cursor="Help" TextChanged="tv_TextChanged"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="BOOTLOGOTEX (OPTIONAL)" ToolTip="Needs a BitDepth of 32 and a Dimension of 170x42" x:Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,121" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Cursor="Help" Text="{Binding GameConfiguration.TGALog.ImgPath}" TextChanged="log_TextChanged"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,369,157,69" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" Text="{Binding GameConfiguration.GameName}" x:Name="gn" KeyUp="gn_KeyUp" MaxLength="250"/>
|
||||
<Button Content="Inject" HorizontalAlignment="Left" Margin="506,413,0,0" VerticalAlignment="Top" Width="127" Click="InjectGame" IsEnabled="{Binding CanInject}"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,329,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
|
||||
|
@ -30,9 +30,9 @@
|
|||
<RadioButton Content="NTSC TO PAL" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" GroupName="VMC" Click="RadioButton_Click" Width="111"/>
|
||||
<RadioButton Content="PAL TO NTSC" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" GroupName="VMC" Click="RadioButton_Click_1"/>
|
||||
</StackPanel>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="454,194,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="icoIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="icoIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="454,240,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="tvIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="tvIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="453,285,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="drcIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="drcIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="30" Margin="453,330,0,0" VerticalAlignment="Top" Width="34" OpacityMask="LightGray" Name="logIMG" Source="/UWUVCI AIO WPF;component/UI/Images/image.png" Cursor="Hand" MouseLeftButtonDown="logIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,193,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="icoIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="icoIMG_MouseLeftButtonDown" Visibility="Hidden" />
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,239,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="tvIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="tvIMG_MouseLeftButtonDown" Visibility="Hidden" />
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,283,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="drcIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="drcIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
<Image HorizontalAlignment="Left" Height="32" Margin="446,328,0,0" VerticalAlignment="Top" Width="40" OpacityMask="LightGray" Name="logIMG" Source="/UWUVCI AIO WPF;component/UI/Images/camera3.png" Cursor="Hand" MouseLeftButtonDown="logIMG_MouseLeftButtonDown" Visibility="Hidden"/>
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -78,7 +78,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
mvm.CanInject = true;
|
||||
|
||||
}
|
||||
string rom = mvm.getInternalName(mvm.RomPath, false);
|
||||
string rom = mvm.getInternalWIIGCNName(mvm.RomPath, false);
|
||||
Regex reg = new Regex("[*'\",_&#^@:;?!<>|µ~#°²³´`éⓇ©™]");
|
||||
gn.Text = reg.Replace(rom, string.Empty);
|
||||
mvm.GameConfiguration.GameName = reg.Replace(rom, string.Empty);
|
||||
|
@ -323,5 +323,54 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
{
|
||||
new LOGSHOW(log.Text).ShowDialog();
|
||||
}
|
||||
|
||||
private void ic_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (ic.Text.Length > 0)
|
||||
{
|
||||
icoIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
icoIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}
|
||||
|
||||
private void drc_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (drc.Text.Length > 0)
|
||||
{
|
||||
drcIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
drcIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}
|
||||
|
||||
private void tv_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (tv.Text.Length > 0)
|
||||
{
|
||||
tvIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
tvIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}
|
||||
|
||||
private void log_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (log.Text.Length > 0)
|
||||
{
|
||||
logIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
logIMG.Visibility = Visibility.Hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
<TextBlock HorizontalAlignment="Left" Margin="1022,10,0,0" TextWrapping="Wrap" Text="v2.1 BETA" VerticalAlignment="Top" FontSize="20" Width="98"/>
|
||||
<Button Content="Reset TitleKeys" HorizontalAlignment="Left" Margin="325,266,0,0" VerticalAlignment="Top" Width="153" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_8"/>
|
||||
<Button Content="Start Nintendont Config Tool" HorizontalAlignment="Left" Margin="325,350,0,0" VerticalAlignment="Top" Width="267" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_9"/>
|
||||
<Button Content="Reset Don't show this again Option" HorizontalAlignment="Left" Margin="410,387,0,0" VerticalAlignment="Top" Width="266" RenderTransformOrigin="-0.099,0.116" Click="Button_Click_10"/>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -99,5 +99,11 @@ namespace UWUVCI_AIO_WPF.UI.Frames
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
private void Button_Click_10(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Properties.Settings.Default.dont = false;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
BIN
UWUVCI AIO WPF/UI/Images/camera3.png
Normal file
BIN
UWUVCI AIO WPF/UI/Images/camera3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
|
@ -77,6 +77,14 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
{
|
||||
(mvm.Thing as WiiConfig).icoIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.N64)
|
||||
{
|
||||
(mvm.Thing as N64Config).icoIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.NDS || mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.SNES)
|
||||
{
|
||||
(mvm.Thing as OtherConfigs).icoIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
client.DownloadFile(tvs, System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", "bootTvTex.png"));
|
||||
mvm.GameConfiguration.TGATv.ImgPath = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", "bootTvTex.png");
|
||||
mvm.GameConfiguration.TGATv.extension = ".png";
|
||||
|
@ -88,6 +96,16 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
{
|
||||
(mvm.Thing as WiiConfig).tvIMG.Visibility = Visibility.Visible;
|
||||
}
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.N64)
|
||||
{
|
||||
(mvm.Thing as N64Config).tvIMG.Visibility = Visibility.Visible;
|
||||
(mvm.Thing as N64Config).imgpath(System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", "iconTex.png"), System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", "bootTvTex.png"));
|
||||
}
|
||||
else if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.NDS || mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.SNES)
|
||||
{
|
||||
(mvm.Thing as OtherConfigs).imgpath(System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", "iconTex.png"), System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "repo", "bootTvTex.png"));
|
||||
|
||||
}
|
||||
this.Close();
|
||||
}
|
||||
|
||||
|
|
|
@ -63,11 +63,14 @@ namespace UWUVCI_AIO_WPF
|
|||
{
|
||||
|
||||
MainViewModel mvm = FindResource("mvm") as MainViewModel;
|
||||
if(mvm.GameConfiguration != new GameConfig() && mvm.GameConfiguration != null && mvm.saveconf == null)
|
||||
{
|
||||
mvm.saveconf = mvm.GameConfiguration.Clone();
|
||||
}
|
||||
if(mvm.curr != null)
|
||||
|
||||
/*if((sender as ListView).SelectedIndex == 9)
|
||||
{
|
||||
mvm.saveconf = mvm.GameConfiguration.Clone();
|
||||
}*/
|
||||
|
||||
|
||||
if (mvm.curr != null)
|
||||
{
|
||||
mvm.curr.Background = null;
|
||||
}
|
||||
|
@ -90,131 +93,135 @@ namespace UWUVCI_AIO_WPF
|
|||
DestroyFrame();
|
||||
mvm.GC = false;
|
||||
tbTitleBar.Text = "UWUVCI AIO - NDS VC INJECT";
|
||||
if(mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.NDS)
|
||||
/* if(mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.NDS)
|
||||
{
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.NDS, mvm.saveconf);
|
||||
}
|
||||
else
|
||||
{
|
||||
{*/
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.NDS);
|
||||
mvm.saveconf = null;
|
||||
}
|
||||
|
||||
|
||||
//}
|
||||
mvm.saveconf = null;
|
||||
break;
|
||||
case 1:
|
||||
DestroyFrame();
|
||||
mvm.GC = false;
|
||||
tbTitleBar.Text = "UWUVCI AIO - GBA VC INJECT";
|
||||
if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.GBA)
|
||||
/*if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.GBA)
|
||||
{
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.GBA, mvm.saveconf);
|
||||
}
|
||||
else
|
||||
{
|
||||
{*/
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.GBA);
|
||||
mvm.saveconf = null;
|
||||
}
|
||||
|
||||
|
||||
//}
|
||||
mvm.saveconf = null;
|
||||
break;
|
||||
case 2:
|
||||
DestroyFrame();
|
||||
mvm.GC = false;
|
||||
tbTitleBar.Text = "UWUVCI AIO - N64 VC INJECT";
|
||||
if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.N64)
|
||||
/*if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.N64)
|
||||
{
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.N64, mvm.saveconf);
|
||||
}
|
||||
else
|
||||
{
|
||||
{*/
|
||||
mvm.GameConfiguration.N64Stuff = new Classes.N64Conf();
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.N64);
|
||||
mvm.saveconf = null;
|
||||
}
|
||||
|
||||
|
||||
//}
|
||||
mvm.saveconf = null;
|
||||
break;
|
||||
case 4:
|
||||
DestroyFrame();
|
||||
mvm.GC = false;
|
||||
tbTitleBar.Text = "UWUVCI AIO - NES VC INJECT";
|
||||
if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.NES)
|
||||
/*if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.NES)
|
||||
{
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.NES, mvm.saveconf);
|
||||
}
|
||||
else
|
||||
{
|
||||
{*/
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.NES);
|
||||
mvm.saveconf = null;
|
||||
}
|
||||
|
||||
//}
|
||||
mvm.saveconf = null;
|
||||
break;
|
||||
case 3:
|
||||
DestroyFrame();
|
||||
mvm.GC = false;
|
||||
tbTitleBar.Text = "UWUVCI AIO - SNES VC INJECT";
|
||||
if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.SNES)
|
||||
/*if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.SNES)
|
||||
{
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.SNES, mvm.saveconf);
|
||||
}
|
||||
else
|
||||
{
|
||||
{*/
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.SNES);
|
||||
mvm.saveconf = null;
|
||||
}
|
||||
//}
|
||||
break;
|
||||
case 5:
|
||||
DestroyFrame();
|
||||
mvm.GC = false;
|
||||
tbTitleBar.Text = "UWUVCI AIO - TurboGrafX-16 VC INJECT";
|
||||
if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.TG16 )
|
||||
/*if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.TG16 )
|
||||
{
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.TG16, mvm.saveconf);
|
||||
}
|
||||
else
|
||||
{
|
||||
{*/
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.TG16);
|
||||
mvm.saveconf = null;
|
||||
}
|
||||
|
||||
// }
|
||||
mvm.saveconf = null;
|
||||
break;
|
||||
case 6:
|
||||
DestroyFrame();
|
||||
mvm.GC = false;
|
||||
tbTitleBar.Text = "UWUVCI AIO - MSX VC INJECT";
|
||||
if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.MSX)
|
||||
/*if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.MSX)
|
||||
{
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.MSX, mvm.saveconf);
|
||||
}
|
||||
else
|
||||
{
|
||||
{*/
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.MSX);
|
||||
mvm.saveconf = null;
|
||||
}
|
||||
|
||||
//}
|
||||
mvm.saveconf = null;
|
||||
break;
|
||||
case 7:
|
||||
DestroyFrame();
|
||||
mvm.GC = false;
|
||||
tbTitleBar.Text = "UWUVCI AIO - Wii VC INJECT";
|
||||
if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.WII)
|
||||
/*if (mvm.saveconf != null && mvm.saveconf.Console == GameConsoles.WII)
|
||||
{
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.WII, mvm.saveconf);
|
||||
}
|
||||
else
|
||||
{
|
||||
{*/
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.WII);
|
||||
mvm.saveconf = null;
|
||||
}
|
||||
|
||||
//}
|
||||
mvm.saveconf = null;
|
||||
break;
|
||||
case 8:
|
||||
DestroyFrame();
|
||||
tbTitleBar.Text = "UWUVCI AIO - GC VC INJECT";
|
||||
if (mvm.saveconf != null && (mvm.saveconf.Console == GameConsoles.WII || mvm.saveconf.Console == GameConsoles.GCN) && mvm.GC == true)
|
||||
/*if (mvm.saveconf != null && (mvm.saveconf.Console == GameConsoles.WII || mvm.saveconf.Console == GameConsoles.GCN) && mvm.GC == true)
|
||||
{
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.GCN, mvm.saveconf);
|
||||
}
|
||||
else
|
||||
{
|
||||
{*/
|
||||
load_frame.Content = new INJECTFRAME(GameConsoles.GCN);
|
||||
mvm.saveconf = null;
|
||||
}
|
||||
|
||||
|
||||
//}
|
||||
mvm.saveconf = null;
|
||||
break;
|
||||
case 9:
|
||||
DestroyFrame();
|
||||
|
|
|
@ -441,6 +441,9 @@
|
|||
<ItemGroup>
|
||||
<Resource Include="UI\Images\image.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\camera3.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\packages\MaterialDesignThemes.3.0.1\build\MaterialDesignThemes.targets" Condition="Exists('..\packages\MaterialDesignThemes.3.0.1\build\MaterialDesignThemes.targets')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
|
|
Loading…
Reference in a new issue