Search found 51 matches

by Alberto
Tue Mar 09, 2010 9:52 pm
Forum: PSP Development
Topic: psp controlled robot!
Replies: 3
Views: 3137

I think the PSP will control it via web; the serial (TCP teminal) port is connected to the local router and the robot itself.

A.
by Alberto
Tue Mar 02, 2010 12:14 am
Forum: PSP Development
Topic: [Solved] Error on compiling LTE mod sample
Replies: 2
Views: 2511

Hi, first of all, remove the -I from INCDIR, and -L from LIBDIR, I don't think this is the main issue, but for cleanness... ;-) then, are there any other source files needed for this project .c, .c++, .cpp, etc.)? I fso, then add the relevant .o in the line OBJS, just leaving a space between them. H...
by Alberto
Mon Mar 01, 2010 4:47 am
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

ok, finally, considering what is a relative, absolute and with or without drive for the libc, and having performed a bunch of tests with different paths (I guess I covered all the possibilities...) I see __psp_path_absolute perfectly suits my needs. Anyway, talking a bit about it has been nice. Chee...
by Alberto
Sun Feb 28, 2010 6:13 pm
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

Yes, these are all working as expected indeed, no complains for these. 2. "./test.txt" gives "host0:/TEST/host0:./test.txt" WRONGGG! I don't believe this -- it works fine in my tests, and returns "host0:/TEST/test.txt" it was the very first test I've made, as I use thi...
by Alberto
Sun Feb 28, 2010 5:27 am
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

I think you should post the function once done, since it sounds helpful :-P I'll certainly do. Just few days to see if I can also get the relative paths work for different devices, storing them during chdir's. I have really done almost nothing after the last release (due to so many exams), but I've...
by Alberto
Sat Feb 27, 2010 9:26 pm
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

Hi there, Of course not! well, thanks for trusting... :-D It was just that I had posted about getcwd here twice, and didn't got an answer xD yeah, I see, but getcwd is one thing, but expanding a relative path prepending the getcwd result and then resolving all the . and .. entries is another. good l...
by Alberto
Sat Feb 27, 2010 6:45 am
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

I don't see why can't you use getcwd. I do use it. The thing is that I _want_ to expand relative paths (including . and ..) to absolute ones, no matter whther they exist or not. So far, realpath doesn't suit my needs, as it returns NULL for non existen paths. __psp_path_absolute returns wrong resul...
by Alberto
Sat Feb 27, 2010 6:15 am
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

That's what __psp_path_absolute does. mmm, ok, it does to some extent... I checked it out, but found the following misbehaviors: assumed: we run from "host0:/TEST/" locals... 1. "test.txt" gives "host0:/TEST/test.txt" CORRECT 2. "./test.txt" gives "host0...
by Alberto
Fri Feb 26, 2010 5:44 pm
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

Hi, sorry, I meant "broken by desing"... but haven't read to the end the manpage. It's "broken" for it's impossible to determine a suitable size for the output buffer, not for the behavior. TTYTT, I can write C ot C++ code -more or less- easily; what I don't know is the complete ...
by Alberto
Fri Feb 26, 2010 5:15 am
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

realpath

ok, as I said, it works... but... is it correct, that if I try to explode a path that doesn't exist, it returns NULL? I see in the man pages that it's buggy, so does this behavior fall into the word "buggy"? If it _is_ so, I think I'll stuck with my implementation; maybe extend it a little...
by Alberto
Thu Feb 25, 2010 6:25 am
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

jimparis wrote:Oh, you said C, not C++.
Wrap the prototype:

Code: Select all

extern "C" {
  char *realpath(const char *path, char *resolved_path);
}
ehm... it works. :-D

Thank you... gonna save tip this for future issues.
by Alberto
Wed Feb 24, 2010 7:10 pm
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

here's the compilation log (hope it's what you asked) rm -f empty.elf empty.prx main.o /home/batman/Projects/PSP/library/utils.o /home/batman/Projects/PSP/library/fileutils.o /home/batman/Projects/PSP/psplib/pspapplication.o /home/batman/Projects/PSP/psplib/pspcrt.o PARAM.SFO EBOOT.PBP EBOOT.PBP psp...
by Alberto
Wed Feb 24, 2010 6:07 pm
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

Ok,

let me arrange a smaller app that gives me the errors and I'll post everything later on, today.

Thanks for the support,
A.
by Alberto
Wed Feb 24, 2010 5:49 am
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

It's there... maybe you have an old newlib or you're using psplibc or something. try: psp-nm /usr/local/pspdev/psp/lib/libc.a | grep realpath this is what I got: realpath.o: 00000000 T realpath Don't have a clue of what this may mean, but looks like I have it... so I need to compile the application...
by Alberto
Sun Feb 21, 2010 11:42 pm
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

It's in newlib, but I think it's missing from the header file. Just add its prototype: char *realpath(const char *path, char *resolved_path); sorry to bug, now I do get it compiled, but get "undefined reference to realpath" I just defined the prototype at the beginning of ...
by Alberto
Sat Feb 20, 2010 5:52 am
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

Use realpath: char buf[MAXPATHLEN]; if (realpath("../", buf) != NULL) { printf("the absolute path is %s\n", buf); } good find... thou' I'm not able to compile: 'realpath' was not declared in this s...
by Alberto
Sat Feb 20, 2010 5:23 am
Forum: PSP Development
Topic: fopen VS. sceIoOpen ?
Replies: 20
Views: 16020

