love-android icon indicating copy to clipboard operation
love-android copied to clipboard

ERROR: prefix must be at least 3 characters

Open Toodice opened this issue 11 years ago • 0 comments

I'm getting this error upon loading a .love file. It appears to be due to the prefix for the temporary file created in forceExtractToTempFile (LoveZip.java) sometimes being less than three characters long.

while (sTempPrefix.length() < 3) {
    sTempPrefix = "_" + sTempPrefix;
}

The above could be added before line 204 to ensure that the prefix is at least three characters long. (I'm unable to check out the source and test this right now, unfortunately.)

Toodice avatar Oct 26 '13 17:10 Toodice