mirror of
https://wiilab.wiimart.org/wiimart/WiiMart-Patcher
synced 2025-09-06 13:31:28 +02:00
Fully save DOL once patched
This commit is contained in:
parent
42957bf13f
commit
04f03c72d3
4
main.go
4
main.go
@ -108,6 +108,10 @@ func main() {
|
|||||||
fmt.Println(aurora.Green("Applying DOL patches..."))
|
fmt.Println(aurora.Green("Applying DOL patches..."))
|
||||||
applyDefaultPatches()
|
applyDefaultPatches()
|
||||||
|
|
||||||
|
// Save main DOL
|
||||||
|
err = originalWad.UpdateContent(1, mainDol)
|
||||||
|
check(err)
|
||||||
|
|
||||||
// Load main ARC
|
// Load main ARC
|
||||||
arcData, err := originalWad.GetContent(2)
|
arcData, err := originalWad.GetContent(2)
|
||||||
check(err)
|
check(err)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
"crypto/x509"
|
"crypto/x509"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
@ -27,7 +28,9 @@ miip:*
|
|||||||
[exclude]
|
[exclude]
|
||||||
*`, baseDomain)
|
*`, baseDomain)
|
||||||
|
|
||||||
file.Write([]byte(filter))
|
// Replace UNIX line (LR) returns with that of Windows (CRLF).
|
||||||
|
output := bytes.ReplaceAll([]byte(filter), []byte("\n"), []byte("\r\n"))
|
||||||
|
file.Write(output)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tag represents a single byte representing a tag's ID.
|
// Tag represents a single byte representing a tag's ID.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user