Fix LuaPictureBox functions only working on the first form

fixes 672536305
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
This commit is contained in:
YoshiRulz 2024-08-25 03:38:58 +10:00
parent bda40c7ba3
commit 681a5764d6
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 20 additions and 20 deletions

View File

@ -442,7 +442,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -474,7 +474,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -507,7 +507,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -540,7 +540,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -573,7 +573,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -606,7 +606,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -647,7 +647,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -688,7 +688,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -731,7 +731,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -775,7 +775,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -807,7 +807,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -854,7 +854,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -887,7 +887,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -920,7 +920,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -962,7 +962,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -1005,7 +1005,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -1038,7 +1038,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -1078,7 +1078,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -1120,7 +1120,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -1194,7 +1194,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) continue;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);