mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 11:37:14 +08:00
remove leftover dir creation
This commit is contained in:
parent
b463a64003
commit
d39d2d4e7f
@ -20,7 +20,6 @@ package savedata
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
"github.com/klauspost/compress/zstd"
|
||||
@ -37,12 +36,6 @@ func Update(uuid []byte, slot int, save any) error {
|
||||
log.Print("failed to update account last activity")
|
||||
}
|
||||
|
||||
// ideally should have been done at account creation
|
||||
err = os.MkdirAll(fmt.Sprintf("userdata/%x", uuid), 0755)
|
||||
if err != nil && !os.IsExist(err) {
|
||||
return fmt.Errorf(fmt.Sprintf("failed to create userdata folder: %s", err))
|
||||
}
|
||||
|
||||
switch save := save.(type) {
|
||||
case defs.SystemSaveData: // System
|
||||
if save.TrainerId == 0 && save.SecretId == 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user