mirror of
https://github.com/ZuneDev/ZuneShell.dll.git
synced 2026-07-27 13:11:51 -07:00
Add resources from ZuneMarketplaceResources.dll
This commit is contained in:
Executable
+16
@@ -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
@@ -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
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
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
Reference in New Issue
Block a user