I finally got a bit of time to get mod_time working.
The functions seem to work fine, so now the three functions it contains (ftime, get_timer and time) seem to work fine.
The nice thing is that this means that SDL is being initialized at the program startup. This is important as SDL is the main library behind Bennu, so it's always nice to see it not crashing.
I also added the test case for this library (examples/05_mod_time.prg, 04_mod_math.prg is missing, sorry for that) in case you wanna give it a try.
More updates to come.
Showing posts with label mod_time. Show all posts
Showing posts with label mod_time. Show all posts
Saturday, October 31, 2009
Tuesday, October 27, 2009
mod_time in (will crash) and mod_proc thoughts
Spent a bit of time today getting mod_time to work with Bennu.
This module makes use of SDL for the ftime function, therefore I've had to make bgdi link to it.
bgdi will crash if you try to use it as it is (get_timer and time should work fine, though) because I SDL must be running for this function to work, and I don't yet initialize it, but that shouldn't be too hard to do.
Also, spent a few minutes looking at mod_proc. It defines a few LOCALs and GLOBALs, so I have to find the place where they belong to.
Stay tuned for more updates.
PS: re-reading this, get_timer will also crash, as it also uses SDL. Initializing SDL isn't hard to do, at all, so these crashes should be easy to fix.
This module makes use of SDL for the ftime function, therefore I've had to make bgdi link to it.
bgdi will crash if you try to use it as it is (get_timer and time should work fine, though) because I SDL must be running for this function to work, and I don't yet initialize it, but that shouldn't be too hard to do.
Also, spent a few minutes looking at mod_proc. It defines a few LOCALs and GLOBALs, so I have to find the place where they belong to.
Stay tuned for more updates.
PS: re-reading this, get_timer will also crash, as it also uses SDL. Initializing SDL isn't hard to do, at all, so these crashes should be easy to fix.
Subscribe to:
Posts (Atom)