Skip to content

Commit

Permalink
Dev Commit | Preview Release 1.8.726.5
Browse files Browse the repository at this point in the history
[ PREVIEW BUILD | NOT FINAL ]

Build HASH: 38CB64C4AB770F4D0C8C2C579DC85340

NOTE:

This build is not final, Expect few bugs

- Any AV detection is false positive as I submitted the file to Microsoft
![image](https://github.com/IchimakiKasura/CeeleLauncher/assets/80595346/cb7852d8-aa7d-403b-b0e4-2242286351fd)

	The file keeps detecting it as a Wacatac when the build fails but when the build has no errors there's no Wacatac detected. The code will be refactored soon to find the problem.

This Preview release of 1.8.x might be the last because I barely notice any bugs after testing and fixing it for 2 months so expect sooner or later an Official release will be uploaded.

FIXES ON THIS BUILD:
- Fixed MessageBox closing animation not playing.
- Fixed Launcher button being bugged out.
- Fixed MessageBox Owned windows being null on the start.
making Unowned windows not appear on taskbars.
- Fixed App crashing if the game directory is on a non-existing drive letter.
- Fixed where Resetting the settings Crashes the app.
- Fixed Location textbox focus outline when tabbed.
  • Loading branch information
IchimakiKasura committed Jul 26, 2023
1 parent 6ae257f commit 96e1329
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ protected virtual void OnClicked(RoutedEventArgs Event) =>

private void Clicked(object s, RoutedEventArgs Event) =>
OnClicked(Event);
}
}
1 change: 1 addition & 0 deletions src/HoyoLauncher.Core/Config/MainConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public static async Task<MainConfig> ReadConfig()
ERROR("CONFIG ERROR", x.Message);
return null;
}

}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/HoyoLauncher.Core/HoyoMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public static async void Initialize()
if (!App.Config.CHECKBOX_BACKGROUND)
HoyoWindow.MediaElementBG.Source = null;

if(App.Config.CUSTOM_BACKGROUND is not "" or null)
HoyoWindow.MainBG.Background = DefaultBG.DEFAULT = new(new BitmapImage(new(App.Config.CUSTOM_BACKGROUND)))
if(File.Exists(App.Config.CUSTOM_BACKGROUND))
HoyoWindow.MainBG.Background = DefaultBG.DEFAULT = new(new BitmapImage(new(App.Config.CUSTOM_BACKGROUND, UriKind.RelativeOrAbsolute)))
{
Stretch = Stretch.UniformToFill
};
Expand Down
3 changes: 2 additions & 1 deletion src/HoyoLauncher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
</PropertyGroup>

<PropertyGroup Condition="$(Configuration) == Release Or $(Configuration) == Preview">
<Optimize>True</Optimize>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<PublishProtocol>FileSystem</PublishProtocol>
Expand All @@ -39,7 +40,7 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\ini-reader\src\IniParser\IniParser.csproj"/>
<ProjectReference Include="..\ini-reader\src\IniParser\IniParser.csproj" />
</ItemGroup>

<!-- Resources -->
Expand Down
4 changes: 2 additions & 2 deletions src/HoyoLauncherSettings/HoyoSettings.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ protected override void OnClosed(EventArgs e)

static void RefreshCurrentSelectedGame()
{
if (App.Config.CUSTOM_BACKGROUND is not "" or null)
DefaultBG.DEFAULT = new(new BitmapImage(new(App.Config.CUSTOM_BACKGROUND)))
if (File.Exists(App.Config.CUSTOM_BACKGROUND))
DefaultBG.DEFAULT = new(new BitmapImage(new(App.Config.CUSTOM_BACKGROUND, UriKind.RelativeOrAbsolute)))
{
Stretch = Stretch.UniformToFill
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ public partial class HoyoSettings
{
void LocationButtonClick(object s, RoutedEventArgs e)
{
using var Folder = new Forms.FolderBrowserDialog();
e.Handled = true;
var Folder = new Forms.FolderBrowserDialog();

if (Folder.ShowDialog() is Forms.DialogResult.Cancel) return;

Expand All @@ -21,14 +21,15 @@ void LocationButtonClick(object s, RoutedEventArgs e)

void LocationImageButtonClick(object s, RoutedEventArgs e)
{
e.Handled = true;

var ImageFile = new Microsoft.Win32.OpenFileDialog
{
Filter = "PNG|*.png|JPG|*.jpg;*.jpeg|GIF|*.gif|BMP|*.bmp|All Files|*.*"
};
e.Handled = true;

if (ImageFile.ShowDialog() is false) return;

BG_DIR_TXT.Text = App.Config.CUSTOM_BACKGROUND = ImageFile.FileName;
}
}
}
5 changes: 4 additions & 1 deletion src/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
// It was supposed to be a simple launcher that opens the game,
// why do i need to go as far as detecting a new version, downloading the new version and even pre-installing the upcoming version.
// what the fuck am i doing?

//
// NOTE TO MYSELF:
// Refactor the code if possible since publishing the file on first try causes GenerateBundle Task error
// when multiple error on publish build was ran, a "Wacatac" will be detected for no reason causing AV to be alerted.
public partial class MainWindow : Window
{
[StaticWindow]
Expand Down
2 changes: 1 addition & 1 deletion src/ShorTour.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ protected override void OnClosed(EventArgs e)
HoyoWindow.BLACK_THING.Visibility = Visibility.Collapsed;
base.OnClosed(e);
}
}
}

0 comments on commit 96e1329

Please sign in to comment.