Homebrew Homebrew Development

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,032
Country
United States
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.
 

Kartik

Well-Known Member
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
Last edited by Kartik,
  • Like
Reactions: HamBone41801

HamBone41801

Vipera’s Alt
Member
Joined
Jan 16, 2017
Messages
1,083
Trophies
0
Age
23
XP
974
Country
United States

YugamiSekai

Mr. Picross
Member
Joined
Dec 24, 2014
Messages
2,015
Trophies
1
Age
21
XP
2,275
Country
United States
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
 

HamBone41801

Vipera’s Alt
Member
Joined
Jan 16, 2017
Messages
1,083
Trophies
0
Age
23
XP
974
Country
United States
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.
 

YugamiSekai

Mr. Picross
Member
Joined
Dec 24, 2014
Messages
2,015
Trophies
1
Age
21
XP
2,275
Country
United States
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
 
D

Deleted User

Guest
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.
 

renhei

Well-Known Member
Newcomer
Joined
Jun 21, 2016
Messages
64
Trophies
0
XP
282
Country
United States
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

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Watching the fallout series it is pretty decent