Is there a function to return the PSPLua version

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Longshot
Posts: 1
Joined: Thu Jan 18, 2007 2:00 pm
Location: Australia

Is there a function to return the PSPLua version

Post by Longshot »

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?
TacticalPenguin
Posts: 1
Joined: Wed Jan 24, 2007 3:28 pm

Post by TacticalPenguin »

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

if functionyouneedinordertorunyourprogram() == nil then
print("You need to update your luaplayer!")
end
Post Reply