Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
@@ -0,0 +1,24 @@
package lgres
import "io"
// BlockWriter is for writing data of a single block in a resource.
type BlockWriter struct {
target io.Writer
finisher func()
bytesWritten uint32
}
func (writer *BlockWriter) finish() (length uint32) {
writer.finisher()
writer.finisher = nil
writer.target = nil
return writer.bytesWritten
}
// Write stores the given data in the block and follows the Writer interface.
func (writer *BlockWriter) Write(data []byte) (written int, err error) {
written, err = writer.target.Write(data)
writer.bytesWritten += uint32(written)
return
}