![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Reading Psp Firmware Version Using Lua within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; --Want to read your PSP Firmware Version then paste this code in your file white = Color.new(255,255,255) file = io.open("flash0:/vsh/etc/version.txt","r") ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
--Want to read your PSP Firmware Version then paste this code in your file
white = Color.new(255,255,255) file = io.open("flash0:/vsh/etc/version.txt","r") mystring = file:read() file:close() newstring = string.sub(mystring,9,12) screen:clear(white) screen:print(155,136,"Fir mware Version: "..newstring)screen.flip( ) screen.waitVblankStart() Last edited by xpack; 03-15-2007 at 10:57 PM.. |
|
|
|
|
|
#2 |
![]() ![]() ...in a dream...
|
Either put that in code tags or disable smilies in your post. But other than that, nice. I believe this is useable without my modded lua player, as your only reading from flash.
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#3 |
![]() ![]() ![]() Developer
|
cool, do you know how to read the user's name in a similar way? at least in which file it is? I was looking for this before.
|
|
|
|
|
|
#5 |
![]() ![]() Developer
|
I know this isn't helpful as of now, but Lua Player Mod 4 will have a System.nickName() function that returns the PSP's nick name.
__________________
PSP Monopoly | PSP Tic Tac Toe | PSP eMail and SMS | Drag Mini | Block Dude http://www.cools.biaklan.com Currently Working on ????? Quote of the Week |
|
|
|
|
|
#7 | ||
![]() ![]() total-Z
|
Quote:
Quote:
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
||
|
|
|
|
|
#8 |
![]() ![]() Developer
|
Yeah! Mod4 will be pretty interesting
__________________
PSP Monopoly | PSP Tic Tac Toe | PSP eMail and SMS | Drag Mini | Block Dude http://www.cools.biaklan.com Currently Working on ????? Quote of the Week |
|
|
|
|
|
#9 | |
![]() ![]() Developer in Making...
|
Quote:
Code:
white = Color.new(255,255,255)
name = io.open("flash1:/registry/system.dreg","r")
name:seek("set", 0x2380)
user = name:read(27)
name:close()
while true do
screen:clear()
screen:print(100,100, "Your PSP name is:" , white)
screen:print(100,115, user , white)
screen:print(100, 30, "now search next time!", white)
screen.waitVblankStart()
screen.flip()
end
__________________
NEWMy New BLOG!NEW The Wentire Worls in two Sectors.... When did I get dev statz?Spoiler for my PSP homebrewReleases:
Spoiler for Great Quotes:
|
|
|
|
|
|
|
#10 |
![]() ![]() Developer
|
nice black=-)
__________________
1. Failed....again... 2. http://slicer.gibbocool.com/ stay updated on all my projects |
|
|
|
|
|
#11 | |
![]() ![]() .info
|
Quote:
MAC address reading if possible would also be cool This firmware reading snippet, IMO is useful for making flashers in lua, to prevent people using a flasher designed for eg. 3.03OE (icons) on 3.10OE
__________________
|
|
|
|
|
|
|
#12 |
![]() ![]() total-Z
|
Yet again, I already added everything you are all asking for in ipodmocks luaplayer, lol.
Code:
static int Wlan_getmac(lua_State *L)
{
unsigned char sVal[7];
char themac[18];
memset(sVal, 0, 7);
sceWlanGetEtherAddr(sVal);
sprintf(themac,"%02X:%02X:%02X:%02X:%02X:%02X", sVal[0], sVal[1], sVal[2], sVal[3], sVal[4], sVal[5]);
lua_pushstring(L, themac);
return 1;
}
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
#13 |
![]() ![]() ...in a dream...
|
youresam - You know, thats really cool. One thing... you havent released it, so no sense in talking all high of yourself like were idiots for considering implementing something you already have...
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#14 | |
![]() ![]() lol
Join Date: Aug 2006
Real First Name: Robert
Location: Whittier, CA
Just Played: Madden 10
Posts: 5,791
Trader Feedback: 0
|
Quote:
|
|
|
|
|
|
|
#15 | |
![]() ![]() <font color=black>Develo per
|
Quote:
__________________
Calypso - Enjoy the excellent 2D space shooter: http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195 "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...) |
|
|
|
|
|
|
#16 |
![]() ![]() Developer
|
even so theres no point to these lua mods when noone wants to seem to achnowlege(i know i misspelled it) lua any longer
__________________
1. Failed....again... 2. http://slicer.gibbocool.com/ stay updated on all my projects |
|
|
|
|
|
#17 | |
![]() |
Quote:
|
|
|
|
|
|
|
#18 |
![]() ![]() ![]() Developer
|
Nice, so it is possible.. Thanks! That will be useful if I develop another game sometime.
|
|
|
|
|
|
#19 | |
![]() |
Quote:
__________________
[CENTER][SIZE="1"][1 Year QJ Member] [COLOR="Sienna"][LUA Coder and C Learner][/COLOR] [URL="http://dl.qj.net/Ball-Revamped-Clone-v.1-PSP-Homebrew-Games/pg/12/fid/15231/catid/195"] [COLOR="SlateGray"][Ball Revamped Clone v0.1][/COLOR] [/URL] [URL="http://dl.qj.net/Phil-s-Shooting-Range-v0.3-PSP-Homebrew-Games/pg/12/fid/11542/catid/194"] [COLOR="SlateGray"][Phil's Shooting Range v0.3][/COLOR] [/URL] [URL="http://dl.qj.net/Organization-Apps/pg/12/fid/14248/catid/190"][COLOR="SlateGray"][HideFile PRX v2][/COLOR][/URL] [URL="http://dl.qj.net/SSR-PRX-v1.1-PSP-Homebrew-Applications/pg/12/fid/14725/catid/151"][COLOR="SlateGray"][SSR PRX v1.1][/COLOR][/URL] [/SIZE][/CENTER] |
|
|
|
|
|
|
#20 |
![]() ![]() Developer in Making...
|
yup, but he should have gotten it himselfe, thats y I put,
Code:
screen:print(100, 30, "now search next time!", white)
__________________
NEWMy New BLOG!NEW The Wentire Worls in two Sectors.... When did I get dev statz?Spoiler for my PSP homebrewReleases:
Spoiler for Great Quotes:
|
|
|
|
|
|
#22 |
![]() |
You code try something like this
Code:
white = Color.new(255,255,255)
file = io.open("flash0:/vsh/etc/version.txt","r")
mystring = file:read()
file:close()
newstring = string.sub(mystring,9,12)
while true do
screen:clear(white)
if newstring ~= "3.03" then
Sytem.Quit() -- For mods
else
screen:print(155,136,"Fir mware Version: "..newstring) -or whatever you want
end
end
screen.flip( )
screen.waitVblankStart()
|
|
|
|
|
|
#25 |
|
Code:
white = Color.new(255,255,255)
file = io.open("flash0:/vsh/etc/version.txt","r")
mystring = file:read()
file:close()
newstring = string.sub(mystring,9,12)
while true do
screen:clear(white)
if newstring == "3.03" then
Sytem.Quit() -- For mods
else
screen:print(155,136,"Fir mware Version: "..newstring) -or whatever you want
end
end
screen.flip( )
screen.waitVblankStart()
fixed and do you want 3.03 or 3.03 OE-C
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there. Just see some of my work. PM me for GFX. Last edited by pspfreak9; 03-18-2007 at 04:23 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
|
#27 |
|
Code:
white = Color.new(255,255,255)
file = io.open("flash0:/vsh/etc/version.txt","r")
mystring = file:read()
file:close()
newstring = string.sub(mystring,9,12)
while true do
screen:clear(white)
if newstring == "3.03 OE-C" then
screen:print(155,136,"Fir mware Version: "..newstring) -or whatever you want
else
Sytem.Quit() -- For mods
end
end
screen.flip( )
screen.waitVblankStart()
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there. Just see some of my work. PM me for GFX. |
|
|
|
|
|
|
#28 | |
![]() |
Quote:
|
|
|
|
|
|
|
#29 |
|
no thats wrong I just read you first post wait editing
-= Double Post =- Fished editing my last post now it should work xpack you had it backwards if you had 3.03 OE-C it kicked you out! lol
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there. Just see some of my work. PM me for GFX. Last edited by pspfreak9; 03-18-2007 at 04:29 PM.. Reason: Automerged Doublepost |
|
|
|
|
![]() |
| Tags |
| firmware , lua , psp , reading , version |
| Thread Tools | |
|
|