From hosted to virtual

When I spread a v0.5 to some people, I did get quite disappointing results. Not many of them managed to get it working. It worked perfectly for my AROS hosted on Linux, but only very rare and unstable on their native machines.

Up to now, I did not have a native AROS around, but I did not want to get some real hardware here. QEMU and VirtualBox are not really working stable on this machine, I think they don't like VMWare already running. But I found an old Icaros VE 1.1 image for VMWare, so I will use that for my native tests. Network works, so I wrote a little script, which fetches the binaries from my build machine (another virtual VMWare guest). WGet is really working well on AROS. I was really happy, that wget is available and a little bit surprised, too ;).

And yes, j-uae does not run well on a native host, if it runs at all. Strange..

Back when I started, I had to hide the main UAE window in order to show only the coherent windows. I tried a hack, just resize it to a 1x1 pixel big window and place it in the lower right corner of the screen. If the user switches back from coherent mode, I just resized it to the original values again. Works nice on hosted. Works *not* on native, as it seems.

But UAE does not really run well without its main window. And I did not want to fix that. So I saw, that you can open a window with WA_Hide in AROS. And it is really hidden! The only thing I did not find (not even in the sources) was a way, to show it again (is there one?).

So now I open a hidden window for coherent mode, if the user changes, I open a visible window and close the invisible one. Problem is, I have to protect all accesses to the main window struct with a semaphore. I hope, this does not cost too much of performance, but so far it seems ok.

So at the moment, j-uae runs on my "native" machine, too :). But I just did a quick test, there are for sure still some bugs remaining..


Post a Comment

<< Home