Search found 182 matches

by danzel
Wed Apr 19, 2006 5:56 am
Forum: PSP Development
Topic: C++ on PSP
Replies: 5
Views: 1809

add " -lstdc++ " to the end of your LIBS= line in your makefile.

Also, your usage of new is slightly incorrect, you need to call the constructor as follows:

Code: Select all

pInstance = new CPad();
Hope that helps :)
by danzel
Mon Apr 17, 2006 11:10 pm
Forum: PSP Development
Topic: [Interested?] OldSchool Library
Replies: 249
Views: 138215

Wow, that was cool, it ran under cedega even.
Yeah, a 'powered by' or something would be good, but overall it is impressive :)
by danzel
Mon Apr 17, 2006 11:22 am
Forum: PSP Development
Topic: danzeff OSK
Replies: 36
Views: 24078

danzeff OSK

I'm making available the OSK I introduced with AFKIM2 under the BSD license so other projects can make use of it. It was designed by myself and Jeff Chen from the pspupdates forums. Latest Version: 2 -- http://localhost.geek.nz/crap/danzeff_src_2.zip Currently there are only implementations for SDL ...
by danzel
Tue Apr 11, 2006 10:01 am
Forum: PSP Development
Topic: Loading of wifi modules in V2+
Replies: 2
Views: 2805

