mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-10 13:44:13 +00:00
????????
and for wii injects its nwo trying to get the manual
This commit is contained in:
parent
9d4eea5583
commit
86b692b34a
4 changed files with 31 additions and 5 deletions
|
@ -25,7 +25,16 @@ using MessageBox = System.Windows.MessageBox;
|
|||
|
||||
namespace UWUVCI_AIO_WPF
|
||||
{
|
||||
|
||||
public static class StringExtensions
|
||||
{
|
||||
public static string ToHex(this string input)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
foreach (char c in input)
|
||||
sb.AppendFormat("{0:X2}", (int)c);
|
||||
return sb.ToString().Trim();
|
||||
}
|
||||
}
|
||||
internal static class Injection
|
||||
{
|
||||
[DllImport("User32.dll")]
|
||||
|
@ -697,6 +706,23 @@ namespace UWUVCI_AIO_WPF
|
|||
mvm.Progress = 15;
|
||||
}
|
||||
}
|
||||
//GET ROMCODE and change it
|
||||
mvm.msg = "Trying to change the Manual...";
|
||||
//READ FIRST 4 BYTES
|
||||
byte[] chars = new byte[4];
|
||||
FileStream fstrm = new FileStream(Path.Combine(tempPath, "pre.iso"), FileMode.Open);
|
||||
fstrm.Read(chars, 0, 4);
|
||||
fstrm.Close();
|
||||
string procod = ByteArrayToString(chars);
|
||||
string neededformanual = procod.ToHex();
|
||||
string metaXml = Path.Combine(baseRomPath, "meta", "meta.xml");
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.Load(metaXml);
|
||||
doc.SelectSingleNode("menu/reserved_flag2").InnerText = neededformanual;
|
||||
doc.Save(metaXml);
|
||||
//edit emta.xml
|
||||
mvm.Progress = 20;
|
||||
|
||||
if (!mvm.donttrim)
|
||||
{
|
||||
if (mvm.regionfrii)
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:UWUVCI_AIO_WPF.UI.Frames"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="480" d:DesignWidth="1130"
|
||||
d:DesignHeight="600" d:DesignWidth="1135"
|
||||
Title="Teaser" >
|
||||
|
||||
<Grid>
|
||||
<TextBlock x:Name="tb" TextWrapping="Wrap" Text="Under Construction " FontSize="20" Height="29" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" Width="1110" />
|
||||
|
||||
|
||||
<Image Source="/UI/Images/rarch.png" Opacity="0.1" Margin="997,473,23,10"/>
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -149,7 +149,7 @@
|
|||
<StackPanel Orientation="Horizontal">
|
||||
<!--<materialDesign:PackIcon Foreground="White" Kind="SettingsApplications" Height="45" Width="45"/>-->
|
||||
<Image Source="/UI/Images/teaser.png"></Image>
|
||||
<TextBlock Text="???" VerticalAlignment="Center" Margin="20 10"/>
|
||||
<TextBlock Text="???????? ?? ??????" VerticalAlignment="Center" Margin="20 10"/>
|
||||
</StackPanel>
|
||||
</ListViewItem>
|
||||
</ListView>
|
||||
|
|
|
@ -394,7 +394,7 @@ namespace UWUVCI_AIO_WPF
|
|||
break;*/
|
||||
case 9:
|
||||
DestroyFrame();
|
||||
tbTitleBar.Text = "UWUVCI AIO - ???";
|
||||
tbTitleBar.Text = "UWUVCI AIO - ???????? ?? ??????";
|
||||
load_frame.Content = new Teaser();
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue