shithub: npe

Download patch

ref: 0408d37559c3683005e812e577fdc86b6f6196ff
parent: 2d42c484b86d9551a6e586b6bf446956602490eb
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Mar 19 11:50:52 EDT 2021

sdl2: rwops: set ops pointers

--- a/libnpe_sdl2/rwops.c
+++ b/libnpe_sdl2/rwops.c
@@ -39,6 +39,11 @@
 	if((f = open(file, mode|OCEXEC)) >= 0 &&
 	    (o = calloc(1, sizeof(*o)+sizeof(npe_sdl_rwops))) != nil &&
 	    Binit((o->p = (void*)(o+1)), f, mode) == 0){
+		o->size = bsize;
+		o->seek = bseek;
+		o->read = bread;
+		o->write = bwrite;
+		o->close = bclose;
 		return o;
 	}