#171006 - pladux - Wed Oct 28, 2009 11:33 am
Hey guys,
i'm working on a little app that is able fetch some data from a website.
Since there is no emulator with wifi support all calls to Wifi_InitDefault leads to a blank window. On the DS everything just works fine, so i'd like to find a way to feed my app with 'fake data' when it runs on an emulator.
I want something like
I do not want
since this would need an other build target.
It would be nice if someone could give me a hint.
i'm working on a little app that is able fetch some data from a website.
Since there is no emulator with wifi support all calls to Wifi_InitDefault leads to a blank window. On the DS everything just works fine, so i'd like to find a way to feed my app with 'fake data' when it runs on an emulator.
I want something like
Code: |
if(runningOnNDS()) { retrieveDataFromInternet() } else { retrieveDataFromLocalFile() } |
I do not want
Code: |
#ifdef NDS retrieveDataFromInternet() #else retrieveDataFromLocalFile() #endif |
since this would need an other build target.
It would be nice if someone could give me a hint.