Skip to content

Commit

Permalink
Major Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Nov 4, 2024
1 parent f968699 commit 2ca241c
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 24 deletions.
4 changes: 3 additions & 1 deletion src/Live/Sucrose.Live.Aurora/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,12 @@ protected void Configure()

SSEHC.Start();

SSEMI.Host = $"{Path.Combine(SSEMI.LibraryLocation, SSEMI.LibrarySelected)}/";

switch (SSEMI.Info.Type)
{
case SSDEWT.Application:
SSEAVA Application = new(Source, SSEMI.Info.Arguments);
SSEAVA Application = new();
Application.Show();
break;
default:
Expand Down
6 changes: 4 additions & 2 deletions src/Live/Sucrose.Live.MpvPlayer/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,16 @@ protected void Configure()

SSEHC.Start();

SSEMI.Host = $"{Path.Combine(SSEMI.LibraryLocation, SSEMI.LibrarySelected)}/";

switch (SSEMI.Info.Type)
{
case SSDEWT.Gif:
SSEMPVG Gif = new(Source);
SSEMPVG Gif = new();
Gif.Show();
break;
case SSDEWT.Video:
SSEMPVV Video = new(Source);
SSEMPVV Video = new();
Video.Show();
break;
default:
Expand Down
4 changes: 3 additions & 1 deletion src/Live/Sucrose.Live.Nebula/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,12 @@ protected void Configure()

SSEHC.Start();

SSEMI.Host = $"{Path.Combine(SSEMI.LibraryLocation, SSEMI.LibrarySelected)}/";

switch (SSEMI.Info.Type)
{
case SSDEWT.Video:
SSENVV Video = new(Source);
SSENVV Video = new();
Video.Show();
break;
default:
Expand Down
4 changes: 3 additions & 1 deletion src/Live/Sucrose.Live.Vexana/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,12 @@ protected void Configure()

SSEHC.Start();

SSEMI.Host = $"{Path.Combine(SSEMI.LibraryLocation, SSEMI.LibrarySelected)}/";

switch (SSEMI.Info.Type)
{
case SSDEWT.Gif:
SSEVVG Gif = new(Source);
SSEVVG Gif = new();
Gif.Show();
break;
default:
Expand Down
4 changes: 3 additions & 1 deletion src/Live/Sucrose.Live.Xavier/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,12 @@ protected void Configure()

SSEHC.Start();

SSEMI.Host = $"{Path.Combine(SSEMI.LibraryLocation, SSEMI.LibrarySelected)}/";

switch (SSEMI.Info.Type)
{
case SSDEWT.Gif:
SSEXVG Gif = new(Source);
SSEXVG Gif = new();
Gif.Show();
break;
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ internal static class Internal
public static string Application = string.Empty;

public static string ApplicationName = string.Empty;

public static string ApplicationArguments = string.Empty;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Microsoft.Win32;
using System.Diagnostics;
using System.IO;
using System.Windows;
using SMMCA = Sucrose.Memory.Manage.Constant.Aurora;
using SMMI = Sucrose.Manager.Manage.Internal;
Expand All @@ -11,6 +10,7 @@
using SSEEH = Sucrose.Shared.Engine.Event.Handler;
using SSEHD = Sucrose.Shared.Engine.Helper.Data;
using SSEHR = Sucrose.Shared.Engine.Helper.Run;
using SSEHS = Sucrose.Shared.Engine.Helper.Source;
using SSEHV = Sucrose.Shared.Engine.Helper.Volume;
using SSEMI = Sucrose.Shared.Engine.Manage.Internal;
using SSSHP = Sucrose.Shared.Space.Helper.Processor;
Expand All @@ -24,13 +24,13 @@ namespace Sucrose.Shared.Engine.Aurora.View
/// </summary>
public sealed partial class Application : Window, IDisposable
{
public Application(string Application, string Arguments)
public Application()
{
InitializeComponent();

SSEAMI.Application = Application;
SSEAMI.ApplicationArguments = Arguments;
SSEAMI.ApplicationName = Path.GetFileName(Application);
SSEAMI.ApplicationName = SSEMI.Info.Source;
SSEAMI.Application = SSEHS.GetSource(SSEMI.Info.Source, SSEMI.Host).ToString();

SMMI.AuroraSettingManager.SetSetting(SMMCA.AppProcessName, SSEAMI.ApplicationName);

SourceInitialized += (s, e) =>
Expand All @@ -50,7 +50,7 @@ public Application(string Application, string Arguments)

for (int Count = 0; Count < ScreenCount; Count++)
{
SSEMI.Applications.Add(SSSHP.Run(SSEAMI.Application, SSEAMI.ApplicationArguments, ProcessWindowStyle.Normal));
SSEMI.Applications.Add(SSSHP.Run(SSEAMI.Application, SSEMI.Info.Arguments, ProcessWindowStyle.Normal));
}

do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ namespace Sucrose.Shared.Engine.MpvPlayer.View
/// </summary>
public sealed partial class Gif : Window, IDisposable
{
public Gif(string Gif)
public Gif()
{
InitializeComponent();

SystemEvents.DisplaySettingsChanged += (s, e) => SSEEH.DisplaySettingsChanged(this);

SSEMPMI.Source = SSEHS.GetSource(Gif).ToString();
SSEMPMI.Source = SSEHS.GetSource(SSEMI.Info.Source, SSEMI.Host).ToString();

ContentRendered += (s, e) => SSEEH.ContentRendered(this);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ namespace Sucrose.Shared.Engine.MpvPlayer.View
/// </summary>
public sealed partial class Video : Window, IDisposable
{
public Video(string Video)
public Video()
{
InitializeComponent();

SystemEvents.DisplaySettingsChanged += (s, e) => SSEEH.DisplaySettingsChanged(this);

SSEMPMI.Source = SSEHS.GetSource(Video).ToString();
SSEMPMI.Source = SSEHS.GetSource(SSEMI.Info.Source, SSEMI.Host).ToString();

ContentRendered += (s, e) => SSEEH.ContentRendered(this);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Sucrose.Shared.Engine.Nebula.View
/// </summary>
public sealed partial class Video : Window, IDisposable
{
public Video(string Video)
public Video()
{
InitializeComponent();

Expand All @@ -29,7 +29,7 @@ public Video(string Video)

Content = SSENMI.MediaEngine;

SSENMI.MediaEngine.Source = SSEHS.GetSource(Video);
SSENMI.MediaEngine.Source = SSEHS.GetSource(SSEMI.Info.Source, SSEMI.Host);

SSEMI.GeneralTimer.Tick += new EventHandler(GeneralTimer_Tick);
SSEMI.GeneralTimer.Interval = new TimeSpan(0, 0, 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Sucrose.Shared.Engine.Vexana.View
/// </summary>
public sealed partial class Gif : Window, IDisposable
{
public Gif(string Gif)
public Gif()
{
InitializeComponent();

Expand All @@ -29,7 +29,7 @@ public Gif(string Gif)

Content = SSEVMI.ImageEngine;

SSEVMI.ImageResult = SSEVHP.Gif(SSEHS.GetSource(Gif).ToString());
SSEVMI.ImageResult = SSEVHP.Gif(SSEHS.GetSource(SSEMI.Info.Source, SSEMI.Host).ToString());

SSEMI.GeneralTimer.Tick += new EventHandler(GeneralTimer_Tick);
SSEMI.GeneralTimer.Interval = new TimeSpan(0, 0, 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Sucrose.Shared.Engine.Xavier.View
/// </summary>
public sealed partial class Gif : Window, IDisposable
{
public Gif(string Gif)
public Gif()
{
InitializeComponent();

Expand All @@ -29,8 +29,8 @@ public Gif(string Gif)

Content = SSEXMI.ImageEngine;

SXAGAB.SetSourceUri(SSEXMI.ImageEngine, SSEHS.GetSource(SSEMI.Info.Source, SSEMI.Host));
SXAGAB.SetRepeatBehavior(SSEXMI.ImageEngine, RepeatBehavior.Forever);
SXAGAB.SetSourceUri(SSEXMI.ImageEngine, SSEHS.GetSource(Gif));
SXAGAB.SetCacheFramesInMemory(SSEXMI.ImageEngine, false);
SXAGAB.SetAnimateInDesignMode(SSEXMI.ImageEngine, false);
SXAGAB.SetAutoStart(SSEXMI.ImageEngine, true);
Expand Down

0 comments on commit 2ca241c

Please sign in to comment.