#149325 - PypeBros - Fri Jan 18, 2008 1:51 pm
I am trying to load a .nds from another .nds file, reusing the chism stub and some code from DSChannels. As far as i can tell, there is no way to work around the need for a "card.dldi" file stored at a well-known location on the media card, right ?
the .nds to be loaded comes from a network download, so i'd rather avoid to require pre-patching of the file and would like the patch to be applied "live" at run-time. Still, i'd like to allow users who don't need a .dldi patch (e.g. because they have a linker directly supported by libfat) to work without it, which means i need a way to detect whether the driver the libfat is using right now comes from a patch or is a "native" part of the libfat.
Any clue on how i should proceed ?
(i was thinking of comparing the address of the driver's readblock funtion with the end of compile-time size of the binary, but i fear that'd be a too hackish way to proceed)...
Thanks in advance.
_________________
SEDS: Sprite Edition on DS :: modplayer
the .nds to be loaded comes from a network download, so i'd rather avoid to require pre-patching of the file and would like the patch to be applied "live" at run-time. Still, i'd like to allow users who don't need a .dldi patch (e.g. because they have a linker directly supported by libfat) to work without it, which means i need a way to detect whether the driver the libfat is using right now comes from a patch or is a "native" part of the libfat.
Any clue on how i should proceed ?
(i was thinking of comparing the address of the driver's readblock funtion with the end of compile-time size of the binary, but i fear that'd be a too hackish way to proceed)...
Thanks in advance.
_________________
SEDS: Sprite Edition on DS :: modplayer