PSP Hacks - Forums

Go Back   PSP Hacks - Forums > Tech Talk > LUA Scripting

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 11-21-2006, 12:19 AM
Binary Binary is offline
PSP Newbie
 

Join Date: Nov 2006
Location: urans
Posts: 22
Binary Has a Beginner Reputation
Default

I download this boot protector and not really happen that you can use the home button to bypass or take the card out. Well some of my little nephews already know how to do that so I kind of a noob on this lua stuff and I download this protector from QJ. So can somebody please help me put a disable home on this?

index.lua
Code:
red = Color.new(255, 0, 0)
black = Color.new( 0, 0, 0)

file = io.open("password", "r")
PasswordLine = file:read()
file:close()

PasswordEntry = { 0, 0, 0, 0, 0}

CurrentPasswordNumber = 1

TextGap = 20
TextStart = 174

LastPadState = Controls.read()

while true do
	CurrentPadState = Controls.read()

	if CurrentPadState:right() and not LastPadState:right()then
		CurrentPasswordNumber = CurrentPasswordNumber + 1
		if CurrentPasswordNumber > 5 then
			CurrentPasswordNumber = 1
		end
	end

	if CurrentPadState:left() and not LastPadState:left()  then
		CurrentPasswordNumber = CurrentPasswordNumber - 1
		if CurrentPasswordNumber < 0 then
			CurrentPasswordNumber = 5
		end
	end

	if CurrentPadState:up() and not LastPadState:up() then
		PasswordEntry[CurrentPasswordNumber] = PasswordEntry[CurrentPasswordNumber] + 1

		if PasswordEntry[CurrentPasswordNumber] > 9 then
			PasswordEntry[CurrentPasswordNumber] = 0
		end
	end

	if CurrentPadState:down() and not LastPadState:down() then
		PasswordEntry[CurrentPasswordNumber] = PasswordEntry[CurrentPasswordNumber] - 1

		if PasswordEntry[CurrentPasswordNumber] < 0 then
			PasswordEntry[CurrentPasswordNumber] = 9
		end
	end

	if CurrentPadState:select() then
                screen:save("screenshot.tga")
        end

	local password = ""

	for i=1,table.getn(PasswordEntry) do
		password = password .. PasswordEntry[i]
	end

	LastPadState = CurrentPadState

	background = Image.load("background.png")
	screen:blit(0, 0, background, false)

	screen:print(164,89,"Enter your password",red)

	for i=1,table.getn(PasswordEntry) do
		if i == CurrentPasswordNumber then
			screen:print(TextStart+i*20, 109, PasswordEntry[i], red)
		else
			screen:print(TextStart+i*20, 109, PasswordEntry[i], black)
		end
	end

	if password == PasswordLine then
		os.exit()
	elseif password == "052987" then
                os.exit()
        end

	screen.waitVblankStart()
	screen.flip()
        end
Reply With Quote
  #2  
Old 11-21-2006, 05:27 AM
ST@TIC ST@TIC is offline
PSP Newbie
 

Join Date: Nov 2006
Location: South Africa
Posts: 42
ST@TIC Has a Beginner Reputation
Default

The problem you have is that LUA runs over the XMB shell and you cant edit LUA to disble the Home button..But ask around maybe there is a way...
__________________

\"Death be not proud, some have called thee mighty and great, thou art not so\"
Reply With Quote
  #3  
Old 02-05-2008, 06:35 PM
kyl10's Avatar
kyl10 kyl10 is offline
PSP Hacker
 

Join Date: Dec 2007
Posts: 819
kyl10 Has a Beginner Reputation
Default

if you made your own password protect program in C or something there is a way to disable home. :mrgreenthumbsup:
__________________
My websites: C00l5tuffs - JG Studios
Reply With Quote
  #4  
Old 02-12-2008, 06:36 AM
Blade_punk's Avatar
Blade_punk Blade_punk is offline
Programmer
PSP Monk
 

Join Date: Nov 2006
Location: Candy Mountain
Posts: 2,741
Blade_punk will become famous soon enoughBlade_punk will become famous soon enough
Default

you could quite easily do it if you edited the lua player and recompiled it
__________________

-Rock Station-
PSN: Xsjado7

Reply With Quote
  #5  
Old 02-12-2008, 08:16 AM
kyl10's Avatar
kyl10 kyl10 is offline
PSP Hacker
 

Join Date: Dec 2007
Posts: 819
kyl10 Has a Beginner Reputation
Default

yeah, and how would you do that? :D
__________________
My websites: C00l5tuffs - JG Studios
Reply With Quote
  #6  
Old 02-12-2008, 02:29 PM
Blade_punk's Avatar
Blade_punk Blade_punk is offline
Programmer
PSP Monk
 

Join Date: Nov 2006
Location: Candy Mountain
Posts: 2,741
Blade_punk will become famous soon enoughBlade_punk will become famous soon enough
Default

remove the call backs, disabling the home button
__________________

-Rock Station-
PSN: Xsjado7

Reply With Quote
  #7  
Old 02-12-2008, 03:28 PM
kyl10's Avatar
kyl10 kyl10 is offline
PSP Hacker
 

Join Date: Dec 2007
Posts: 819
kyl10 Has a Beginner Reputation
Default

no, i meant how to edit the lua player. :surprised:
__________________
My websites: C00l5tuffs - JG Studios
Reply With Quote
  #8  
Old 02-14-2008, 01:02 AM
Blade_punk's Avatar
Blade_punk Blade_punk is offline
Programmer
PSP Monk
 

Join Date: Nov 2006
Location: Candy Mountain
Posts: 2,741
Blade_punk will become famous soon enoughBlade_punk will become famous soon enough
Default

Quote:
Originally Posted by Blade_punk
remove the call backs
__________________

-Rock Station-
PSN: Xsjado7

Reply With Quote
  #9  
Old 02-14-2008, 10:08 AM
kyl10's Avatar
kyl10 kyl10 is offline
PSP Hacker
 

Join Date: Dec 2007
Posts: 819
kyl10 Has a Beginner Reputation
Default

no, no, i meant how do you edit the LUA PLAYER. i know that you are supposed to remove the callbacks, but where do you get the source (main.c) for the LUA PLAYER?
__________________
My websites: C00l5tuffs - JG Studios
Reply With Quote
  #10  
Old 02-14-2008, 02:26 PM
Blade_punk's Avatar
Blade_punk Blade_punk is offline
Programmer
PSP Monk
 

Join Date: Nov 2006
Location: Candy Mountain
Posts: 2,741
Blade_punk will become famous soon enoughBlade_punk will become famous soon enough
Default

http://luaplayer.org/downloads/lp20/....20_source.zip
__________________

-Rock Station-
PSN: Xsjado7

Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:35 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©