Homebrew [Release] Lua Player Plus 3DS (lpp-3ds) - LUA interpreter for 3DS

  • Thread starter Thread starter Rinnegatamante
  • Start date Start date
  • Views Views 187,232
  • Replies Replies 1,199
  • Likes Likes 35
Is there some sort of wait command?
Like the one in lpp-vita?

If not, would you help me figure out how to make a wait function?

You can use a Timer to temporary block your thread. (Remember to purge the Timer object and take in mind that Timer uses milliseconds, System.wait in lpp-vita uses microseconds).

--------------------- MERGED ---------------------------

This, for example, is a System.wait implementation for lpp-3ds:

Code:
function System.wait(milliseconds)
   tmp = Timer.new()
   while Timer.getTime(tmp) < milliseconds do end
   Timer.destroy(tmp)
end
 
You can use a Timer to temporary block your thread. (Remember to purge the Timer object and take in mind that Timer uses milliseconds, System.wait in lpp-vita uses microseconds).

--------------------- MERGED ---------------------------

This, for example, is a System.wait implementation for lpp-3ds:

Code:
function System.wait(milliseconds)
   tmp = Timer.new()
   while Timer.getTime(tmp) < milliseconds do end
   Timer.destroy(tmp)
end

Doesn't this cause a useless loop (wasting battery)? What if I wanted a thread to wait like 10 minutes?
 
How do I distribute a homebrew as .cia? Should I compile the source with index.lua on its folder? I have no kernel hax so I can't even experiment myself.
 
How do I distribute a homebrew as .cia? Should I compile the source with index.lua on its folder? I have no kernel hax so I can't even experiment myself.

You can compile the elf provided in the R3 build with your own banner and icon (but it will use index.lua from root of SD card so it's not very good) or you can compile from sources your own build which loads a custom script by editing main.cpp( https://github.com/Rinnegatamante/lpp-3ds/blob/master/source/main.cpp#L85-L88 )
 
Put index.lua in the same directory as the 3dsx
Thanks now works but i got my 3ds now bricked because i used the Cia Manager i tought A button was launch but he delete it.
But still i can use L button i have ThemeHax there before he load it and how i fix my 3ds?
 
Last edited by dannyboy941,
The draw rotated image on the GPU, the documentation says radius, but no angle input? How could a radius be helpful? With no angle to base rotation on.
 
The draw rotated image on the GPU, the documentation says radius, but no angle input? How could a radius be helpful? With no angle to base rotation on.

0, 0 is the angle used for rotation. I'll probably add another function to rotate an image using the center as rotation angle.
 
void Sound.play(wav_id wav_file, int loop, u32 channel, [u32 channel2])
Sorry to be a noob, but where can I find the u32 channel of my wav file?

You can use whatever channel you want expect for dsp reserved ones (from 0x00 to 0x07).
All current homebrews use 0x08 and 0x09 channels for audio.
 
  • Like
Reactions: Jwiz33

Site & Scene News

Popular threads in this forum