Ok, so, I have explained in another topic that I won’t do livestreams with my Haiku development, but I would occasionally blog about stuff. There isn’t always enough material for a blogpost, so here I will do somewhat shorter posts telling how my day (or week) went.
This and next week I am off work, so I have more time than usual for opensource software development, which I plan to spend on finishing various projects that I have started a few time ago and had to put on the side for lack of time.
The first is the ACE Amstrad CPC Emulator. More about it at https://ace.cpcscene.net
Yesterday, I made a new release of it with several small bugfixes that accumulated in my Git repository over the last 6 months. So far so good, no problems with that. Then I started looking into “acepansions”, these are add-ons to ACE that allow to emulate various peripherals for the Amstrad CPC machine. I already have the framework set up to port each add-on to Haiku easily. I should mention that this is a “native port”, which means, I completely rewrote the GUI for ACE and all of the plugins, and made a compatibility wrapper for the core of the emulator (which is originally developped for MorphOS). So, I worked on some of the add-ons and started adding them to ACE website. Again, no problem so far.
One thing I need to do is draw a nice icon for each add-on, so that it looks nice in Tracker. Handmaus did provide me with some icons, which look great. But there are more add-ons. And so I need to make new icons. I turned, of course to Icon-O-Matic. My goal was simple: I want to make an icon for the Multiplay expansion, which allows connecting a mouse and joystick to the CPC. An obvious icon for this can be obtained by merging the icons for Mouse and Joystick preferences. So, I opened the Joystick icon, appended the Mouse icon, went to resize and move things around and… Icon-O-Matic crashed. Uh-oh.
So, I made a bug report. I looked at other bug reports and found that another one for a crash on saving was a bit similar. I could confirm that after appending a file to another (if the first had transforms), I could reproduce the crash. So I started adding traces in the code and, with the help of Debugger, finally identified the problem. You can find the patch here: https://review.haiku-os.org/c/haiku/+/7052
Interesting story? I don’t know. The problem is, that last paragraph is what took me most of the day to figure out (not fully focused on it, of course, I’m off work and trying to relax a bit!).
So, what did you work on today? Did you fix a bug? Did you implement a new cool feature in Haiku or in your own app? Let us know!