- add character imprint, awakening, and equipment refinement - add equipment ticket gacha and persistent progression fields - add request-scoped account transactions with crash recovery - persist age confirmation and isolate client plugin patches - separate one-off save repair tools from shipped tooling
17 lines
279 B
Go
17 lines
279 B
Go
//go:build !windows
|
|
|
|
package statetx
|
|
|
|
import "os"
|
|
|
|
func replaceFile(source, destination string) error { return os.Rename(source, destination) }
|
|
|
|
func syncDir(path string) error {
|
|
dir, err := os.Open(path)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
defer dir.Close()
|
|
return dir.Sync()
|
|
}
|