1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-04-22 12:37:36 +00:00

Fix prefix overwriting modkeep modules

This commit is contained in:
David Schmenk 2025-04-12 19:06:29 -07:00
parent 1829b73b60
commit e98ee57e6c

View File

@ -1120,7 +1120,6 @@ def loadmod(mod)#1
rdlen = rdlen - modfix - 2
modaddr = allocheap(modsize)
memcpy(modaddr, moddep, rdlen)
prstr("modaddr = "); prword(modaddr); crout
//
// Read in remainder of module into memory for fixups.
//
@ -1211,7 +1210,6 @@ def loadmod(mod)#1
// Free up rld+esd+bytecode in main memory.
//
releaseheap(modend)
prstr("modend = "); prword(modend); crout
//
// Call init routine if it exists.
//
@ -1393,7 +1391,6 @@ def execmod(modfile)#1
savesym = lastsym
saveflags = systemflags
keep = loadmod(@moddci)
prstr("KEEP flags = "); prword(keep); crout
if keep < modkeep
if not (keep & modflagkeep)
systemflags = saveflags