![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on [DEV LIB]Mootje's API for LPHMv2 within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Since there aren't many LPHMv2 developers (because all the old LPHM devs think it's so hard), I've decided to write ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() |
Since there aren't many LPHMv2 developers (because all the old LPHM devs think it's so hard), I've decided to write a library that will simplify all the functions. They will be even easier than the old LPHMs' ones!
So, here's a list of what I've already done: Code:
initColors() | initiates all the LPHMv2 colors (white, green, black, ...)
initButtons() | initiates all the buttons so you don't have to keep calling "pad = Controls.read()" or pad:cross(), it's just cross or x or circle or up...
initCursor(speed,cursor image path) | speaks for itself
initiate() | will load all the functions that start with "init"
cursor() | will show the a cursor with the specs from initCursor()
print(x,y,text,color) | will print "text" to the screen with the original XMB font, if there's no color it will automatically print in black
f:init(font path,font size) | load a font
f:print(x,y,text,color) | will print "text" with the f:init() specs,if there's no color it will automatically print in black
f:term() | unloads the font
load(file type,file path) | there are 10 different file types:
1: PBP
2: PSX
3: PRX
4: ELF
5: LUA
6: sound (eg: wav)
7: MP3
8: OGG
9: AA3
10: AAC
blit(x,y,image path) | speaks for itself
read(path) | will load the "path" file and show it's content
assign(flash) | will assign a flash. eg: assign(2) will assign flash2:/
pause(seconds) | will freeze the homebrew for the number of seconds given
usb(device,mode) | will activate the usb with the specified device and mode, eg: usb("ms0:",true)
osk(title,input) | speaks for itself
encrypt(file path,new name) | since LPHMv2 can't read encrypted scripts I've decided to make my own code encrypter
execute(file) | will execute the previously encrypted "file"
get.nick() | will search for the PSPs nickname and will return "nickname" as it's nickname (I felt like making my own one :P)
browser(device,mode) | will show a browser that will explore "device" in the selected mode, there are two modes:
1: tile map
2: list
eg: browser("flash0:",2)
|
|
|
|
|
|
#2 |
![]() Enter Custom Title
|
"(because all the old LPHM devs think it's so hard)"
Not really. It isn't hard, so people just prefer to use other things like pge because it has less bulk. |
|
|
|
|
|
#4 |
![]() ![]() Developer
|
nice work
__________________
Heres to the Wyvern, Heres to getting Wyvern, Heres to staying Wyvern, And if you can't get Wyvern....... You should become a kingsman! http://arnold.hyperphp.com/ arnold, Light_AleX and my releases D² |
|
|
|
|
|
#10 |
![]() ![]() |
just to say that I've officially dropped this project.
why? because I realized what I was doing: trying to bring noobs to C/C++ with their "hello worlds" and "button testers" I'm sorry but after what happened to Lua, I just can't see the same thing happen to C++ but for the (real) devs that are still interested in this, you can contact me by PM and I'll send you the C++ files ![]() anyway, this thread is just as good as locked ![]() later! |
|
|
|
|
|
#11 | |
![]() Developer
My Mood:
Join Date: May 2009
Real First Name: wouldn't you like to know lol
Location: Ireland
Just Played: Nothing
Posts: 74
Trader Feedback: 0
|
Quote:
Bring noobs to C/C++? What?? You were making a simplified API to allow Lua coders to make apps or games easier. So what on earth does any of that have to do with what you said above?? |
|
|
|
|
|
|
#12 | |
![]() ![]() |
Quote:
now do you get what I mean? |
|
|
|
|
|
|
#13 | |
![]() Developer
My Mood:
Join Date: May 2009
Real First Name: wouldn't you like to know lol
Location: Ireland
Just Played: Nothing
Posts: 74
Trader Feedback: 0
|
Quote:
![]() Much better explanation
|
|
|
|
|
|
|
#15 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
why dont you just implement it into luaplayer hm and release a new version the source is availible and that coms under the terms of the liscence.
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference. My Website: is down for a while ... I'll bring a new one back soon. Currently working on: (0) PGE Gears Of War - On hold (Very large project). (0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix). |
|
|
|
|
|
#16 | |
![]() ![]() |
Quote:
anyway, here's the Lua version
|
|
|
|
|
![]() |
| Tags |
| api , dev , libmootje , lphmv2 |
| Thread Tools | |
|
|