1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

BeefPerf '%p' support

This commit is contained in:
Brian Fiete 2025-03-31 08:58:14 -04:00
parent f750d44d8d
commit 149d5f22ed
5 changed files with 43 additions and 3 deletions

View file

@ -155,8 +155,9 @@ namespace BeefPerf
LogLine(text);
mFailed = true;
if (!mShuttingDown)
Shutdown();
/*if (!mShuttingDown)
Shutdown();*/
//Stop();
return;
}
@ -647,7 +648,7 @@ namespace BeefPerf
public override void UnhandledCommandLine(String key, String value)
{
Fail(StackStringFormat!("Unhandled command line param: {0}", key));
Fail(scope:: String()..AppendF("Unhandled command line param: {0}", key));
}
void SetupNewWindow(WidgetWindow window)
@ -729,6 +730,9 @@ namespace BeefPerf
public override void Update(bool batchStart)
{
if (mFailed)
Stop();
base.Update(batchStart);
/*if (!mListenSocket.IsConnected)

View file

@ -1441,6 +1441,8 @@ namespace BeefPerf
if (cNext == 'd')
zoneName.mParamsSize += 4;
else if (cNext == 'p')
zoneName.mParamsSize += 8;
else if (cNext == 'f')
zoneName.mParamsSize += 4;
else if (cNext == 's')

View file

@ -216,6 +216,12 @@ namespace BeefPerf
Read(&val, 4);
val.ToString(outStr);
}
else if (cNext == 'p')
{
int64 val = 0;
Read(&val, 8);
val.ToString(outStr, "X", null);
}
else if (cNext == 'f')
{
float val = 0;

View file

@ -767,6 +767,12 @@ namespace BeefPerf
stateCtx.Read(&val, 4);
val.ToString(str);
}
else if (cNext == 'p')
{
int64 val = 0;
stateCtx.Read(&val, 8);
val.ToString(str, "X", null);
}
else if (cNext == 'f')
{
float val = 0;
@ -2316,6 +2322,11 @@ namespace BeefPerf
{
switch (keyCode)
{
case (KeyCode)'C':
if (DarkTooltipManager.sTooltip != null)
{
gApp.SetClipboardText(DarkTooltipManager.sTooltip.mText);
}
case (KeyCode)'Z':
mUndoManager.Undo();
case (KeyCode)'Y':