Forgot to update a few lines of code in the previous commit. Sorry!
This commit is contained in:
taylorthemushroom 2023-09-24 23:07:30 -04:00
parent 5432664f77
commit 2da7947640

View File

@ -21,8 +21,8 @@ static AppPlatform_readAssetFile_return_value AppPlatform_readAssetFile_injectio
stream.read(buf, len);
// Return String
AppPlatform_readAssetFile_return_value ret;
ret.length = str.length();
ret.data = strdup(str.c_str());
ret.length = len;
ret.data = strdup(buf);
return ret;
}