mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-22 11:03:06 +00:00
Fixed issues with some tools
Added beta version to settings Help button doesnt crash the app now
This commit is contained in:
parent
44c38dec03
commit
8cf8338c89
3 changed files with 14 additions and 39 deletions
|
@ -1876,7 +1876,16 @@ namespace UWUVCI_AIO_WPF
|
|||
|
||||
foreach (MissingTool m in missingTools)
|
||||
{
|
||||
DownloadTool(m.Name,this);
|
||||
if(m.Name == "blank.ini")
|
||||
{
|
||||
StreamWriter sw = new StreamWriter(Path.Combine(Directory.GetCurrentDirectory(), "bin", "Tools", "blank.ini"));
|
||||
sw.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
DownloadTool(m.Name, this);
|
||||
}
|
||||
|
||||
Progress += Convert.ToInt32(l);
|
||||
}
|
||||
Progress = 100;
|
||||
|
@ -3665,26 +3674,7 @@ namespace UWUVCI_AIO_WPF
|
|||
{
|
||||
WebRequest request;
|
||||
//get download link from uwuvciapi
|
||||
try
|
||||
{
|
||||
request = WebRequest.Create("https://uwuvciapi.azurewebsites.net/GetURL?cns=" + console.ToLower());
|
||||
|
||||
|
||||
|
||||
|
||||
var response = request.GetResponse();
|
||||
using (Stream dataStream = response.GetResponseStream())
|
||||
{
|
||||
// Open the stream using a StreamReader for easy access.
|
||||
StreamReader reader = new StreamReader(dataStream);
|
||||
// Read the content.
|
||||
string responseFromServer = reader.ReadToEnd();
|
||||
// Display the content.
|
||||
return responseFromServer;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
string url = "";
|
||||
switch (console.ToLower())
|
||||
{
|
||||
|
@ -3724,22 +3714,7 @@ namespace UWUVCI_AIO_WPF
|
|||
url = null;
|
||||
break;
|
||||
}
|
||||
request = WebRequest.Create(url + console.ToLower());
|
||||
|
||||
|
||||
|
||||
|
||||
var response = request.GetResponse();
|
||||
using (Stream dataStream = response.GetResponseStream())
|
||||
{
|
||||
// Open the stream using a StreamReader for easy access.
|
||||
StreamReader reader = new StreamReader(dataStream);
|
||||
// Read the content.
|
||||
string responseFromServer = reader.ReadToEnd();
|
||||
// Display the content.
|
||||
return responseFromServer;
|
||||
}
|
||||
}
|
||||
return url;
|
||||
|
||||
}
|
||||
WaveOutEvent waveOutEvent = new WaveOutEvent();
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
<Ellipse Fill="#FF2196F3" HorizontalAlignment="Left" Height="21" Margin="12,7,0,0" VerticalAlignment="Top" Width="17"/>
|
||||
<Ellipse Fill="#FF2196F3" HorizontalAlignment="Left" Height="21" Margin="12,7,0,0" VerticalAlignment="Top" Width="17"/>
|
||||
<Border BorderBrush="#FF2196F3" BorderThickness="1" HorizontalAlignment="Left" Height="33" Margin="12,6,0,0" VerticalAlignment="Top" Width="1108" CornerRadius="5" Background="#FF2196F3"/>
|
||||
<Label Content="v3.0 BETA" HorizontalAlignment="Left" Margin="1048,10,0,0" VerticalAlignment="Top" Foreground="#DDFFFFFF" Width="72" Height="24"/>
|
||||
<Label Content="v3.0 BETA 15" HorizontalAlignment="Left" Margin="1039,10,0,0" VerticalAlignment="Top" Foreground="#DDFFFFFF" Width="81" Height="24"/>
|
||||
|
||||
|
||||
</Grid>
|
||||
|
|
|
@ -103,7 +103,7 @@ namespace UWUVCI_AIO_WPF.UI.Windows
|
|||
throw new Exception();
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
catch (Exception e)
|
||||
{
|
||||
Custom_Message cm = new Custom_Message("Not Implemented", $"The Helppage for {url.ToUpper()} is not implemented yet");
|
||||
try
|
||||
|
|
Loading…
Reference in a new issue