logs archiveBotHelp.net / Freenode / #3dsdev / 2015 / July / 17 / 2
yuriks
ugh, the linear heap behavior is so weird
you can free a hole in it, and then later reallocate that hole
but you can allocate a new section off the end that's non contiguous
you can't*
(even though you could get the same layout by allocating a contiguous chunk and then freeing a hole in it)
falur
weird :P
another question: is it correct that __service_ptr is not initialized/configured by ctrulib but already set by the 3DS OS ?
yuriks
no, it's set by the homebrew loader
(likely ninjhax)
if it's compiled as CIA homebrew then it simply isn't set and remains 0
falur
then if it 0 then how do we get service handles ?
yuriks
from the OS
that list is just for extra handles that the loader can provide and that you might not have regular access to
but on CIA homebrew you control the access list anyway so that doesn't matter
falur
hmm ok ctrulib __get_handle_from_list seems to assume that it is not 0
yuriks
uh, why do you think that?
it has an explicit check for 0 right at the start, even :P
falur
yes "assume" is not the right word, I meant if it is 0 then nothing will work no ?
yuriks
no, check where __get_handle_from_list is called
« prev 1 2 next »