Search found 11 matches

by MagicianFB
Mon Dec 05, 2005 2:56 am
Forum: PSP Lua Player Development
Topic: Fonts
Replies: 8
Views: 3524

Fonts

When I try to load a font and print it, it doesn't seem to work. Can anyone tell me what's wrong? These are my codes: white = Color.new(255, 255, 255) t = Font.load("times.ttf") screen:fontPrint(t, 10, 10, "hello", white) sc...
by MagicianFB
Sat Nov 12, 2005 2:30 am
Forum: PSP Lua Player Development
Topic: Detect files?
Replies: 4
Views: 2797

table.getn(System.listDirectory())

If you're not in the root directory you'll get to extra files.
by MagicianFB
Tue Nov 08, 2005 8:01 am
Forum: PSP Lua Player Development
Topic: String to Code
Replies: 6
Views: 3511

Ok.. got it

print(assert(loadstring("3+3"))) -> 6
by MagicianFB
Mon Nov 07, 2005 9:32 am
Forum: PSP Lua Player Development
Topic: String to Code
Replies: 6
Views: 3511

String to Code

Is there any way to convert a string to normal code?

for example

Code: Select all

print(tocode("3+3"))
would print 6
by MagicianFB
Wed Oct 12, 2005 7:35 pm
Forum: PSP Lua Player Development
Topic: File browser
Replies: 5
Views: 2905

KawaGeo wrote:Is that all, just three indices? What about dates? I wonder.
When you print all values of an indice by doing the following:

Code: Select all

table.foreach(contents[1], print)
Those are the only three you get.
by MagicianFB
Wed Oct 12, 2005 11:54 am
Forum: PSP Lua Player Development
Topic: File browser
Replies: 5
Views: 2905

Each indice of the results of System.listDirectory(), has three parts. name: the name of the file size: the size of the file in bytes directory: a boolean saying whether the file is a directory/folder heres a quick example of a code to display the names all files on the root of the memory stick: con...
by MagicianFB
Wed Oct 12, 2005 11:23 am
Forum: PSP Lua Player Development
Topic: C Functions
Replies: 3
Views: 2264

I did, I just had some trouble understanding it.
by MagicianFB
Wed Oct 12, 2005 10:53 am
Forum: PSP Lua Player Development
Topic: C Functions
Replies: 3
Views: 2264

C Functions

I'm pretty sure it's possible to execute C Functions in lua. Can anyone explain how?
by MagicianFB
Mon Oct 10, 2005 11:15 am
Forum: PSP Lua Player Development
Topic: System.listDirectory()
Replies: 3
Views: 2541

flattspott wrote:maybe it should be something like so..

System.listDirectory( path )
I think if you don't have the path it just does the current directory.
by MagicianFB
Mon Oct 10, 2005 9:08 am
Forum: PSP Lua Player Development
Topic: System.listDirectory()
Replies: 3
Views: 2541

Nevermind, ignore the above.
Now I need to know how come every indice of listdir is an empty table.
by MagicianFB
Mon Oct 10, 2005 8:54 am
Forum: PSP Lua Player Development
Topic: System.listDirectory()
Replies: 3
Views: 2541

System.listDirectory()

Does any one know how this works?
When I do this:

Code: Select all

listdir = System.listDirectory()
table.foreach(listdir, print)
All the values are some thing like this:
table: 0x89a6b78