5 Commits

Author SHA1 Message Date
Kawe Mazidjatari
88ef6fdd8b VScript: add partially reversed 'SQClass' type 2024-06-16 20:24:00 +02:00
Kawe Mazidjatari
42a8edc4cd Squirrel: add multiple SQ API functions
Added:
- sq_getstackobj
- sq_pop
- sq_addref
- sq_release
- SQVM::Pop
- RefTable::Get
- RefTable::AddRef
- RefTable::Release
2024-04-19 12:56:09 +02:00
Kawe Mazidjatari
1836146efe Squirrel: reverse more squirrel types and structures
This patch removes a lot of old code. Context is now exclusively grabbed from the CSquirrelVM instance. This patch also comes with a few new types: SQArray and SQTable!

The implementation also allows pushing Vector3D's on the stack, but these are handled slightly differently.. The largest field in tagSQObjectValue is 8 bytes, Vector3D is 12 bytes unaligned, but the tagSQObjectValue field in the tagSQObject struct is aligned to a 8 byte boundary while the field prior is only 4 bytes, Vector3D starts right after the type field in the tagSQObject (at the padding) to keep the whole structure the same size, therefore a new field has been added in between the padding (_pad) with a simple Vector3D accessor.

Also added a hook to allow registering proper script enums.
2024-03-25 01:41:52 +01:00
Kawe Mazidjatari
c0879dc59c Squirrel: add more types and functions
More reversed types, more functions.
2024-03-16 11:36:49 +01:00
Kawe Mazidjatari
fd3e227a86 Align folder structure with p4 2023-09-19 22:13:22 +02:00