forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is there a function to return the PSPLua version

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
Longshot



Joined: 18 Jan 2007
Posts: 1
Location: Australia

PostPosted: Thu Jan 18, 2007 2:08 pm    Post subject: Is there a function to return the PSPLua version Reply with quote

Because new functions are added to each version of PSPLua, (and there are a few incompatabilities between Lua V20 and ealier versions) it would be good to have a function which returns the current Lua version.
Perhaps there is one, and Ive missed it. Or is there a work-around?
Back to top
View user's profile Send private message
TacticalPenguin



Joined: 24 Jan 2007
Posts: 1

PostPosted: Wed Jan 24, 2007 3:31 pm    Post subject: Reply with quote

To check if the functions you need are supported do something like:

if functionyouneedinordertorunyourprogram() == nil then
print("You need to update your luaplayer!")
end
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group