Add resources from ZuneMarketplaceResources.dll

This commit is contained in:
Yoshi Askharoun
2026-07-27 01:28:59 -05:00
parent ed727e3877
commit 484e9ab4c3
136 changed files with 36 additions and 6 deletions
+16
View File
@@ -0,0 +1,16 @@
UIXC_CSPROJ=../libs/ZuneUIXTools/UIXC/UIXC.csproj
dotnet build "$UIXC_CSPROJ"
echo "Built UIXC, compiling resources..."
declare -a RSRCS=(
"../ZuneShell/Resources/RCDATA ../ZuneShell/Resources/RCDATA.resx"
"../ZuneShell/Resources/RCDATA/Marketplace ../ZuneShell/Resources/RCDATA.Marketplace.resx"
)
for rsrc in "${RSRCS[@]}"; do
read -a strarr <<< "$rsrc" # uses default whitespace IFS
dotnet run --project $UIXC_CSPROJ --no-build -- resx -i ${strarr[0]} -o ${strarr[1]}
done
+13 -5
View File
@@ -1,7 +1,8 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using Microsoft.Iris;
using Microsoft.Zune.Shell;
namespace ZuneHost
{
@@ -47,21 +48,28 @@ namespace ZuneHost
}
}
Application.Initialized += delegate
{
Application.AddResourceRedirect("res://ZuneShellResources!", "clr-res://ZuneShell!RCDATA/");
Application.AddResourceRedirect("res://ZuneMarketplaceResources!", "clr-res://ZuneShell!RCDATA.Marketplace/");
UIXControls.Helpers.AddUIXControlsClrRedirect();
};
Console.WriteLine("Starting Zune...");
try
{
return Microsoft.Zune.Shell.ZuneApplication.Launch(strArgs, IntPtr.Zero);
return ZuneApplication.Launch(strArgs, IntPtr.Zero);
}
catch (FileNotFoundException ex)
{
Console.WriteLine(ex.FileName);
throw;
}
catch
catch (Exception ex)
{
Debugger.Launch();
Debugger.Break();
if (ex is ZuneShellException zException)
Console.WriteLine(zException.Context);
throw;
}
@@ -10,7 +10,7 @@ using System.Runtime.Serialization;
namespace Microsoft.Zune.Shell
{
[Serializable]
internal class ZuneShellException : InvalidOperationException
public class ZuneShellException : InvalidOperationException
{
private string _context;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More