Port Visual boy advance to iPhone

  I don't spent much time on this project, and now the simulator runs very slowly with GBA games, only 20fps. Though I have used the ARM inline asm code instead pure C code, the speed is still not fast enough. But luckily the speed of GB/GBC games can run with 90% or full speed even with the audio. I will not detailly decribe the steps what I have done to port VBA, because it's not necessary, you can just see my code on Google Code(link toVBA4iPhone


What we need:

-Visual Boy Advance 1.7.2 source code, Download

notice that we need to add following compile flag:

1.DC_CORE, we need it to compile in iPhone simulator or device, 

2.DSDL, to use SDL 


-Libpng source code libpng1246, please download from the libpng website

notice that the latest may not compatible.


-SDL1.3

  as SDL 1.3 start to support Android and iPhone, so the port will be much more easier.Download

but also notice that SDL1.3 is still under development, not the final release version. and there's a bug about SDL_Audio with iPhone platform. Just do the following modification or you may get the error like "there're no audio device"

in SDL_config_iphoneos.h:

change #define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1 to

              #define SDL_AUDIO_DRIVER_COREAUDIO 1



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值