included the case after a suspend mode ? I have always been told that before going to suspend mode I need to save my open files (together with theis file positions, of course), if any., and then allow suspend. When resuming from suspend (there is the callback...) reopen the files that were open and...
by Alberto
Tue Feb 16, 2010 7:58 am
Forum: PSP Development
Topic: fopen VS. sceIoOpen ?
Replies: 20
Views: 16020

I've tried sceIoOpen as I have used fopen. However, this results in error: 0x8002032c this looks like the dwd (current working directory) has not been set. I don't know how to set it, (I had a thread few days ago about somenting smilar which I solved my way...) But from the params passed to your pr...
by Alberto
Sun Feb 14, 2010 6:09 am
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

Thank you both for the answer. actually, I don't need to change the directory, so sceIoChdir has no use for me. Finally I ended up writing a function from scratch; it _does_ know the base folder to use in case of relative paths (the running folder I can get from argv[0], and that would eventually ch...
by Alberto
Sat Feb 13, 2010 4:43 am
Forum: PSP Development
Topic: paths
Replies: 35
Views: 37485

paths

Hi all, sorry to ask maybe a stupid question, but I'm dealing with paths and filenames, and would like to know if there si a function for expanding a relative path to an absolute one. I'm "pretty" new to the "C" language, and after having find'd grep'd the pspdsk and the internet...
by Alberto
Wed Feb 10, 2010 11:54 pm
Forum: PSP Development
Topic: threads
Replies: 7
Views: 3976

You could write your own callback mechanism using a thread that checks the keys and on changes calls another function (your callback function). yes, indeed that is what I was finally worging on, today... seems the only possibility. Anyway, as I see I cannot have two threads working at the same time...
by Alberto
Wed Feb 10, 2010 6:15 pm
Forum: PSP Development
Topic: threads
Replies: 7
Views: 3976

Can I ask why you want that? It doesn't seem all that useful. of course you can ask; just because I would like to implement something like a keys (and not only) buffer The callback for the analog joystick sounds like a bad requirement - how far should the nub move before you get a callback, for ins...
by Alberto
Tue Feb 09, 2010 7:36 am
Forum: PSP Development
Topic: threads
Replies: 7
Views: 3976

That's pretty much what sceCtrlReadBuffer() does. It reads the keys and then reschedules your thread to run at the next vblank. so just do{ sceCtrlReadBuffer(...); //i get here once per vblank ... } while (!exit_program); does what you want. Jim nop...
by Alberto
Tue Feb 09, 2010 7:31 am
Forum: PSP Development
Topic: freetype
Replies: 6
Views: 3240

Re: freetype

Ben, And remember: intraFont does NOT render truetype fonts, but the PSPs internal *.pgf fonts, which you get to see in the XMB, dialogs, etc.) uh... sorry, I didn't read carefully... thought that the fontloader thing referred to the intrafont stuff. So, I think I found everything out and nothing fa...
by Alberto
Tue Feb 09, 2010 5:52 am
Forum: PSP Development
Topic: threads
Replies: 7
Views: 3976

threads

Hi all, sorry for the topic, but couldn't find anything better. Here's what I need: a procedure that is being constantly called every certain amount of time (I don't care about how often, provided I can count on it being every frame-start, or 60 times a second... I think it should be enough). I gues...
by Alberto
Tue Feb 09, 2010 5:37 am
Forum: PSP Development
Topic: freetype
Replies: 6
Views: 3240

freetype

ok guys, thanks for the tips. I took a look at the pgefont library, and was able to find out what I needed to get started: load library, load face, load 255 glyphs... Now, I have some questions: 1. is it true that I have to instantiate a face for every size I need, and then have all the glyphs "...
by Alberto
Fri Feb 05, 2010 4:09 am
Forum: PSP Development
Topic: freetype
Replies: 6
Views: 3240

Hi. Thanks both to BenHur and Carl0sgs. I'll try both solutions, but will probably go for the intrafont one. I just definitely need to use a TTF font, so if intrafont allows me to, I'll go for it. Be prepared to further questions... actually, I do everything with a framebuffer graphic library I made...
by Alberto
Thu Feb 04, 2010 5:22 am
Forum: PSP Development
Topic: freetype
Replies: 6
Views: 3240

freetype

Hi guys,

I would like to have a look at this library for a project I am currently on, but I see it's not that easy... :-(

Could ayone point me to some tutorial and/or code snippet just to start out with something? Like just rendering a word on the PSP screen using a TTF (or similar) font.

TIA
A.
by Alberto
Thu Jan 28, 2010 5:28 pm
Forum: PSP Development
Topic: Building PRX using Code::Blocks without makefile
Replies: 12
Views: 7628

DirkJanssen wrote:Thanks that made a lot clear :D Have converted it to codeblocks now, will let you guys know if it worked! :D thanks again
Have you been successfull in having C::B do all the things for you without any external makefile? I am using C::B as well, and would be interested in this...

Cheers, A.
by Alberto
Sun Jan 10, 2010 7:09 am
Forum: PSP Development
Topic: Downloading a Text File
Replies: 7
Views: 3392

ChrisMims wrote:(...)Also, is there a way to do this with OSLib?
just because I was looking at OSLib in the past days...
OSLib is just a graphic layer, has nothing to do with Curl... so what's the point?

A.