mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-22 11:03:06 +00:00
more noob firendly, different folder structure (after build), wii ggc injection, wii videomode patch, some QoL stuff
This commit is contained in:
parent
bb92223a90
commit
7ec59d7a4f
24 changed files with 523 additions and 254 deletions
|
@ -5,7 +5,7 @@ using UWUVCI_AIO_WPF.Classes;
|
|||
namespace UWUVCI_AIO_WPF
|
||||
{
|
||||
[Serializable]
|
||||
class GameConfig
|
||||
public class GameConfig
|
||||
{
|
||||
public GameConsoles Console { get; set; }
|
||||
public GameBases BaseRom { get; set; }
|
||||
|
|
|
@ -5,6 +5,7 @@ using System.Diagnostics;
|
|||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using System.Xml;
|
||||
using UWUVCI_AIO_WPF.Classes;
|
||||
|
@ -13,14 +14,15 @@ using UWUVCI_AIO_WPF.UI.Windows;
|
|||
|
||||
namespace UWUVCI_AIO_WPF
|
||||
{
|
||||
|
||||
internal static class Injection
|
||||
{
|
||||
|
||||
|
||||
private static readonly string tempPath = Path.Combine(Directory.GetCurrentDirectory(), "temp");
|
||||
private static readonly string tempPath = Path.Combine(Directory.GetCurrentDirectory(),"bin", "temp");
|
||||
private static readonly string baseRomPath = Path.Combine(tempPath, "baserom");
|
||||
private static readonly string imgPath = Path.Combine(tempPath, "img");
|
||||
private static readonly string toolsPath = Path.Combine(Directory.GetCurrentDirectory(), "Tools");
|
||||
private static readonly string toolsPath = Path.Combine(Directory.GetCurrentDirectory(),"bin", "Tools");
|
||||
static string code = null;
|
||||
static MainViewModel mvvm;
|
||||
|
||||
|
@ -38,7 +40,7 @@ namespace UWUVCI_AIO_WPF
|
|||
* iniPath = Only used for N64. Path to the INI configuration. If "blank", a blank ini will be used.
|
||||
* darkRemoval = Only used for N64. Indicates whether the dark filter should be removed.
|
||||
*/
|
||||
|
||||
[STAThread]
|
||||
public static bool Inject(GameConfig Configuration, string RomPath, MainViewModel mvm, bool force)
|
||||
{
|
||||
mvvm = mvm;
|
||||
|
@ -77,7 +79,8 @@ namespace UWUVCI_AIO_WPF
|
|||
mvm.msg = "Changing Images...";
|
||||
Images(Configuration);
|
||||
mvm.Progress = 100;
|
||||
MessageBox.Show("Injection Finished, please choose how you want to export the Inject next", "Finished Injection Part", MessageBoxButton.OK, MessageBoxImage.Information);
|
||||
|
||||
|
||||
code = null;
|
||||
return true;
|
||||
}catch(Exception e)
|
||||
|
@ -107,6 +110,7 @@ namespace UWUVCI_AIO_WPF
|
|||
{
|
||||
mvm.Index = -1;
|
||||
mvm.LR = false;
|
||||
mvm.msg = "";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -224,6 +228,33 @@ namespace UWUVCI_AIO_WPF
|
|||
tik.StartInfo.FileName = Path.Combine(toolsPath, "wit.exe");
|
||||
mvvm.Progress = 45;
|
||||
}
|
||||
if (mvm.Patch)
|
||||
{
|
||||
mvvm.msg = "Video Patching ROM...";
|
||||
using (Process process = new Process())
|
||||
{
|
||||
process.StartInfo.FileName = "wii-vmc.exe";
|
||||
process.StartInfo.Arguments = $"\"{Path.Combine(tempPath, "IsoExt", "sys", "main.dol")}\"";
|
||||
process.StartInfo.RedirectStandardInput = true;
|
||||
process.StartInfo.UseShellExecute = false;
|
||||
process.Start();
|
||||
process.StandardInput.WriteLine("a");
|
||||
if (mvm.toPal)
|
||||
{
|
||||
process.StandardInput.WriteLine("1");
|
||||
}
|
||||
else
|
||||
{
|
||||
process.StandardInput.WriteLine("2");
|
||||
}
|
||||
|
||||
Thread.Sleep(200);
|
||||
process.StandardInput.WriteLine();
|
||||
process.WaitForExit();
|
||||
}
|
||||
mvvm.Progress = 50;
|
||||
}
|
||||
|
||||
mvvm.msg = "Creating ISO from trimmed ROM...";
|
||||
Console.WriteLine("Creating ISO from trimmed ROM...");
|
||||
tik.StartInfo.Arguments = $"copy \"{Path.Combine(tempPath, "IsoExt")}\" --DEST \"{Path.Combine(tempPath, "game.iso")}\" -ovv --links --iso";
|
||||
|
@ -395,7 +426,7 @@ namespace UWUVCI_AIO_WPF
|
|||
Directory.Delete(tempPath, true);
|
||||
}
|
||||
}
|
||||
|
||||
[STAThread]
|
||||
public static void Loadiine(string gameName)
|
||||
{
|
||||
if (gameName == null || gameName == string.Empty) gameName = "NoName";
|
||||
|
@ -409,11 +440,11 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
|
||||
DirectoryCopy(baseRomPath,outputPath, true);
|
||||
MessageBox.Show($"Injection Complete! The Inject is stored here:\n{outputPath}\n\nThe Configuration will not be cleared, so you can Export the Config if you want. To clear the Configuration, reselect the Console you want to Inject into.", "Inject Complete", MessageBoxButton.OK, MessageBoxImage.Information);
|
||||
new Custom_Message("Injection Complete", $"Config will stay filled, choose a Console again to clear it.\nTo Open the Location of the Inject press Open Folder.", Settings.Default.OutPath).ShowDialog();
|
||||
|
||||
Clean();
|
||||
}
|
||||
|
||||
[STAThread]
|
||||
public static void Packing(string gameName, MainViewModel mvm)
|
||||
{
|
||||
mvm.msg = "Checking Tools...";
|
||||
|
@ -450,12 +481,8 @@ namespace UWUVCI_AIO_WPF
|
|||
mvm.msg = "Cleaning...";
|
||||
Clean();
|
||||
mvm.Progress = 100;
|
||||
string extra = "";
|
||||
if (mvm.GameConfiguration.Console == GameConsoles.WII) extra = "\nDISCLAIMER: Some games cannot reboot into the WiiU Menu. Shut down the console via the GamePad Power Button.\nIf Stuck in a BlackScreen, you need to unplug your wiiu";
|
||||
if (mvm.GC) extra = "\nDISCLAIMER: Make sure to have Nintendont + config on your sd card. You can add them under Settings -> \"Start Nintendont Config Tool\"";
|
||||
MessageBox.Show($"Injection Complete!\nDisclaimer: Only install injections to USB to prevent a brick in a worst case scenario{extra}\n\nThe Inject is stored here:\n{outputPath}\n\nThe Configuration will not be cleared, so you can Export the Config if you want. To clear the Configuration, reselect the Console you want to Inject into.", "Inject Complete", MessageBoxButton.OK, MessageBoxImage.Information);
|
||||
|
||||
|
||||
mvm.msg = "";
|
||||
}
|
||||
|
||||
public static void Download(MainViewModel mvm)
|
||||
|
@ -1041,9 +1068,19 @@ namespace UWUVCI_AIO_WPF
|
|||
CopyAndConvertImage(config.TGAIco.ImgPath, Path.Combine(imgPath), false, 128,128,32, "iconTex.tga");
|
||||
}
|
||||
else
|
||||
{
|
||||
if(File.Exists(Path.Combine(toolsPath, "iconTex.tga")))
|
||||
{
|
||||
CopyAndConvertImage(Path.Combine(toolsPath, "iconTex.tga"), Path.Combine(imgPath), false, 128, 128, 32, "iconTex.tga");
|
||||
|
||||
Images.Add(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
Images.Add(false);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1051,6 +1088,36 @@ namespace UWUVCI_AIO_WPF
|
|||
CopyAndConvertImage($"iconTex.{config.TGAIco.extension}", Path.Combine(imgPath), true, 128, 128, 32, "iconTex.tga");
|
||||
Images.Add(true);
|
||||
}
|
||||
if (config.TGATv.ImgBin == null)
|
||||
{
|
||||
//use path
|
||||
if (config.TGATv.ImgPath != null)
|
||||
{
|
||||
Images.Add(true);
|
||||
CopyAndConvertImage(config.TGATv.ImgPath, Path.Combine(imgPath), false, 1280, 720, 24, "bootTvTex.tga");
|
||||
config.TGATv.ImgPath = Path.Combine(imgPath, "bootTvTex.tga");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (File.Exists(Path.Combine(toolsPath, "bootTvTex.tga")))
|
||||
{
|
||||
CopyAndConvertImage(Path.Combine(toolsPath, "bootTvTex.tga"), Path.Combine(imgPath), false, 128, 128, 32, "iconTex.tga");
|
||||
|
||||
Images.Add(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
Images.Add(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ReadFileFromBin(config.TGATv.ImgBin, $"bootTvTex.{config.TGATv.extension}");
|
||||
CopyAndConvertImage($"bootTvTex.{config.TGATv.extension}", Path.Combine(imgPath), true, 1280, 720, 24, "bootTvTex.tga");
|
||||
config.TGATv.ImgPath = Path.Combine(imgPath, "bootTvTex.tga");
|
||||
Images.Add(true);
|
||||
}
|
||||
|
||||
//Drc
|
||||
if (config.TGADrc.ImgBin == null)
|
||||
|
@ -1062,9 +1129,32 @@ namespace UWUVCI_AIO_WPF
|
|||
CopyAndConvertImage(config.TGADrc.ImgPath, Path.Combine(imgPath), false, 854,480,24, "bootDrcTex.tga");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Images[1])
|
||||
{
|
||||
using(Process conv = new Process())
|
||||
{
|
||||
if (!mvvm.debug)
|
||||
{
|
||||
conv.StartInfo.UseShellExecute = false;
|
||||
conv.StartInfo.CreateNoWindow = true;
|
||||
}
|
||||
conv.StartInfo.FileName = Path.Combine(toolsPath, "tga2png.exe");
|
||||
|
||||
conv.StartInfo.Arguments = $"-i \"{config.TGATv.ImgPath}\" -o \"{Path.Combine(tempPath)}\"";
|
||||
conv.Start();
|
||||
conv.WaitForExit();
|
||||
File.Move(Path.Combine(tempPath, "bootTvTex.png"), Path.Combine(tempPath, "bootDrcTex.png"));
|
||||
CopyAndConvertImage(Path.Combine(tempPath, "bootDrcTex.png"), Path.Combine(imgPath), false, 854, 480, 24, "bootDrcTex.tga");
|
||||
Images.Add(true);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Images.Add(false);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1074,25 +1164,8 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
|
||||
//tv
|
||||
if (config.TGATv.ImgBin == null)
|
||||
{
|
||||
//use path
|
||||
if (config.TGATv.ImgPath != null)
|
||||
{
|
||||
Images.Add(true);
|
||||
CopyAndConvertImage(config.TGATv.ImgPath, Path.Combine(imgPath), false,1280,720,24, "bootTvTex.tga");
|
||||
}
|
||||
else
|
||||
{
|
||||
Images.Add(false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ReadFileFromBin(config.TGATv.ImgBin, $"bootTvTex.{config.TGATv.extension}");
|
||||
CopyAndConvertImage($"bootTvTex.{config.TGATv.extension}", Path.Combine(imgPath), true, 1280, 720, 24, "bootTvTex.tga");
|
||||
Images.Add(true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//logo
|
||||
if (config.TGALog.ImgBin == null)
|
||||
|
@ -1154,12 +1227,12 @@ namespace UWUVCI_AIO_WPF
|
|||
Console.ReadLine();
|
||||
}
|
||||
|
||||
if (Images[2])
|
||||
if (Images[1])
|
||||
{
|
||||
File.Delete(Path.Combine(baseRomPath, "meta", "bootTvTex.tga"));
|
||||
File.Move(Path.Combine(imgPath, "bootTvTex.tga"), Path.Combine(baseRomPath, "meta", "bootTvTex.tga"));
|
||||
}
|
||||
if (Images[1])
|
||||
if (Images[2])
|
||||
{
|
||||
File.Delete(Path.Combine(baseRomPath, "meta", "bootDrcTex.tga"));
|
||||
File.Move(Path.Combine(imgPath, "bootDrcTex.tga"), Path.Combine(baseRomPath, "meta", "bootDrcTex.tga"));
|
||||
|
@ -1240,7 +1313,7 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
}
|
||||
|
||||
private static void DirectoryCopy(string sourceDirName, string destDirName, bool copySubDirs)
|
||||
public static void DirectoryCopy(string sourceDirName, string destDirName, bool copySubDirs)
|
||||
{
|
||||
// Get the subdirectories for the specified directory.
|
||||
DirectoryInfo dir = new DirectoryInfo(sourceDirName);
|
||||
|
|
|
@ -32,8 +32,8 @@ namespace UWUVCI_AIO_WPF.Classes
|
|||
}
|
||||
public static void ExportFile(List<TKeys> precomp, GameConsoles console)
|
||||
{
|
||||
CheckAndFixFolder("keys");
|
||||
Stream createConfigStream = new FileStream($@"keys\{console.ToString().ToLower()}.vck", FileMode.Create, FileAccess.Write);
|
||||
CheckAndFixFolder("bin\\keys");
|
||||
Stream createConfigStream = new FileStream($@"bin\keys\{console.ToString().ToLower()}.vck", FileMode.Create, FileAccess.Write);
|
||||
GZipStream compressedStream = new GZipStream(createConfigStream, CompressionMode.Compress);
|
||||
IFormatter formatter = new BinaryFormatter();
|
||||
formatter.Serialize(compressedStream, precomp);
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace UWUVCI_AIO_WPF.Classes
|
|||
|
||||
{
|
||||
[Serializable]
|
||||
class N64Conf
|
||||
public class N64Conf
|
||||
{
|
||||
private string iniPath = null;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
namespace UWUVCI_AIO_WPF.Classes
|
||||
{
|
||||
[Serializable]
|
||||
class PNGTGA
|
||||
public class PNGTGA
|
||||
{
|
||||
private string imgPath = null;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace UWUVCI_AIO_WPF.Classes
|
|||
{
|
||||
class ToolCheck
|
||||
{
|
||||
static string FolderName = "Tools";
|
||||
static string FolderName = "bin\\Tools";
|
||||
public static string[] ToolNames =
|
||||
{
|
||||
"CDecrypt.exe",
|
||||
|
@ -39,7 +39,10 @@ namespace UWUVCI_AIO_WPF.Classes
|
|||
"cyggcc_s-1.dll",
|
||||
"IKVM.zip",
|
||||
"NintendontConfig.exe",
|
||||
"BASE.zip"
|
||||
"BASE.zip",
|
||||
"tga2png.exe",
|
||||
"iconTex.tga",
|
||||
"wii-vnc.exe"
|
||||
};
|
||||
|
||||
public static bool DoesToolsFolderExist()
|
||||
|
|
|
@ -22,7 +22,7 @@ using AutoUpdaterDotNET;
|
|||
|
||||
namespace UWUVCI_AIO_WPF
|
||||
{
|
||||
class MainViewModel : BaseModel
|
||||
public class MainViewModel : BaseModel
|
||||
{
|
||||
//public GameConfig GameConfiguration { get; set; }
|
||||
private GameConfig gameConfiguration = new GameConfig();
|
||||
|
@ -255,8 +255,11 @@ namespace UWUVCI_AIO_WPF
|
|||
public bool GC = false;
|
||||
public bool debug = false;
|
||||
public string doing = "";
|
||||
public bool Patch = false;
|
||||
public bool toPal = false;
|
||||
private string Msg;
|
||||
|
||||
|
||||
public string msg
|
||||
{
|
||||
get { return Msg; }
|
||||
|
@ -282,6 +285,31 @@ namespace UWUVCI_AIO_WPF
|
|||
public MainViewModel()
|
||||
{
|
||||
|
||||
|
||||
//if (Directory.Exists(@"Tools")) Directory.Delete(@"Tools", true);
|
||||
if (Directory.Exists(@"bases")) Directory.Delete(@"bases", true);
|
||||
if (Directory.Exists(@"temp")) Directory.Delete(@"temp", true);
|
||||
|
||||
if (Directory.Exists(@"keys"))
|
||||
{
|
||||
if(Directory.Exists(@"bin\keys")) Directory.Delete(@"bin\keys", true);
|
||||
Injection.DirectoryCopy("keys", "bin/keys", true);
|
||||
Directory.Delete("keys", true);
|
||||
}
|
||||
if (!Directory.Exists("InjectedGames")) Directory.CreateDirectory("InjectedGames");
|
||||
if (!Directory.Exists("SourceFiles")) Directory.CreateDirectory("SourceFiles");
|
||||
if (!Directory.Exists("bin\\BaseGames")) Directory.CreateDirectory("bin\\BaseGames");
|
||||
if(Properties.Settings.Default.OutPath == "" || Properties.Settings.Default.OutPath == null)
|
||||
{
|
||||
Settings.Default.OutPath = Path.Combine(Directory.GetCurrentDirectory(), "InjectedGames");
|
||||
}
|
||||
if(Settings.Default.BasePath == "" || Properties.Settings.Default.BasePath == null)
|
||||
{
|
||||
Settings.Default.BasePath = Path.Combine(Directory.GetCurrentDirectory(), "bin", "BaseGames");
|
||||
}
|
||||
Settings.Default.Save();
|
||||
ArePathsSet();
|
||||
|
||||
Update();
|
||||
|
||||
toolCheck();
|
||||
|
@ -496,15 +524,20 @@ namespace UWUVCI_AIO_WPF
|
|||
if (loadiine)
|
||||
{
|
||||
Injection.Loadiine(GameConfiguration.GameName);
|
||||
|
||||
//
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Task.Run(() => { Injection.Packing(GameConfiguration.GameName, this); });
|
||||
|
||||
new DownloadWait("Packing Inject - Please Wait", "").ShowDialog();
|
||||
new DownloadWait("Packing Inject - Please Wait", "",this).ShowDialog();
|
||||
Progress = 0;
|
||||
string extra = "";
|
||||
if (GameConfiguration.Console == GameConsoles.WII) extra = "\nSome games cannot reboot into the WiiU Menu. Shut down via the GamePad.\nIf Stuck in a BlackScreen, you need to unplug your WiiU.";
|
||||
if (GC) extra = "\nMake sure to have Nintendon't + config on your SD.\nYou can add them under Settings -> \"Start Nintendont Config Tool\".";
|
||||
|
||||
new Custom_Message("Injection Complete", $"Only Install to USB!{extra}\nConfig will stay filled, choose a Console again to clear it!\nTo Open the Location of the Inject press Open Folder.", Settings.Default.OutPath).ShowDialog();
|
||||
}
|
||||
LGameBasesString.Clear();
|
||||
CanInject = false;
|
||||
|
@ -514,72 +547,85 @@ namespace UWUVCI_AIO_WPF
|
|||
GameConfiguration.CBasePath = null;
|
||||
GC = false;
|
||||
}
|
||||
[STAThread]
|
||||
public void Inject(bool force)
|
||||
{
|
||||
|
||||
Task.Run(() =>
|
||||
{
|
||||
if (Injection.Inject(GameConfiguration, RomPath, this, force)) Injected = true;
|
||||
else Injected = false;
|
||||
});
|
||||
new DownloadWait("Injecting Game - Please Wait", "").ShowDialog();
|
||||
|
||||
new DownloadWait("Injecting Game - Please Wait", "",this).ShowDialog();
|
||||
if (Injected)
|
||||
{
|
||||
new Custom_Message("Finished Injection Part", "Injection Finished, please choose how you want to export the Inject next.").ShowDialog();
|
||||
}
|
||||
|
||||
}
|
||||
private void BaseCheck()
|
||||
{
|
||||
if (Directory.Exists(@"bases"))
|
||||
if (Directory.Exists(@"bin\bases"))
|
||||
{
|
||||
var test = GetMissingVCBs();
|
||||
if (test.Count > 0)
|
||||
{
|
||||
DialogResult res = MessageBox.Show("There are vcb Base files missing in the bases folder. Would you like to download the missing base files?", "Error 004: \"Missing VCB Bases\"", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
||||
if(res == DialogResult.Yes)
|
||||
Progress = 0;
|
||||
Task.Run(() =>
|
||||
{
|
||||
double stuff = 100 / test.Count;
|
||||
foreach (string s in test)
|
||||
{
|
||||
DownloadBase(s);
|
||||
|
||||
Progress += Convert.ToInt32(stuff);
|
||||
}
|
||||
Progress = 100;
|
||||
});
|
||||
new DownloadWait("Downloading needed Data - Please Wait", "",this).ShowDialog();
|
||||
BaseCheck();
|
||||
|
||||
}
|
||||
else if(res == DialogResult.No)
|
||||
{
|
||||
MessageBox.Show("The Programm will now terminate.");
|
||||
Environment.Exit(1);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DialogResult res = MessageBox.Show("No bases folder found.\nShould a bases folder be created and the missing vcb bases downloaded?", "Error 003: \"Missing VCB Bases Folder\"", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
||||
if (res == DialogResult.Yes)
|
||||
{
|
||||
Directory.CreateDirectory(@"bases");
|
||||
|
||||
Directory.CreateDirectory(@"bin\bases");
|
||||
var test = GetMissingVCBs();
|
||||
Progress = 0;
|
||||
Task.Run(() =>
|
||||
{
|
||||
double stuff = 100 / test.Count;
|
||||
foreach (string s in test)
|
||||
{
|
||||
DownloadBase(s);
|
||||
|
||||
Progress += Convert.ToInt32(stuff);
|
||||
}
|
||||
Progress = 100;
|
||||
});
|
||||
new DownloadWait("Downloading needed Data - Please Wait", "",this).ShowDialog();
|
||||
BaseCheck();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("The Programm will now terminate.");
|
||||
Environment.Exit(1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public void UpdateTools()
|
||||
{
|
||||
string[] bases = ToolCheck.ToolNames;
|
||||
Task.Run(() =>
|
||||
{
|
||||
Progress = 0;
|
||||
double l = 100 / bases.Length;
|
||||
foreach (string s in bases)
|
||||
{
|
||||
DeleteTool(s);
|
||||
DownloadTool(s);
|
||||
Progress += Convert.ToInt32(l);
|
||||
}
|
||||
Progress = 100;
|
||||
});
|
||||
new DownloadWait("Updating Tools - Please Wait", "", this).ShowDialog();
|
||||
MessageBox.Show("Finished Updating Tools! Restarting UWUVCI AIO");
|
||||
System.Diagnostics.Process.Start(System.Windows.Application.ResourceAssembly.Location);
|
||||
Environment.Exit(0);
|
||||
|
@ -589,13 +635,14 @@ namespace UWUVCI_AIO_WPF
|
|||
DialogResult res = MessageBox.Show("This Option will reset all entered TitleKeys meaning you will need to reenter them again!\nDo you still wish to continue?", "Resetting TitleKeys", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
||||
if(res == DialogResult.Yes)
|
||||
{
|
||||
File.Delete("keys/gba.vck");
|
||||
File.Delete("keys/nds.vck");
|
||||
File.Delete("keys/nes.vck");
|
||||
File.Delete("keys/n64.vck");
|
||||
File.Delete("keys/msx.vck");
|
||||
File.Delete("keys/tg16.vck");
|
||||
File.Delete("keys/snes.vck");
|
||||
File.Delete("bin/keys/gba.vck");
|
||||
File.Delete("bin/keys/nds.vck");
|
||||
File.Delete("bin/keys/nes.vck");
|
||||
File.Delete("bin/keys/n64.vck");
|
||||
File.Delete("bin/keys/msx.vck");
|
||||
File.Delete("bin/keys/tg16.vck");
|
||||
File.Delete("bin/keys/snes.vck");
|
||||
File.Delete("bin/keys/wii.vck");
|
||||
MessageBox.Show("Reset complete! The Programm will now Restart!");
|
||||
System.Diagnostics.Process.Start(System.Windows.Application.ResourceAssembly.Location);
|
||||
Environment.Exit(0);
|
||||
|
@ -606,11 +653,14 @@ namespace UWUVCI_AIO_WPF
|
|||
{
|
||||
|
||||
string[] bases = { "bases.vcbnds", "bases.vcbn64", "bases.vcbgba", "bases.vcbsnes", "bases.vcbnes", "bases.vcbtg16", "bases.vcbmsx", "bases.vcbwii" };
|
||||
Task.Run(() => {
|
||||
Progress = 0;
|
||||
double l = 100 / bases.Length;
|
||||
foreach (string s in bases)
|
||||
{
|
||||
DownloadBase(s);
|
||||
DeleteBase(s);
|
||||
CopyBase(s);
|
||||
DownloadBase(s);
|
||||
|
||||
GameConsoles g = new GameConsoles();
|
||||
if (s.Contains("nds")) g = GameConsoles.NDS;
|
||||
if (s.Contains("nes")) g = GameConsoles.NES;
|
||||
|
@ -620,8 +670,12 @@ namespace UWUVCI_AIO_WPF
|
|||
if (s.Contains("tg16")) g = GameConsoles.TG16;
|
||||
if (s.Contains("msx")) g = GameConsoles.MSX;
|
||||
if (s.Contains("wii")) g = GameConsoles.WII;
|
||||
UpdateKeyFile(VCBTool.ReadBasesFromVCB($@"bases/{s}"),g);
|
||||
UpdateKeyFile(VCBTool.ReadBasesFromVCB($@"bin/bases/{s}"), g);
|
||||
Progress += Convert.ToInt32(l);
|
||||
}
|
||||
Progress = 100;
|
||||
});
|
||||
new DownloadWait("Updating Base Files - Please Wait", "", this).ShowDialog();
|
||||
MessageBox.Show("Finished Updating Bases! Restarting UWUVCI AIO");
|
||||
System.Diagnostics.Process.Start(System.Windows.Application.ResourceAssembly.Location);
|
||||
Environment.Exit(0);
|
||||
|
@ -759,22 +813,22 @@ namespace UWUVCI_AIO_WPF
|
|||
|
||||
private static void CopyBase(string console)
|
||||
{
|
||||
File.Copy(console, $@"bases\{console}");
|
||||
File.Copy(console, $@"bin\bases\{console}");
|
||||
File.Delete(console);
|
||||
}
|
||||
|
||||
private static void DeleteTool(string tool)
|
||||
{
|
||||
File.Delete($@"Tools\{tool}");
|
||||
File.Delete($@"bin\Tools\{tool}");
|
||||
}
|
||||
private static void DeleteBase(string console)
|
||||
{
|
||||
File.Delete($@"bases\{console}");
|
||||
File.Delete($@"bin\bases\{console}");
|
||||
}
|
||||
public static List<string> GetMissingVCBs()
|
||||
{
|
||||
List<string> ret = new List<string>();
|
||||
string path = @"bases\bases.vcb";
|
||||
string path = @"bin\bases\bases.vcb";
|
||||
if (!File.Exists(path + "nds"))
|
||||
{
|
||||
ret.Add(path + "nds");
|
||||
|
@ -811,12 +865,16 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
public static void DownloadBase(string name)
|
||||
{
|
||||
string olddir = Directory.GetCurrentDirectory();
|
||||
try
|
||||
{
|
||||
string basePath = $@"\bases\{name}";
|
||||
string basePath = $@"bin\bases\";
|
||||
Directory.SetCurrentDirectory(basePath);
|
||||
using (var client = new WebClient())
|
||||
|
||||
{
|
||||
client.DownloadFile(getDownloadLink(name, false), name);
|
||||
var fixname = name.Split('\\');
|
||||
client.DownloadFile(getDownloadLink(name, false), fixname[fixname.Length -1]);
|
||||
}
|
||||
}catch(Exception e)
|
||||
{
|
||||
|
@ -824,18 +882,21 @@ namespace UWUVCI_AIO_WPF
|
|||
MessageBox.Show("There was an Error downloading the VCB Base File.\nThe Programm will now terminate.", "Error 005: \"Unable to Download VCB Base\"", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Environment.Exit(1);
|
||||
}
|
||||
|
||||
Directory.SetCurrentDirectory(olddir);
|
||||
}
|
||||
public static void DownloadTool(string name)
|
||||
{
|
||||
string olddir = Directory.GetCurrentDirectory();
|
||||
try
|
||||
{
|
||||
string basePath = $@"Tools\{name}";
|
||||
|
||||
|
||||
string basePath = $@"bin\Tools\";
|
||||
Directory.SetCurrentDirectory(basePath);
|
||||
using (var client = new WebClient())
|
||||
{
|
||||
client.DownloadFile(getDownloadLink(name, true), name);
|
||||
File.Copy(name, basePath);
|
||||
File.Delete(name);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -845,7 +906,7 @@ namespace UWUVCI_AIO_WPF
|
|||
MessageBox.Show("There was an Error downloading the Tool.\nThe Programm will now terminate.", "Error 006: \"Unable to Download Tool\"", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Environment.Exit(1);
|
||||
}
|
||||
|
||||
Directory.SetCurrentDirectory(olddir);
|
||||
}
|
||||
private static string getDownloadLink(string toolname, bool tool)
|
||||
{
|
||||
|
@ -879,7 +940,6 @@ namespace UWUVCI_AIO_WPF
|
|||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void InjcttoolCheck()
|
||||
{
|
||||
if (ToolCheck.DoesToolsFolderExist())
|
||||
|
@ -889,21 +949,26 @@ namespace UWUVCI_AIO_WPF
|
|||
missingTools = ToolCheck.CheckForMissingTools();
|
||||
if (missingTools.Count > 0)
|
||||
{
|
||||
MessageBox.Show("There are tools missing.\nThe Download will start after you press OK", "Missing Tools", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
//Download Tools
|
||||
|
||||
|
||||
|
||||
foreach (MissingTool m in missingTools)
|
||||
{
|
||||
DownloadTool(m.Name);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
InjcttoolCheck();
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string path = $@"{Directory.GetCurrentDirectory()}\Tools";
|
||||
string path = $@"{Directory.GetCurrentDirectory()}bin\\Tools";
|
||||
|
||||
Directory.CreateDirectory("Tools");
|
||||
Directory.CreateDirectory($@"{Directory.GetCurrentDirectory()}bin\\Tools");
|
||||
InjcttoolCheck();
|
||||
|
||||
}
|
||||
|
@ -917,44 +982,26 @@ namespace UWUVCI_AIO_WPF
|
|||
missingTools = ToolCheck.CheckForMissingTools();
|
||||
if(missingTools.Count > 0)
|
||||
{
|
||||
string errorMessage = "Error 002:\nFollowing Tools seem to be missing:\n\n";
|
||||
foreach(MissingTool m in missingTools)
|
||||
{
|
||||
errorMessage += $"{m.Name}\n";
|
||||
}
|
||||
errorMessage += "\nDo you want to automatically download them?";
|
||||
DialogResult res = MessageBox.Show(errorMessage, "Error 002: \"Missing Tools\"", MessageBoxButtons.YesNo, MessageBoxIcon.Error);
|
||||
|
||||
if (res == DialogResult.Yes)
|
||||
{
|
||||
//Download Tools
|
||||
|
||||
|
||||
foreach (MissingTool m in missingTools)
|
||||
{
|
||||
DownloadTool(m.Name);
|
||||
}
|
||||
|
||||
//Download Tools
|
||||
|
||||
toolCheck();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("The Programm will now terminate");
|
||||
Environment.Exit(1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string path = $@"{Directory.GetCurrentDirectory()}\Tools";
|
||||
DialogResult res = MessageBox.Show($"Error: 001\nThe Tools folder seems to be missing.\nDo you want to create one?", "Error 001: \"Missing Tools folder\"", MessageBoxButtons.YesNo, MessageBoxIcon.Error);
|
||||
if(res == DialogResult.Yes)
|
||||
{
|
||||
Directory.CreateDirectory("Tools");
|
||||
|
||||
Directory.CreateDirectory("bin/Tools");
|
||||
toolCheck();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("The Programm will now terminate");
|
||||
Environment.Exit(1);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1012,7 +1059,7 @@ namespace UWUVCI_AIO_WPF
|
|||
public void GetBases(GameConsoles Console)
|
||||
{
|
||||
List<GameBases> lTemp = new List<GameBases>();
|
||||
string vcbpath = $@"bases/bases.vcb{Console.ToString().ToLower()}";
|
||||
string vcbpath = $@"bin/bases/bases.vcb{Console.ToString().ToLower()}";
|
||||
lTemp = VCBTool.ReadBasesFromVCB(vcbpath);
|
||||
LBases.Clear();
|
||||
GameBases custom = new GameBases();
|
||||
|
@ -1103,14 +1150,14 @@ namespace UWUVCI_AIO_WPF
|
|||
LTG16.Clear();
|
||||
LMSX.Clear();
|
||||
LWII.Clear();
|
||||
lNDS = VCBTool.ReadBasesFromVCB($@"bases/bases.vcbnds");
|
||||
lNES = VCBTool.ReadBasesFromVCB($@"bases/bases.vcbnes");
|
||||
lSNES = VCBTool.ReadBasesFromVCB($@"bases/bases.vcbsnes");
|
||||
lN64 = VCBTool.ReadBasesFromVCB($@"bases/bases.vcbn64");
|
||||
lGBA = VCBTool.ReadBasesFromVCB($@"bases/bases.vcbgba");
|
||||
lTG16 = VCBTool.ReadBasesFromVCB($@"bases/bases.vcbtg16");
|
||||
lMSX = VCBTool.ReadBasesFromVCB($@"bases/bases.vcbmsx");
|
||||
lWii = VCBTool.ReadBasesFromVCB($@"bases/bases.vcbwii");
|
||||
lNDS = VCBTool.ReadBasesFromVCB($@"bin/bases/bases.vcbnds");
|
||||
lNES = VCBTool.ReadBasesFromVCB($@"bin/bases/bases.vcbnes");
|
||||
lSNES = VCBTool.ReadBasesFromVCB($@"bin/bases/bases.vcbsnes");
|
||||
lN64 = VCBTool.ReadBasesFromVCB($@"bin/bases/bases.vcbn64");
|
||||
lGBA = VCBTool.ReadBasesFromVCB($@"bin/bases/bases.vcbgba");
|
||||
lTG16 = VCBTool.ReadBasesFromVCB($@"bin/bases/bases.vcbtg16");
|
||||
lMSX = VCBTool.ReadBasesFromVCB($@"bin/bases/bases.vcbmsx");
|
||||
lWii = VCBTool.ReadBasesFromVCB($@"bin/bases/bases.vcbwii");
|
||||
CreateSettingIfNotExist(lNDS, GameConsoles.NDS);
|
||||
CreateSettingIfNotExist(lNES, GameConsoles.NES);
|
||||
CreateSettingIfNotExist(lSNES, GameConsoles.SNES);
|
||||
|
@ -1122,7 +1169,7 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
private void CreateSettingIfNotExist(List<GameBases> l, GameConsoles console)
|
||||
{
|
||||
string file = $@"keys\{console.ToString().ToLower()}.vck";
|
||||
string file = $@"bin\keys\{console.ToString().ToLower()}.vck";
|
||||
if (!File.Exists(file))
|
||||
{
|
||||
List<TKeys> temp = new List<TKeys>();
|
||||
|
@ -1138,10 +1185,10 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
private void UpdateKeyFile(List<GameBases> l, GameConsoles console)
|
||||
{
|
||||
string file = $@"keys\{console.ToString().ToLower()}.vck";
|
||||
string file = $@"bin\keys\{console.ToString().ToLower()}.vck";
|
||||
if (File.Exists(file))
|
||||
{
|
||||
List<TKeys> keys = KeyFile.ReadBasesFromKeyFile($@"keys\{console.ToString().ToLower()}.vck");
|
||||
List<TKeys> keys = KeyFile.ReadBasesFromKeyFile($@"bin\keys\{console.ToString().ToLower()}.vck");
|
||||
List <TKeys> newTK = new List<TKeys>();
|
||||
foreach(GameBases gb in l)
|
||||
{
|
||||
|
@ -1163,7 +1210,7 @@ namespace UWUVCI_AIO_WPF
|
|||
newTK.Add(tkn);
|
||||
}
|
||||
}
|
||||
File.Delete($@"keys\{console.ToString().ToLower()}.vck");
|
||||
File.Delete($@"bin\keys\{console.ToString().ToLower()}.vck");
|
||||
KeyFile.ExportFile(newTK, console);
|
||||
}
|
||||
}
|
||||
|
@ -1229,7 +1276,7 @@ namespace UWUVCI_AIO_WPF
|
|||
{
|
||||
if(GbTemp.KeyHash == key.ToLower().GetHashCode())
|
||||
{
|
||||
UpdateKeyInFile(key, $@"keys\{GetConsoleOfBase(gbTemp).ToString().ToLower()}.vck", GbTemp, GetConsoleOfBase(gbTemp));
|
||||
UpdateKeyInFile(key, $@"bin\keys\{GetConsoleOfBase(gbTemp).ToString().ToLower()}.vck", GbTemp, GetConsoleOfBase(gbTemp));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -1252,7 +1299,7 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
public bool isKeySet(GameBases bases)
|
||||
{
|
||||
var temp = KeyFile.ReadBasesFromKeyFile($@"keys\{GetConsoleOfBase(bases).ToString().ToLower()}.vck");
|
||||
var temp = KeyFile.ReadBasesFromKeyFile($@"bin\keys\{GetConsoleOfBase(bases).ToString().ToLower()}.vck");
|
||||
foreach(TKeys t in temp)
|
||||
{
|
||||
if(t.Base.Name == bases.Name && t.Base.Region == bases.Region)
|
||||
|
@ -1282,7 +1329,7 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
public TKeys getTkey(GameBases bases)
|
||||
{
|
||||
var temp = KeyFile.ReadBasesFromKeyFile($@"keys\{GetConsoleOfBase(bases).ToString().ToLower()}.vck");
|
||||
var temp = KeyFile.ReadBasesFromKeyFile($@"bin\keys\{GetConsoleOfBase(bases).ToString().ToLower()}.vck");
|
||||
foreach (TKeys t in temp)
|
||||
{
|
||||
if (t.Base.Name == bases.Name && t.Base.Region == bases.Region)
|
||||
|
@ -1300,7 +1347,7 @@ namespace UWUVCI_AIO_WPF
|
|||
{
|
||||
Task.Run(() => { Injection.Download(this); });
|
||||
|
||||
new DownloadWait("Downloading Base - Please Wait", "test").ShowDialog();
|
||||
new DownloadWait("Downloading Base - Please Wait", "", this).ShowDialog();
|
||||
Progress = 0;
|
||||
|
||||
}
|
||||
|
@ -1512,10 +1559,9 @@ namespace UWUVCI_AIO_WPF
|
|||
{
|
||||
if (ValidatePathsStillExist())
|
||||
{
|
||||
if (isCkeySet())
|
||||
{
|
||||
|
||||
Settings.Default.PathsSet = true;
|
||||
}
|
||||
|
||||
|
||||
Settings.Default.Save();
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<Button Content="Loadiine" HorizontalAlignment="Left" Margin="270,533,0,0" VerticalAlignment="Top" Width="99" IsEnabled="{Binding Injected}" Click="Button_Click_2"/>
|
||||
|
||||
|
||||
<Frame Name="fLoadConfig" Width="643" Height="408" Margin="459,108,28,84"/>
|
||||
<Frame Name="fLoadConfig" Width="643" Height="483" Margin="459,70,28,47"/>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
<TextBlock x:Name="tbTK" HorizontalAlignment="Center" Margin="10,67,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,102,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="267,158,0,0" VerticalAlignment="Top" Width="102" IsEnabled="False" Click="btnDwnlnd_Click"/>
|
||||
<Button x:Name="TK" Content="Enter TKey" HorizontalAlignment="Left" Margin="160,158,0,0" VerticalAlignment="Top" Width="102" Click="btnDwnlnd_Copy_Click" Visibility="Hidden"/>
|
||||
<Button x:Name="CK" Content="Enter CKey" HorizontalAlignment="Left" Margin="53,158,0,0" VerticalAlignment="Top" Width="102" Click="btnDwnlnd_Copy1_Click" Visibility="Hidden"/>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -65,14 +65,24 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Bases
|
|||
}
|
||||
if (info[1])
|
||||
{
|
||||
TK.Visibility = Visibility.Hidden;
|
||||
tbTK.Text = "TitleKey Entered";
|
||||
tbTK.Foreground = new SolidColorBrush(Color.FromRgb(50, 205, 50));
|
||||
}
|
||||
else
|
||||
{
|
||||
TK.Visibility = Visibility.Visible;
|
||||
}
|
||||
if (info[2])
|
||||
{
|
||||
CK.Visibility = Visibility.Hidden;
|
||||
tbCK.Text = "CommonKey Entered";
|
||||
tbCK.Foreground = new SolidColorBrush(Color.FromRgb(50, 205, 50));
|
||||
}
|
||||
else
|
||||
{
|
||||
CK.Visibility = Visibility.Visible;
|
||||
}
|
||||
|
||||
if(info[1] && info[2])
|
||||
{
|
||||
|
@ -100,5 +110,18 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Bases
|
|||
|
||||
|
||||
}
|
||||
|
||||
private void btnDwnlnd_Copy_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
mvm.GbTemp = Base;
|
||||
mvm.EnterKey(false);
|
||||
checkStuff(mvm.getInfoOfBase(Base));
|
||||
}
|
||||
|
||||
private void btnDwnlnd_Copy1_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
mvm.EnterKey(true);
|
||||
checkStuff(mvm.getInfoOfBase(Base));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,26 +6,26 @@
|
|||
xmlns:local="clr-namespace:UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations"
|
||||
mc:Ignorable="d"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
d:DesignHeight="408" d:DesignWidth="643"
|
||||
d:DesignHeight="483" d:DesignWidth="643"
|
||||
Title="N64Config">
|
||||
|
||||
<Grid DataContext="{StaticResource mvm}">
|
||||
<TextBox materialDesign:HintAssist.Hint="ROM PATH" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,50,157,388" 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,171,157,267" 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,262,157,176" 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,216,157,221" 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,307,157,124" 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="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,359,157,77" 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,402,0,0" VerticalAlignment="Top" Width="127" Click="InjectGame" IsEnabled="{Binding CanInject}"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,319,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,228,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,274,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,183,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,61,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
<RadioButton x:Name="rbRDF" Content="Remove DarkFilter" HorizontalAlignment="Left" Margin="11,411,0,0" VerticalAlignment="Top" GroupName="df" IsChecked="{Binding GameConfiguration.N64Stuff.DarkFilter}"/>
|
||||
<RadioButton Content="Keep DarkFilter" HorizontalAlignment="Left" Margin="151,411,0,0" VerticalAlignment="Top" GroupName="df" IsChecked="True"/>
|
||||
<TextBox Name="ini" materialDesign:HintAssist.Hint="INI PATH (LEAVE EMPTY FOR BLANK INI)" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,100,157,339" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.N64Stuff.INIPath}"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,112,0,0" VerticalAlignment="Top" Width="127" Click="Set_IniPath"/>
|
||||
|
||||
<TextBox materialDesign:HintAssist.Hint="ROM PATH" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,8,157,355" 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,129,157,234" 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" Name="drc" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 854x480" Margin="10,175,157,188" 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,220,157,143" 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" ToolTip="Needs a BitDepth of 32 and a Dimension of 170x42" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,265,157,98" 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="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,46" 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,360,0,0" VerticalAlignment="Top" Width="127" Click="InjectGame" IsEnabled="{Binding CanInject}"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,277,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,232,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,187,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,141,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,19,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
<RadioButton x:Name="rbRDF" Content="Remove DarkFilter" HorizontalAlignment="Left" Margin="11,369,0,0" VerticalAlignment="Top" GroupName="df" IsChecked="{Binding GameConfiguration.N64Stuff.DarkFilter}"/>
|
||||
<RadioButton Content="Keep DarkFilter" HorizontalAlignment="Left" Margin="151,369,0,0" VerticalAlignment="Top" GroupName="df" IsChecked="True"/>
|
||||
<TextBox Name="ini" materialDesign:HintAssist.Hint="INI PATH (LEAVE EMPTY FOR BLANK INI)" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,58,157,305" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.N64Stuff.INIPath}"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,70,0,0" VerticalAlignment="Top" Width="127" Click="Set_IniPath"/>
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -6,24 +6,24 @@
|
|||
xmlns:local="clr-namespace:UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations"
|
||||
mc:Ignorable="d"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
d:DesignHeight="408" d:DesignWidth="643"
|
||||
d:DesignHeight="483" d:DesignWidth="643"
|
||||
Title="OtherConfigs">
|
||||
|
||||
<Grid DataContext="{StaticResource mvm}">
|
||||
<TextBox materialDesign:HintAssist.Hint="ROM PATH" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,67,157,372" 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,150,157,287" 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,241,157,197" 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,196,157,242" 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" ToolTip="Needs a BitDepth of 32 and a Dimension of 170x42" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,286,157,152" 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="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,358,157,82" 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,401,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,299,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,209,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,254,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,163,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,79,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
<CheckBox Content="Force 4:3" HorizontalAlignment="Left" Margin="10,39,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="113,39,0,0" VerticalAlignment="Top" Width="98" Click="CheckBox_Click_1" ToolTip="If checked the GamePad will be used as a controller" Name="gp"/>
|
||||
|
||||
<TextBox materialDesign:HintAssist.Hint="ROM PATH" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,38,157,325" 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,121,157,242" 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" Name="drc" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 854x480" Margin="10,167,157,196" 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,212,157,151" 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" ToolTip="Needs a BitDepth of 32 and a Dimension of 170x42" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,257,157,106" 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="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,329,157,34" 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,372,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,270,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,225,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,180,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,134,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,50,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
<CheckBox Content="Force 4:3" HorizontalAlignment="Left" Margin="10,10,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="113,10,0,0" VerticalAlignment="Top" Width="98" Click="CheckBox_Click_1" ToolTip="If checked the GamePad will be used as a controller" Name="gp"/>
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -6,23 +6,23 @@
|
|||
xmlns:local="clr-namespace:UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations"
|
||||
mc:Ignorable="d"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
d:DesignHeight="408" d:DesignWidth="643"
|
||||
d:DesignHeight="483" d:DesignWidth="643"
|
||||
Title="OtherConfigs">
|
||||
|
||||
<Grid DataContext="{StaticResource mvm}">
|
||||
<TextBox materialDesign:HintAssist.Hint="ROM PATH" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,73,157,366" 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,156,157,281" 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,247,157,191" 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,202,157,236" 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,292,157,146" 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="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,364,157,75" 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,407,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,305,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,215,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,260,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,169,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,85,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
<CheckBox Content="TurboGrafxCD" HorizontalAlignment="Left" Margin="10,45,0,0" VerticalAlignment="Top" Width="98" Click="CheckBox_Click" ToolTip="If checked alows you to inject TurboGrafx-CD ROMs"/>
|
||||
|
||||
<TextBox materialDesign:HintAssist.Hint="ROM PATH" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,38,157,325" 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,121,157,242" 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" Name="drc" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 854x480" Margin="10,167,157,196" 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,212,157,151" 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" ToolTip="Needs a BitDepth of 32 and a Dimension of 170x42" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,257,157,106" 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="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,329,157,34" 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,372,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,270,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,225,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,180,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,134,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,50,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
<CheckBox Content="TurboGrafxCD" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="98" Click="CheckBox_Click" ToolTip="If checked alows you to inject TurboGrafx-CD ROMs"/>
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -31,6 +31,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
mvm = FindResource("mvm") as MainViewModel;
|
||||
mvm.setThing(this);
|
||||
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 Dispose()
|
||||
{
|
||||
|
@ -134,12 +135,14 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
{
|
||||
cd = false;
|
||||
mvm.mw.tbTitleBar.Text = "UWUVCI AIO - TurboGrafX-16 VC INJECT";
|
||||
Injection.Content = "Select File";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
cd = true;
|
||||
mvm.mw.tbTitleBar.Text = "UWUVCI AIO - TurboGrafX-CD VC INJECT";
|
||||
Injection.Content = "Set Path";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -6,22 +6,23 @@
|
|||
xmlns:local="clr-namespace:UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations"
|
||||
mc:Ignorable="d"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
d:DesignHeight="408" d:DesignWidth="643"
|
||||
d:DesignHeight="483" d:DesignWidth="643"
|
||||
Title="OtherConfigs">
|
||||
|
||||
<Grid DataContext="{StaticResource mvm}">
|
||||
|
||||
<TextBox materialDesign:HintAssist.Hint="ROM PATH" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,38,157,325" 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,111,157,252" 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" Name="drc" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 854x480" Margin="10,157,157,206" 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,202,157,161" 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" ToolTip="Needs a BitDepth of 32 and a Dimension of 170x42" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,247,157,116" 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="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,316,157,47" 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,360,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame" />
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,261,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,216,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,171,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,125,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,50,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="ROM PATH" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,63,157,376" 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,146,157,291" 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,237,157,201" 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,192,157,246" 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,282,157,156" 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="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,354,157,84" 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,397,0,0" VerticalAlignment="Top" Width="127" IsEnabled="{Binding CanInject}" Click="InjectGame"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,295,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,205,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,250,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,159,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Select File" HorizontalAlignment="Left" Margin="506,75,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -5,26 +5,30 @@
|
|||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations"
|
||||
mc:Ignorable="d"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
d:DesignHeight="408" d:DesignWidth="643"
|
||||
Title="N64Config">
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" d:DesignWidth="643"
|
||||
Title="N64Config" Height="483">
|
||||
|
||||
<Grid DataContext="{StaticResource mvm}">
|
||||
|
||||
<TextBox materialDesign:HintAssist.Hint="ROM PATH" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,8,157,355" 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,129,157,234" 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" Name="drc" Style="{StaticResource MaterialDesignFloatingHintTextBox}" ToolTip="Needs a BitDepth of 24 and a Dimension of 854x480" Margin="10,175,157,188" 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,220,157,143" 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" ToolTip="Needs a BitDepth of 32 and a Dimension of 170x42" Name="log" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,265,157,98" 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="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,317,157,46" 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,361,0,0" VerticalAlignment="Top" Width="127" Click="InjectGame" IsEnabled="{Binding CanInject}"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,277,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,232,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,187,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,141,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,20,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" Name="Injection"/>
|
||||
<ComboBox HorizontalAlignment="Left" Margin="10,86,0,0" VerticalAlignment="Top" Width="476" Name="gamepad" SelectionChanged="gamepad_SelectionChanged"/>
|
||||
<Label Content="Use GamePad as:" HorizontalAlignment="Left" Margin="6,61,0,0" VerticalAlignment="Top" FontSize="14"/>
|
||||
<CheckBox Content="Swap L/R and ZL/ZR" HorizontalAlignment="Left" Margin="506,90,0,0" VerticalAlignment="Top" Width="137" Name="LR" IsEnabled="False" IsChecked="False"/>
|
||||
<TextBox materialDesign:HintAssist.Hint="ROM PATH" 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" 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="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="Set Path" HorizontalAlignment="Left" Margin="506,329,0,0" VerticalAlignment="Top" Width="127" Click="Set_LogoTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,239,0,0" VerticalAlignment="Top" Width="127" Click="Set_TvTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,284,0,0" VerticalAlignment="Top" Width="127" Click="Set_DrcTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,193,0,0" VerticalAlignment="Top" Width="127" Click="Set_IconTex"/>
|
||||
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,72,0,0" VerticalAlignment="Top" Width="127" Click="Set_Rom_Path" x:Name="Injection"/>
|
||||
<ComboBox HorizontalAlignment="Left" Margin="10,138,0,0" VerticalAlignment="Top" Width="476" x:Name="gamepad" SelectionChanged="gamepad_SelectionChanged"/>
|
||||
<Label Content="Use GamePad as:" HorizontalAlignment="Left" Margin="6,113,0,0" VerticalAlignment="Top" FontSize="14"/>
|
||||
<CheckBox Content="Swap L/R and ZL/ZR" HorizontalAlignment="Left" Margin="506,142,0,0" VerticalAlignment="Top" Width="137" x:Name="LR" IsEnabled="False" IsChecked="False"/>
|
||||
<StackPanel Margin="10,20,244,436" Orientation="Horizontal" ToolTip="This may not work with every Game">
|
||||
<Label Content="Video Patch:" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="14" Width="102"/>
|
||||
<RadioButton Content="None" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" GroupName="VMC" IsChecked="True" Click="RadioButton_Click_2" Width="78"/>
|
||||
<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>
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -166,5 +166,23 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
LR.IsEnabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void RadioButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
mvm.toPal = true;
|
||||
mvm.Patch = true;
|
||||
}
|
||||
|
||||
private void RadioButton_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
mvm.toPal = false;
|
||||
mvm.Patch = false;
|
||||
}
|
||||
|
||||
private void RadioButton_Click_2(object sender, RoutedEventArgs e)
|
||||
{
|
||||
mvm.toPal = false;
|
||||
mvm.Patch =true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
30
UWUVCI AIO WPF/UI/Windows/Custom Message.xaml
Normal file
30
UWUVCI AIO WPF/UI/Windows/Custom Message.xaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
<Window x:Class="UWUVCI_AIO_WPF.UI.Windows.Custom_Message"
|
||||
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:UWUVCI_AIO_WPF"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
mc:Ignorable="d"
|
||||
Title="MAIN" Height="223.859" Width="717.416" WindowStyle="None" WindowStartupLocation="CenterScreen" Foreground="White" Background="LightGray" ResizeMode="NoResize" Icon="/UWUVCI AIO WPF;component/a.ico" Name="wind" SizeToContent="WidthAndHeight" BorderThickness="1" BorderBrush="Black">
|
||||
<Grid Name="grid">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="496*"/>
|
||||
<ColumnDefinition Width="132"/>
|
||||
<ColumnDefinition Width="90"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="48"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock HorizontalAlignment="Left" Margin="7,2,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="618" FontSize="18" Foreground="Black" Name="Title" Grid.ColumnSpan="2" Grid.Row="0"/>
|
||||
<Label HorizontalAlignment="Left" Margin="2,10,0,0" VerticalAlignment="Top" Height="Auto" Width="Auto" FontSize="18" Foreground="Black" x:Name="Message" HorizontalContentAlignment="Left" Content="" VerticalContentAlignment="Center" Grid.Row="1" />
|
||||
<Button Content="Close" HorizontalAlignment="Left" Margin="7,8,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click" RenderTransformOrigin="0.5,0.5" Grid.Row="2" Grid.Column="2"/>
|
||||
<Button Content="Open Folder" HorizontalAlignment="Left" Margin="5,8,0,0" VerticalAlignment="Top" Width="121" Name="Folder" Click="Folder_Click" RenderTransformOrigin="1,1" Grid.Row="2" Grid.Column="1"/>
|
||||
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
53
UWUVCI AIO WPF/UI/Windows/Custom Message.xaml.cs
Normal file
53
UWUVCI AIO WPF/UI/Windows/Custom Message.xaml.cs
Normal file
|
@ -0,0 +1,53 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace UWUVCI_AIO_WPF.UI.Windows
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaktionslogik für Custom_Message.xaml
|
||||
/// </summary>
|
||||
public partial class Custom_Message : Window
|
||||
{
|
||||
string path;
|
||||
public Custom_Message(string title, string message)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
|
||||
Title.Text = title;
|
||||
Message.Content = message;
|
||||
Folder.Visibility = Visibility.Hidden;
|
||||
|
||||
}
|
||||
public Custom_Message(string title, string message, string Path)
|
||||
{
|
||||
InitializeComponent();
|
||||
Title.Text = title;
|
||||
Message.Content = message;
|
||||
this.path = Path;
|
||||
Folder.Visibility = Visibility.Visible;
|
||||
}
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void Folder_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Process.Start(path);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,13 +7,13 @@
|
|||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
mc:Ignorable="d"
|
||||
Title="MAIN" Height="93.662" Width="500" WindowStyle="None" WindowStartupLocation="CenterScreen" Foreground="White" Background="LightGray" ResizeMode="NoResize" Icon="/UWUVCI AIO WPF;component/a.ico">
|
||||
<Grid DataContext="{StaticResource mvm}">
|
||||
<Grid>
|
||||
|
||||
<TextBlock HorizontalAlignment="Left" Margin="10,11,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="25" Width="480" FontSize="18" Foreground="Black" Name="Key" TextAlignment="Center"/>
|
||||
<TextBlock HorizontalAlignment="Left" Margin="10,41,0,0" TextWrapping="Wrap" Text="{Binding msg}" VerticalAlignment="Top" Height="18" Width="480" FontSize="10" Foreground="Black" Name="msgT" TextAlignment="Center"/>
|
||||
<TextBlock HorizontalAlignment="Left" Margin="10,41,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="18" Width="480" FontSize="10" Foreground="Black" Name="msgT" TextAlignment="Center"/>
|
||||
|
||||
<Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="93" VerticalAlignment="Top" Width="500"/>
|
||||
<ProgressBar HorizontalAlignment="Left" Height="11" Margin="31,59,0,0" VerticalAlignment="Top" Width="443" Value="{Binding Progress}"/>
|
||||
<ProgressBar HorizontalAlignment="Left" Height="11" Margin="31,59,0,0" VerticalAlignment="Top" Width="443" Name="pb"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
|
|
|
@ -18,12 +18,14 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
/// <summary>
|
||||
/// Interaktionslogik für DownloadWait.xaml
|
||||
/// </summary>
|
||||
|
||||
partial class DownloadWait : Window
|
||||
{
|
||||
MainViewModel mvm;
|
||||
public DownloadWait(string doing, string msg)
|
||||
|
||||
public DownloadWait(string doing, string msg, MainViewModel mvm)
|
||||
{
|
||||
mvm = FindResource("mvm") as MainViewModel;
|
||||
this.mvm = mvm;
|
||||
InitializeComponent();
|
||||
Key.Text = doing;
|
||||
DispatcherTimer timer = new DispatcherTimer();
|
||||
|
@ -34,6 +36,8 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
|
||||
void timer_Tick(object sender, EventArgs e)
|
||||
{
|
||||
msgT.Text = mvm.msg;
|
||||
pb.Value = mvm.Progress;
|
||||
if(mvm.Progress == 100)
|
||||
{
|
||||
this.Close();
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
<Grid DataContext="{StaticResource mvm}">
|
||||
<Button Content="Check" HorizontalAlignment="Left" Margin="405,104,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_1"/>
|
||||
<Button Content="Abort" HorizontalAlignment="Left" Margin="284,104,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/>
|
||||
<TextBlock HorizontalAlignment="Left" Margin="39,10,0,0" TextWrapping="Wrap" Text="{Binding GbTemp.Name}" VerticalAlignment="Top" Height="25" Width="451" FontSize="18" Foreground="Black" Name="Key"/>
|
||||
<TextBlock HorizontalAlignment="Left" Margin="53,10,0,0" TextWrapping="Wrap" Text="{Binding GbTemp.Name}" VerticalAlignment="Top" Height="25" Width="437" FontSize="18" Foreground="Black" Name="Key"/>
|
||||
<TextBox Name="tbKey" materialDesign:HintAssist.Hint="ENTER KEY" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,35,20,78" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18"/>
|
||||
|
||||
<TextBlock HorizontalAlignment="Left" Margin="10,10,0,0" TextWrapping="Wrap" Text="{Binding GbTemp.Region}" VerticalAlignment="Top" Height="25" Width="24" FontSize="18" Foreground="Black" Name="region"/>
|
||||
<TextBlock HorizontalAlignment="Left" Margin="10,10,0,0" TextWrapping="Wrap" Text="{Binding GbTemp.Region}" VerticalAlignment="Top" Height="25" Width="43" FontSize="18" Foreground="Black" Name="region"/>
|
||||
<Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="161" VerticalAlignment="Top" Width="500"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using GameBaseClassLibrary;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
@ -28,8 +29,8 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
this.ckey = ckey;
|
||||
if (ckey)
|
||||
{
|
||||
region.Visibility = Visibility.Hidden;
|
||||
Key.Text = "CommonKey";
|
||||
region.Text = "WIIU";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -51,6 +52,7 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
if (i == 1) sys1 = true;
|
||||
}
|
||||
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
|
|
|
@ -119,6 +119,9 @@
|
|||
<Compile Include="UI\Frames\Path\Paths.xaml.cs">
|
||||
<DependentUpon>Paths.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\Windows\Custom Message.xaml.cs">
|
||||
<DependentUpon>Custom Message.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\Windows\DownloadWait.xaml.cs">
|
||||
<DependentUpon>DownloadWait.xaml</DependentUpon>
|
||||
</Compile>
|
||||
|
@ -187,6 +190,10 @@
|
|||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="UI\Windows\Custom Message.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="UI\Windows\DownloadWait.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
|
|
Loading…
Reference in a new issue