stardot / beebem-windows

BBC micro emulator for Windows
http://www.mkw.me.uk/beebem/
Other
90 stars 36 forks source link

Cross platform compatibility in econet.cpp #105

Closed sai2791 closed 2 years ago

sai2791 commented 2 years ago

I had been having problems getting the Mac version of Beebem to communicate with the PiEconetBridge hardware. The code between the two code bases are the same for econet.cc/.cpp. The problem was that the windows version of long in the AUNHeader handle field is 32 bits, but when compiled on the Mac is 64bits wide. This causes the Mac version to have the wrong information in the header and to pad the message meaning that the udp message is not recognised correctly by the PiEconetBridge.

sai2791 commented 2 years ago

I am creating a pull request but there's lots of other crap in my first version, just cleaning it up before I submit.