Homebrew SF2D / SFTD black screens

  • Thread starter Thread starter mashers
  • Start date Start date
  • Views Views 981
  • Replies Replies 1

mashers

Stubborn ape
Member
Joined
Jun 10, 2015
Messages
3,837
Reaction score
5,181
Trophies
0
Age
42
Location
Kongo Jungle
XP
5,129
Country
I've just got my homebrew launcher linked to SF2D and SFTD. If I try to initialise SF2D, I get black screens when the 3dsx boots. There is apparently a bug in ctrulib which was causing this, as detailed in this commit:

https://github.com/smealum/ctrulib/commit/9f6f7a57eca369f01804208b9d994516164210a5

I downloaded the source zip from GitHub and the error was still present in gpu.c. So I changed it manually in the code (changing line 218 according to the commit), rebuilt and reinstalled ctrulib, and rebuilt my launcher. Now I get garbage on the screen when it launches. Any ideas what's going wrong here?
 
Ok so the garbage on the screens seems to be cause by calling sf2d_init() as well as gfxInitDefault(). I commented out gfxInitDefault() and the app will launch now, but it flickers with the sf2d clear colour, presumably because ctrulib is drawing as well as sf2d. Do I have to migrate all of the drawing functions from ctrulib to sf2d?
 

Site & Scene News

Popular threads in this forum