Joined: 10 Dec 2009
|Posted: Wed Jan 05, 2011 3:15 am Post subject: [SRC] MultiTasKing v301 + OSlib mod + libUnrar by Carlosgs
Right now i'm off from programming for the PSP, but i wanted to let you know here that i released the sourcecode for MultiTasKing.
Info and screenshots of the program:
http://psp.scenebeta.com/noticia/multitasking (in spanish)
I made it while learning C (by myself) so it is not a brilliant source code.
This is my first year of university and i have received my first Programming lessons, and i have realised how many stupid mistakes i made in MultiTasKing.
But still, i put a lot on effort in it and made lots of functions that could be useful.
Some of the functions it has:
- Complex 2D vertex drawing (fast): polygons, circles, circle portions, arcs, thick lines, smoothed/normal, etc
- ID3 library, you can load MP3 info and cover image.
- OSlib mod by sakya with some patches and functions added by me.
- Simple .ini config file reading/writting.
- ZIP/RAR extracting. (I ported the latest Rar SRC like AnonymousTipster did, since his code didn't worked for RARv3 -at least for me-)
MultiTasKing has lots of more specific functions, like downloading/extracting in background, mp3/wav player etc.
It also has a simple API where you can easily create list menus and textboxes (that work really fast! but crash sometimes due to their complexity :-S).
Please check the README files for more info.
You can download the SRC here:
Pre-compiled version: http://carlosgs.no-ip.org:8080/PSPhomebrew/multiTasKing/versions/MultiTasKingV301byCarlosgs.rar
(Please let me know if this source helps you in some way :-) )
|Here is some info of the readme in OSlib mod:
|This is another MOD of OSLIB (already mod by Sakya) by Carlosgs,
fixing some functions and adding some more stuff (loading image from memory... etc).
Every mod is marked with "CGS MOD" or similar.
Previous license is kept the same in this mod.
Just mention "Carlosgs" if you use some of my new functions or fixes.
I list here some of the modifications i have made:
|oslPlaySound(OSL_SOUND *s, int voice) //CGS MOD, if we pass voice=-1, it chooses the channel automatically
fixed something in initME();
OSL_SOUND struct has a larger memory for the "filename"
Added some functions for working with the OSK:
void oslOskGetFullText(char *text);//CGS MOD
unsigned short* oslOskGetOutData();//CGS MOD
char* oslOskGetFullTextChar();//CGS MOD
Fixed some functions of the OSK (now works at normal speed in a good way).
Fixed oslHandleLoadNoFailError(const char *filename)
Added OSL_IMAGE *oslLoadImageFileJPGfromMemory(FILE *infile, int location, int pixelFormat) and OSL_IMAGE *oslLoadImageFilePNGfromMemory(FILE *f, int location, int pixelFormat)
And maybe something else but i cant remember.