Rinnegatamante / lpp-vita

Lua Player Plus for PSVITA. Documentation on: http://rinnegatamante.github.io/lpp-vita/
GNU General Public License v3.0
179 stars 27 forks source link

JPEG System.takeScreenshot doesn't work #43

Closed Creckeryop closed 4 years ago

Creckeryop commented 4 years ago

0 bytes file appears

Rinnegatamante commented 4 years ago

A possible solution is to move from sceJpegEncoder to libjpeg usage for this. (lpp-3ds code can be taken into account for a solution: https://github.com/Rinnegatamante/lpp-3ds/blob/master/source/luaSystem.cpp#L314-L356 + https://github.com/Rinnegatamante/lpp-3ds/blob/9b09073becb161299045534ed3ea4b3e976c1c34/source/include/graphics/Graphics.cpp#L1557-L1581

Creckeryop commented 4 years ago

sorry for false info, this function works properly.

0 bytes file appears in the next situations: