Mark INIT instruction as handled

This commit is contained in:
Joshua "Yoshi" Askharoun
2025-11-24 02:42:41 -06:00
parent 3557437daf
commit 3a1bb61493
2 changed files with 3 additions and 12 deletions
+3
View File
@@ -800,6 +800,9 @@ partial class Decompiler
stack.Push(Parenthesize(typeCastExpr));
break;
case OpCode.InitializeInstance: // Always handled by ConstructObject
return true;
default:
return false;
}
-12
View File
@@ -315,8 +315,6 @@ if (SelectionManager.Count != 0)
{
if (AddToPlaylistDialog == null)
{
// Unsupported instruction: INIT 649
;
AddToPlaylistDialog = new playlistDialog:AddToPlaylistDialog();
}
@@ -408,8 +406,6 @@ if (!this.IsQuickMix())
[DeclareTrigger(Properties.Invoked)]
if (PropertiesDialog == null)
{
// Unsupported instruction: INIT 636
;
PropertiesDialog = new libraryDialogs:PropertiesDialog();
}
@@ -432,8 +428,6 @@ foreach (zuneUI:PlaybackTrack track in SelectionManager.SelectedItems)
[DeclareTrigger(SaveAsPlaylist.Invoked)]
if (SaveAsPlaylistDialog == null)
{
// Unsupported instruction: INIT 652
;
SaveAsPlaylistDialog = new playlistDialog:CreatePlaylistDialog();
SaveAsPlaylistDialog.BaseDefaultPlaylistName = zuneUI:Shell.LoadString(zuneUI:StringId.IDS_NEW_NOWPLAYING_PLAYLIST_NAME);
}
@@ -497,8 +491,6 @@ if (attachment != null)
{
if (MessageComposer == null)
{
// Unsupported instruction: INIT 490
;
MessageComposer = new socialComposer:MessageComposer();
}
@@ -521,8 +513,6 @@ if (PlayingMusic)
if (AddToFavoritesComposer == null)
{
// Unsupported instruction: INIT 1509
;
AddToFavoritesComposer = new socialComposer:AddToFavoritesComposer();
}
@@ -1043,8 +1033,6 @@ TrackName.Content = Model.Title;
[DeclareTrigger(SignInModel.Invoked)]
if (SignInDialog == null)
{
// Unsupported instruction: INIT 567
;
SignInDialog = new signInDialog:SignInDialog();
}