index.lua said:red = Color.new(255,0,0)
green = Color.new(0,255,0)
Graphics.init()
function onshotdraw(x1,x2,y1,y2,color)
Graphics.fillRect(x1,x2,y1,y2,color)end
Screen.flip()
Screen.refresh()
Graphics.fillRect(x1,x2,y1,y2,color)
while true do
Graphics.initBlend(TOP_SCREEN)end
if Controls.check(Controls.read(), KEY_A) then
onshotdraw(20,50,30,40,red)elseif Controls.check(Controls.read(), KEY_B) then
onshotdraw(40,60,40,50,green)end
Graphics.termBlend()
Screen.waitVblankStart()

Big fan of these latest commits to LPP on the Github.
One last final thing I've got a question about is, is it possible to do a OneShotPrint with GPU rendering?
In my previous posts I figured out the double-buffer thing with CPU rendering but I've been playing around with GPU rendering and haven't figured it out.
Here's what I've got so far
So what this does right now is that it gets a box based on input to stick on screen which is good but once I try to apply the other box the first box get erased. It's like Screen.Refresh() always clears everything
function GPUOneShotPrint(func, screen)
Graphics.initBlend(screen)
func()
Graphics.termBlend()
Screen.flip()
Screen.refresh()
Graphics.initBlend(screen)
func()
Graphics.termBlend()
end
The Sound.close()/term() functions aren't working, sound just keeps playing. And if I exit the homebrew then go back again the audio resumes from where it left off (though if you stay in the Homebrew Launcher for a while everything kind of "resets" and when you open the homebrew again it won't resume).
Oh, I see. I wasn't pausing it. Thanks!You should first stop your sound with Sound.pause(), then close it to free RAM with Sound.close() and then stop sound module with Sound.term() (Sound.term should be called only when exiting your homebrew).
The creator can correct if I'm reading this wrong but from the first postI take it no Ninjhax 2? Since it tries to use kernel escalation?
- Automatic kernel access escalation for Ninjhax users
I know. So no Ninjhax 2. But could it work without the kernelhax?The creator can correct if I'm reading this wrong but from the first post

Thanks for the info.Kernel Escalation is done only on 9.2 or below.
NH2 is supported but simply libkhax fails to start.


Is there a way to turn off the screens? Doesn't appear on the docs but just asking.

Is JPGV the same as M-JPEG? The description on wikipedia sure seems to match, and when I search for jpgv on google your github is the second result.
If you're interested in including a more common format, yellows8's github has something to accept VP8 which I think is webm? (Some webm might be VP9 now though). I couldn't make the dependencies work but maybe someone who knows what they're doing can figure it out.
M-JPEG should be easy enough to work with though so it's nothing urgent.
EDIT: Ah ok, I should have actually read your github. So it's basically a container for MPEG? Sounds like it should be doable.


I can't seem to get the ftp server to start. I press Y and nothing happens. Is this an issue with ninjhax2?


So I have set up your method partially correct but here is what happens when I try to testRegarding the IDE:
I use ZeroBrane Studio with some custom scripts for auto complete and launching Citra.
![]()
Interpreter: http://pastebin.com/ApcGk4tE
API: http://pastebin.com/gALW2PEK
Instructions: Download the raw citra.lua and lpp.lua files above. You will have to edit citra.lua to reflect your lpp-3ds.3dsx and citra paths.
Go to your ZeroBrane install and place citra.lua in ZeroBraneStudio\interpreters and lpp.lua under ZeroBraneStudio\api\lua.
Then in the IDE, go to Project > Lua Interpreter and select "LPP/Citra". Auto complete should work and hitting Execute (F6) should launch Citra.


