mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-29 04:55:58 +02:00
Mintest updates
This commit is contained in:
parent
5879469933
commit
2fbaf061ef
7 changed files with 104 additions and 81 deletions
|
@ -30,6 +30,12 @@ public enum QIntDisplayType
|
|||
COUNT
|
||||
}
|
||||
|
||||
[CRepr]
|
||||
public struct ALLEGRO_COLOR
|
||||
{
|
||||
public float r, g, b, a;
|
||||
}
|
||||
|
||||
namespace Hey.Dude.Bro
|
||||
{
|
||||
class TestClass
|
||||
|
@ -66,13 +72,21 @@ namespace Hey.Dude.Bro
|
|||
#if BF_64_BIT
|
||||
[Import(@"C:\Beef\BeefTools\TestDLL\x64\Debug\TestDLL.dll"), LinkName("Test2")]
|
||||
public static extern void Test2(int32 a, int32 b, int32 c, int32 d);
|
||||
|
||||
[Import(@"C:\Beef\BeefTools\TestDLL\x64\Debug\TestDLL.dll"), LinkName("Test3")]
|
||||
public static extern void Test3(void* ptr, ALLEGRO_COLOR color);
|
||||
#else
|
||||
[Import(@"C:\Beef\BeefTools\TestDLL\Debug\TestDLL.dll"), LinkName("Test2")]
|
||||
public static extern void Test2(int32 a, int32 b, int32 c, int32 d);
|
||||
|
||||
[Import(@"C:\Beef\BeefTools\TestDLL\Debug\TestDLL.dll"), LinkName("Test3")]
|
||||
public static extern void Test3(void* ptr, ALLEGRO_COLOR color);
|
||||
|
||||
[Import(@"C:\Beef\BeefTools\TestDLL\Debug\TestDLL.dll"), LinkName("Test4")]
|
||||
public static extern void Test4(void* ptr, ALLEGRO_COLOR* color);
|
||||
#endif
|
||||
|
||||
[Import(@"C:\Beef\BeefTools\TestDLL\x64\Debug\TestDLL.dll"), CLink]
|
||||
public static extern void Test4(int32 a, int32 b);
|
||||
|
||||
|
||||
|
||||
static uint32 sStaticVar = 234;
|
||||
|
@ -223,15 +237,6 @@ namespace Hey.Dude.Bro
|
|||
|
||||
public static int Main(String[] args)
|
||||
{
|
||||
function void() func = => Florgs;
|
||||
int32 val = (int32)(int)(void*)func;
|
||||
|
||||
//void* ptr = "Hey";
|
||||
//val = (int32)ptr;
|
||||
|
||||
|
||||
//Test2(1, 2, val, 4);
|
||||
|
||||
Blurg.Hey();
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue