Homebrew Homebrew Development

  • Thread starter Thread starter aliak11
  • Start date Start date
  • Views Views 1,475,205
  • Replies Replies 6,048
  • Likes Likes 54
Is this right?
Code:
                    C3D_FrameBegin(C3D_FRAME_SYNCDRAW);
                    textVtxArrayPos = 0; // Clear the text vertex array
                    // Update the uniforms
                    C3D_FVUnifMtx4x4(GPU_VERTEX_SHADER, uLoc_projection, &projection);
                    sf2d_start_frame(GFX_TOP, (gfx3dSide_t)topfb);
                    // --> Draw textures and (by Citro3D) text <--
                    sf2d_end_frame();
                    C3D_FrameEnd(0);
Text still disappears. :(
I'm kinda new to using Citro with other graphic libs.
You can't use sf2d either. Citro3d replaces both.
 
Last edited by Kartik,
  • Like
Reactions: HamBone41801
I keep getting this error when compiling the latest ctrulib, is there any fix?

Code:
console.c
arm-none-eabi-gcc -MMD -MP -MF <path>/ctrulib-master/libctru/build/console.d -g -Wall -Werror -O2 -mword-relocations -ffunction-sections -fomit-frame-pointer -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -I/<path>/ctrulib-master/libctru/include  -I/<path>/ctrulib-master/libctru/build -DARM11 -D_3DS -c /<path>/ctrulib-master/libctru/source/console.c -o console.o
<path>/ctrulib-master/libctru/source/console.c:467:2: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  con_write,
  ^
<path>/ctrulib-master/libctru/source/console.c:467:2: note: (near initialization for 'dotab_stdout.write_r')
<path>/ctrulib-master/libctru/source/console.c:485:2: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  debug_write,
  ^
<path>/ctrulib-master/libctru/source/console.c:485:2: note: (near initialization for 'dotab_3dmoo.write_r')
cc1.exe: all warnings being treated as errors
make[1]: *** [console.o] Error 1
make: *** [build] Error 2
 
I keep getting this error when compiling the latest ctrulib, is there any fix?

Code:
console.c
arm-none-eabi-gcc -MMD -MP -MF <path>/ctrulib-master/libctru/build/console.d -g -Wall -Werror -O2 -mword-relocations -ffunction-sections -fomit-frame-pointer -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -I/<path>/ctrulib-master/libctru/include  -I/<path>/ctrulib-master/libctru/build -DARM11 -D_3DS -c /<path>/ctrulib-master/libctru/source/console.c -o console.o
<path>/ctrulib-master/libctru/source/console.c:467:2: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  con_write,
  ^
<path>/ctrulib-master/libctru/source/console.c:467:2: note: (near initialization for 'dotab_stdout.write_r')
<path>/ctrulib-master/libctru/source/console.c:485:2: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  debug_write,
  ^
<path>/ctrulib-master/libctru/source/console.c:485:2: note: (near initialization for 'dotab_3dmoo.write_r')
cc1.exe: all warnings being treated as errors
make[1]: *** [console.o] Error 1
make: *** [build] Error 2
Send me your code and I'll see what I can do.
 
all I can do at the moment is take a wild guess, but try replacing

x = y = 1;
if(sscanf(escapeseq,"[%d;%c", &y, &c) == 2 && (c == 'f' || c == 'H')) {
currentConsole->cursorX = x;
currentConsole->cursorY = y;
escaping = false;
break;
}

with

x = y = 1;
if(sscanf(escapeseq,"[;%d%c", &y, &c) == 2 && (c == 'f' || c == 'H')) {
currentConsole->cursorX = x;
currentConsole->cursorY = y;
escaping = false;
break;
}

in the file console.c
didn't work
 
Question regarding NTR Plugin development.

Suppose you want to develop an NTR Plugin that uses a certain 3DS service. Must the title you run the plugin in have access to the service in order for the plugin itself to access the service?

For example, suppose you have a plugin that uses the ssl:c service. Would said plugin work if you ran it in a game that didn't have access to ssl:c?

I apologize, I'm not very knowledgeable on NTR's workings. Thanks in advance.
 
Is it possible to use the ctrulib console and sf2d at the same time? I'm trying to make a simple program for me to learn, where I use sf2d to draw a dot on the top screen at the coordinate that I touch on the bottom screen. I have that part done, but I want to integrate the console in with it, with the console on either on the top or bottom screen. But sf2d and gfx functions conflict and nothing works if I try to use both. Do I just need to use something else that supports both text and graphics like CPP3DS (any others?), or is it possible to use them together? Here is what I have so far. Thanks you!

Also, is it possible to use Eclipse as an IDE on Windows? I tried Netbeans, but due to Cygwin and MSYS being a mess in regards to file paths I can't compile from within Netbeans. Code completion and error detection and everything works which is very nice, but if I could compile too that would be convenient. Not a big deal though.
 

Site & Scene News

Popular threads in this forum