SiegeLord / DAllegro5

D binding to the Allegro5 game development library
Other
42 stars 15 forks source link

Support 5.1.11 #26

Closed rcorre closed 8 years ago

rcorre commented 8 years ago

This adds fully support for the 5.1.11 API. It is not all tested, but I ported over some examples to validate some of the new additions (there's also a Makefile for building the examples).

The ex_dir example currently segfaults and I haven't been able to figure out why yet, but I wanted to get this PR up.

SiegeLord commented 8 years ago

Fixing the comment above makes ex_dir not segfault for me anymore. One additional thing I noticed is that al_get_fs_entry_name has the wrong type. Once you fix that, changing the print_entry in ex_dir.d to call fromStringz on the returned name should make everything print correctly.

rcorre commented 8 years ago

@SiegeLord yup, you're right. The callback needs to be extern(C).

SiegeLord commented 8 years ago

Great, thanks!