You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#Tests Open a PDB in CruncherSharp, check that it works #rb robert.millar [FYI] marc.audy, guillaume.morreel #rnx #ROBOMERGE-AUTHOR: charles.lefebvre #ROBOMERGE-SOURCE: CL 19344019 via CL 19346417 via CL 19351320 via CL 19351388 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884) [CL 19351977 by charles lefebvre in ue5-main branch]
69 lines
1.4 KiB
C#
69 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace CruncherSharp
|
|
{
|
|
public partial class AddMemPoolsForm : Form
|
|
{
|
|
|
|
public AddMemPoolsForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void buttonOK_Click(object sender, EventArgs e)
|
|
{
|
|
Close();
|
|
}
|
|
public void SetMemPools(List<uint> memPools)
|
|
{
|
|
foreach (var memPool in memPools)
|
|
{
|
|
memPoolsTextBox.Text += memPool;
|
|
memPoolsTextBox.Text += ", ";
|
|
}
|
|
}
|
|
|
|
public List<uint> GetMemPool()
|
|
{
|
|
string[] memPools = memPoolsTextBox.Text.Split(',');
|
|
List<uint> memPoolsList = new List<uint>();
|
|
foreach (var memPool in memPools)
|
|
{
|
|
try
|
|
{
|
|
memPoolsList.Add(UInt32.Parse(memPool));
|
|
}
|
|
|
|
catch (OverflowException)
|
|
{
|
|
}
|
|
|
|
catch (FormatException)
|
|
{
|
|
if (memPool.Contains('-'))
|
|
{
|
|
string[] difference = memPool.Split('-');
|
|
uint value = UInt32.Parse(difference[0]) - UInt32.Parse(difference[1]);
|
|
memPoolsList.Add(value);
|
|
}
|
|
if (memPool.Contains('+'))
|
|
{
|
|
string[] difference = memPool.Split('+');
|
|
uint value = UInt32.Parse(difference[0]) + UInt32.Parse(difference[1]);
|
|
memPoolsList.Add(value);
|
|
}
|
|
}
|
|
}
|
|
return memPoolsList;
|
|
}
|
|
}
|
|
}
|