Questions tagged [devkitpro]

provider of homebrew toolchains for wii, gamecube, ds, gba, gp32 and psp

devkitpro is a provider of homebrew toolchains for wii, gamecube, ds, gba, gp32 and psp

50 questions
72
votes
5 answers

Tutorials for Wii programming

I have a Nintendo Wii, and I've got devkitpro working to load some simple programs. The example source code that I've been able to find is very simplistic, such as drawing and rotating a simple shape. I've been looking for more in depth…
Kibbee
  • 65,369
  • 27
  • 142
  • 182
21
votes
10 answers

Simpler way to set multiple array slots to one value

I'm coding in C++, and I have the following code: int array[30]; array[9] = 1; array[5] = 1; array[14] = 1; array[8] = 2; array[15] = 2; array[23] = 2; array[12] = 2; //... Is there a way to initialize the array similar to the following? int…
Matthew D. Scholefield
  • 2,977
  • 3
  • 31
  • 42
5
votes
2 answers

Help with GBA ARM assembly program

I tried to modify this ARM assembly program (see bottom of the page) to use subroutines. It should display a red screen on the GBA (and compiling the example program it actually does, so it's not a toolchain use problem), but, when I run it, the…
Federico klez Culloca
  • 26,308
  • 17
  • 56
  • 95
4
votes
1 answer

Drawing an image on subscreen of nds

I am totally new to libdns. I try to change the sample Graphics\Backgrounds\256_color_bmp to display the background on the subscreen. Here is my code. Do you have any idea what is missing to display hey_typBitmap on the subscreen? I already managed…
Mathias F
  • 15,906
  • 22
  • 89
  • 159
3
votes
1 answer

Force LDR instruction to place value in literal pool in THUMB assembly

I'm trying to create a matching GBA disassembly using devkitpro, and I'm having trouble with the THUMB instruction LDR R1, =0x3FF. I want it to place 0x3FF in the literal pool and generate a PC-relative address, which is what the assembled version…
3
votes
2 answers

When are objects deleted? Impact of creating objects c++

I am helping program a game in c++ for the Nintendo DS (It has about 3MB of RAM). For all the menus in the interface, a "button" used to be created by calling void function that sets the background tiles to a button. There are at least 30 buttons…
Matthew D. Scholefield
  • 2,977
  • 3
  • 31
  • 42
3
votes
1 answer

Is there a way to extract the symbols from a ELF, and use LD to link another file together with the symbols defined in the previous ELF?

I'm creating an application specifically for the Nintendo Wii using devKitPro. I wanted to make my application modular by offering the ability to load code passed though objcopy -O binary. My problem is, I want the modules to be able to use symbols…
3
votes
7 answers

bring malloc() back to its initial state

Do you know if there is a way to bring back malloc in its initial state, as if the program was just starting ? reason : I am developing an embedded application with the nintendods devkitpro and I would like to be able to improve debugging support in…
PypeBros
  • 2,607
  • 24
  • 37
3
votes
5 answers

Error 'settings' was not declared in this scope

first of all, this is one of my first times writing code so I'm a newb. I'm writing for the nds using devkit pro, and so its all written in c++. I want to have a menu, each menu screen is a void, and I need to have a way to go back to the previous…
Matthew D. Scholefield
  • 2,977
  • 3
  • 31
  • 42
2
votes
0 answers

simple SDL2 c++ program in Switch using devkit pro not booting in emulator

Hello everyone I'm new to switch Homebrew development. I'm starting with SDL2 for Switch Homebrew.I have downloaded and installed devout pro. And opened graphics sdl2-simple example c++ program and compiled it. It compiles successfully and generates…
stark
  • 41
  • 3
2
votes
1 answer

Run msys2 shell in VSCode terminal

I am working with (a customized install of) msys2, and I would like to make it run in the VSCode integrated terminal. However, it doesen't seem to want to run there. Unlike normal msys, it has msys2_shell.bat & msys2_shell.cmd. It seems to always…
2
votes
2 answers

Nintendo DS using PAlib

I've been looking in to Nintendo DS development on behalf of my agency and begun using the devkitPro/libnds and PAlib, it seems ideal for our needs until we decide if it's a viable route for us and hopefully invest/apply for a development kit and…
antonmills
  • 171
  • 2
  • 15
2
votes
1 answer

How to display picture in c++ nds coding

I'm coding in c++ for the nds with devkit pro and for the life of me, I cannot find out how to draw/display a full picture on one of the screen. Something simply for a background image of the titlescreen of a game. I've searched with no luck; only…
Matthew D. Scholefield
  • 2,977
  • 3
  • 31
  • 42
2
votes
1 answer

How do i play audio on devkitPro?

I am trying to develop a app that will use the devkitPro toolkit. How do I play Audio files on Wii? I can't seem to get them to play. I have tried over and over.
Tyler McMaster
  • 1,407
  • 2
  • 14
  • 15
1
vote
1 answer

How would one draw to the sub display of a ds as if it was a framebuffer?

I need to draw raw pixel data to the Nintendo DS's "sub" screen, such as if I was drawing to the main screen in "framebuffer" mode or "Extended Rotation" mode. How can I do this with the current version of libnds (which seems to place restrictions…
Adrian
  • 14,931
  • 9
  • 45
  • 70
1
2 3 4