Search found 25 matches

by Almamu
Thu Jun 27, 2013 3:30 pm
Forum: DS/DSi Development
Topic: Get ram usage data
Replies: 19
Views: 23904

Get ram usage data

I'm working on a game and I've come to a point that I do not have enough memory left (still dont know if this is true at all or is some bad pointer which is messing the things up a bit).

Is there any function/structure to know how much RAM is used and how much RAM is free?
by Almamu
Mon Jun 24, 2013 8:41 am
Forum: DS/DSi Development
Topic: Help with example projects both screens and keyboard ?
Replies: 3
Views: 7058

Re: Help with example projects both screens and keyboard ?

You'll probably need to use consoleInit function once for each screen (using iprintf and printf for bottom, top writing).
About limiting the bottom text lines, you'll need to do that by hand.
by Almamu
Sat May 04, 2013 3:12 am
Forum: DS/DSi Development
Topic: AP Connection problems on DSi
Replies: 0
Views: 8676

AP Connection problems on DSi

Some hours ago I started writing the networking part of a project which will connect two DS using a normal ap (Comtrend vr-3025un). I configured the AP to assign always the same IP to both DS (3DS=192.168.1.2 and DSi=192.168.1.254) and ran my game with some basic net code on both consoles but the ga...
by Almamu
Thu Sep 27, 2012 11:02 pm
Forum: DS/DSi Development
Topic: Problems listing a directory in nitroFS
Replies: 3
Views: 8023

Re: Problems listing a directory in nitroFS

Sorry but I cant edit the post :\ I fixed the problem, the error wasnt there, for some reason, when I debugged it at first, the log stopped when closedir(pdir) was called, but then I noticed that there was something wrong in my menu code, and that code was calling NF_Error, I'm trying to fix it righ...
by Almamu
Thu Sep 27, 2012 10:41 pm
Forum: DS/DSi Development
Topic: Problems listing a directory in nitroFS
Replies: 3
Views: 8023

Re: Problems listing a directory in nitroFS

I don't see anything immediately problematic in this code. Possibly a bug in nitro filesystem code. Although there is one case in your code that you should be doing closedir(): if(num < 2) { Log::Debug("No songs found\n"); closedir(pdir); // whoops you forgot to close here return 0; } I w...
by Almamu
Thu Sep 27, 2012 10:20 pm
Forum: DS/DSi Development
Topic: Problems listing a directory in nitroFS
Replies: 3
Views: 8023

Problems listing a directory in nitroFS

Using directory functions with NitroFS results in unexpected behavior. For example, when I call closedir its like it calls a different function (probably is NF_Error, I'm using NFlib), If I comment that function the code works fine, until I call it again, then the program crashes. char** songList; c...
by Almamu
Sat Nov 21, 2009 1:45 am
Forum: DS/DSi Development
Topic: Read Nintendo DS User Name
Replies: 1
Views: 2710

Read Nintendo DS User Name

I need to read the Nintendo DS user name:

Code: Select all

PERSONAL_DATA pData;
What more i need to do ???
by Almamu
Sun Oct 11, 2009 11:09 am
Forum: DS/DSi Development
Topic: Read BMP File
Replies: 11
Views: 10219

Re: Read BMP File

Yeah, basically dealing with user-content, which requires that you know the format that you are working with. Once loaded into memory, the format can be whatever to your liking, but understand that in order for it to be shown on-screen, you must comply with the formats the NDS can use to display st...
by Almamu
Sat Oct 10, 2009 7:52 pm
Forum: DS/DSi Development
Topic: Read BMP File
Replies: 11
Views: 10219

Re: Read BMP File

Just to finally clarify what the best approach would be, are any images going to be user provided or are you going to be including what the user can select? If they can be user provided, then you'll need to research the bmp file format and header to know what bytes to read to determine size, bit de...
by Almamu
Sat Oct 10, 2009 1:55 pm
Forum: DS/DSi Development
Topic: Read BMP File
Replies: 11
Views: 10219

Re: Read BMP File

vuurrobin wrote:converting the bmp file with grit makes it a lot easier to get the colors and putting them in vram.
I Know, But I Need To Load On Program Running(If The Player Press Select Loads the BMP File Saved in FAT)