@Fanjita - yeah, peldet is probably doing some dumb things with the wifi, it should really be updated sometime.... One thing, both webnab and afkim just lock up when you try quit with L+R+Start, their quit handlers just contain sceKernelExitGame(); return 0; (They are written in c++ if it makes a di...
by danzel
Mon Apr 10, 2006 11:41 pm
Forum: PSP Development
Topic: NO-KXploit Patcher for 1.50
Replies: 14
Views: 11356

This is without a doubt the coolest thing I have seen all day.
Awesome work moonlight :D
by danzel
Fri Apr 07, 2006 8:58 am
Forum: PSP Development
Topic: Am I mad? - linux on PSP...
Replies: 36
Views: 15631

That uCLinux 'supposed' port was released on april 1st.
Perhaps someone could take a look over it with a decompiler.
by danzel
Fri Mar 31, 2006 10:12 pm
Forum: PSP Development
Topic: Files in eboot for single file programs
Replies: 25
Views: 9023

(iirc) Writing the data out to a file would go like this: FILE* outfile = fopen("somefile", "w"); size_t written = fwrite(bob, 1, bobSize, outfile); fclose(outfile); printf("wrote %i bytes\n", written); Sta...
by danzel
Fri Mar 31, 2006 5:26 pm
Forum: PSP Development
Topic: Files in eboot for single file programs
Replies: 25
Views: 9023

A quick look at the code of bin2c explains what it does: It reads in your input file and create a c file containing the following code: extern const unsigned char %s[]; extern const unsigned int %sSize; static const unsigned char %s[] = {%x,%x....}; ...
by danzel
Tue Mar 28, 2006 12:46 pm
Forum: PSP Development
Topic: Common error when enumerating Wifi connections
Replies: 2
Views: 1608

Common error when enumerating Wifi connections

I've recently discovered a small bug that was in PSPPets wifi examples in the way it enumerates wifi connections. for &#40;iNetIndex = 1; iNetIndex < 100; iNetIndex++&#41; // skip the 0th connection &#123; //variable declarations go here if &#40;sceUtilityCheckNetParam&#40;iNetIn...
by danzel
Tue Mar 28, 2006 11:13 am
Forum: PSP Development
Topic: SDL / SDL_Image / SDL_TTF Efficency Problems
Replies: 14
Views: 4221

maybe you need to flush the psp cache?
Call sceKernelDcacheWritebackAll(); before rendering the screen.

Thats seems an okay way to cache the fonts, shouldn't be taking any real performance hit from that.
by danzel
Mon Mar 27, 2006 7:19 pm
Forum: PSP Development
Topic: SDL / SDL_Image / SDL_TTF Efficency Problems
Replies: 14
Views: 4221

You really hate on SDL don't you Brunni :P Its not as slow as you think, tryed the commander keen port for psp? That's using SDL and has no problems with speed. You can get TTF font stuff using the freetype library, you definately need to use a font cache to get good speed though. Rendering glyphs f...
by danzel
Wed Mar 22, 2006 10:43 pm
Forum: PSP Development
Topic: Problem with USE_PSPSDK_LIBC = 1 and libpng
Replies: 12
Views: 4243

I'm going to say that libpng is compiled against newlib (as has been said) when you need to compile it against pspsdk-libc. Try add: USE_PSPSDK_LIBC = 1 To the makefile for libpng and compile+install it again. (Don't know if this is enough) Why do you need to use the pspsdk libc in the first place? ...
by danzel
Tue Mar 21, 2006 9:55 pm
Forum: PSP Development
Topic: undefined reference to `_init()'
Replies: 2
Views: 1512

Try replace the definition of _init() with this:

Code: Select all

#ifdef __cplusplus
extern "C" &#123;
#endif
extern void _init&#40;void&#41;; 
#ifdef __cplusplus
&#125;
#endif
It's required if you are using c++
by danzel
Mon Mar 20, 2006 8:08 pm
Forum: PSP Development
Topic: Simulate a game sharing spot
Replies: 5
Views: 2415

http://oopo.net/consoledev/ Scroll down and there is a tiny bit of example code related to this: [04-08-2005] psp-gameshare-1.0.0.c - A program to listen and respond to gameshare requests. I think you'll find that you need to send signed eboots, this can probably be bypassed on a 1.0 psp, but on 1.5...
by danzel
Mon Mar 20, 2006 7:55 pm
Forum: PSP Development
Topic: Neo Flash PSP App Competition
Replies: 3
Views: 1420

Good luck to you too, some of the shots from your lib look awesome!
I'll have a play with it when I get some free time.
by danzel
Sun Mar 19, 2006 1:38 pm
Forum: PSP Development
Topic: Neo Flash PSP App Competition
Replies: 3
Views: 1420

Neo Flash PSP App Competition

I know this isn't quite an appropriate post for this forum, but I feel its worth posting anyway. Neo Flash has a PSP App competition, which is finishing 20th March, by the fact there is no entries yet I'm guessing its not well known. I'm going to release something new later today and enter it, but I...
by danzel
Wed Mar 15, 2006 3:22 pm
Forum: PSP Development
Topic: [HELP] read txt file + resources
Replies: 6
Views: 1577

Are you coding this in python?
If so then standard python file input/output should work (I haven't tryed it myself, but thats the general gist I've got)
by danzel
Sat Mar 11, 2006 2:45 pm
Forum: PSP Development
Topic: support for sys/poll
Replies: 2
Views: 1697

You should be able to use select fine with no work arounds, the include you need is <sys/fd_set.h> iirc
by danzel
Wed Mar 08, 2006 6:58 pm
Forum: PSP Development
Topic: PSP Flash Chip Facts: The Good, the Bad and the Ugly
Replies: 194
Views: 146897

hahaha nice work :D
by danzel
Thu Feb 16, 2006 9:14 pm
Forum: PSP Development
Topic: ncurse for the PSP? [Question]
Replies: 7
Views: 2370

I do still plan to add ssh to peldet, its a mission getting it all ported to psp though, and I haven't had the time to do it due to other engagements and work on webnab (I'll port the new font renderer back to peldet in the future). Pre-release pic for the next webnab, don't post it else where pleas...
by danzel
Thu Feb 16, 2006 7:30 am
Forum: PSP Development
Topic: ncurse for the PSP? [Question]
Replies: 7
Views: 2370

You could probally do it using the source of peldet. There is a fairly complete vt100 emulator in there, I could extract it out if you want.

You'll need to do quite a bit of work, but it would be possible.
by danzel
Thu Feb 16, 2006 7:25 am
Forum: PSP Development
Topic: Which IDE to use for developing for the PSP
Replies: 8
Views: 3015

Haha, Same here UsefulIdiot.

Kate + Konsole.
switch to the konsole to compile:
make kxploit
make install

Code: Select all

install&#58;
    mount /mnt/psp && cp peldet peldet% /mnt/psp/psp/game/ && umount /mnt/psp
IIRC thats what the install line from my makefile is.
by danzel
Tue Feb 14, 2006 12:31 pm
Forum: PSP Development
Topic: receive udp packets?
Replies: 6
Views: 2770

Fairly good one for tcp:
http://www.cs.rpi.edu/courses/sysprog/sockets/sock.html

Can't really find one for udp, but feel free to post when you get stuck.

Danzel.
by danzel
Mon Feb 13, 2006 10:28 am
Forum: PSP Development
Topic: receive udp packets?
Replies: 6
Views: 2770

sceNetInetRecvfrom (or recvfrom in standard unix sockets) is a blocking call, it blocks untill it receives a packet. I guess that this is what is happening. If you don't want it to block, then investigate using select (http://www.lowtek.com/sockets/select.html) or making it nonblocking and polling i...
by danzel
Fri Feb 10, 2006 9:28 pm
Forum: PSP Development
Topic: [question] Ramdrive, with custom mapping?
Replies: 2
Views: 1506

For memory stick read/write performance, read this thread:
http://forums.ps2dev.org/viewtopic.php?t=4720
by danzel
Fri Feb 03, 2006 2:48 pm
Forum: PSP Development
Topic: wifi with python/bittorrent port
Replies: 6
Views: 2457

I hate to be offtopic(ish) in this post, but DustinFraze - You're wrong. The memory stick transfer speed on psp is alot faster than you can get on the wifi ( see here ). There is no disadvantage from seek times (instant seek on a memory stick), so we can store chunks straight into the file in the co...
by danzel
Fri Feb 03, 2006 9:43 am
Forum: PSP Development
Topic: wifi strangeness
Replies: 1
Views: 1034

wifi strangeness

I've been getting reports of a few people having trouble with apps which use the new-ish net code in the pspsdk, but they have no trouble with apps using the old nlh lib (from PspPet). It seems to be that sceNetResolverStartNtoA never returns. http://forums.qj.net/showthread.php?t=34539&page=5&a...
by danzel
Wed Feb 01, 2006 8:11 pm
Forum: PSP Development
Topic: How NOT to brick your PSP
Replies: 13
Views: 5318

basically: dont touch the flash.

Running in usermode is good, as then you can't touch it :)
by danzel
Wed Feb 01, 2006 8:03 am
Forum: PSP Development
Topic: libcurl/resume
Replies: 7
Views: 2080

ah yeah.... hhhhmmmm. Might be worth taking it to the mailing list, I'd assume there is a way, but I don't know how and haven't found anything with google. One more idea you've probally already thought of: Since you know the full size the first time you try download it, you can tell if its resumes b...
by danzel
Tue Jan 31, 2006 9:24 pm
Forum: PSP Development
Topic: libcurl/resume
Replies: 7
Views: 2080

Well since you are passing in the offset of where to resume from, you could use that to work out the numbers you want ;) Perhaps pass the offset into the CURLOPT_PROGRESSDATA and then use it in the callback function, adding the amount onto both dltotal and dlnow to get correct values. Pass in a valu...