VOGONS


RReady (Rendition Verite wrapper) Test Build (Alpha 1)

Topic actions

Reply 2940 of 2941, by sharangad

User metadata
Rank l33t
Rank
l33t

CGL Load translation complete. Doesn't appear to load correctly. It tries to allocate a massive amount of memory because I think some of the registers aren't setup properly.

At least it's not crashing anymore.

Developer of RReady - Rendition Verité Wrapper.
https://www.youtube.com/@sharangadayananda

Reply 2941 of 2941, by sharangad

User metadata
Rank l33t
Rank
l33t

For some reason, codeconvert.ai is doing a better(?) job today. Here's a much better partial translation.

It's got the structures and the code looks like C without jumps and register references. It also seems to somehow know the variable names, like version, minorversion and build. Maybe they've added some source code from the CGL source to their training set. It also seems to have worked out the stack structure.

Still doesn't work though, writes beyond allocated memory.

CDL structure

// CDL structure definition based on memory offsets used in assembly
typedef struct CDL_Node {
unsigned short version; // offset 0x00
unsigned char minor_version; // offset 0x02
unsigned char build_version; // offset 0x03
char data[30]; // offset 0x02 to 0x22 (padding/data area)
void* data_ptr; // offset 0x23
void* texture_ptr; // offset 0x27
unsigned char texture_count; // offset 0x2B
void* names_ptr; // offset 0x2C
struct CDL_Node* next; // offset 0x30
} CDL_Node;

Auto-generated function prototype

int cdl_load_(const char* filename, CDL_Node* node, unsigned short min_version,
unsigned char min_minor, unsigned char min_build, unsigned int file_id) {

Developer of RReady - Rendition Verité Wrapper.
https://www.youtube.com/@sharangadayananda