|
|
@ -303,7 +303,6 @@ func (s *Server) HandleSavedataClear(w http.ResponseWriter, r *http.Request) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if sessionCompleted {
|
|
|
|
|
|
|
|
fileName := "session"
|
|
|
|
fileName := "session"
|
|
|
|
if slotId != 0 {
|
|
|
|
if slotId != 0 {
|
|
|
|
fileName += strconv.Itoa(slotId)
|
|
|
|
fileName += strconv.Itoa(slotId)
|
|
|
@ -314,7 +313,6 @@ func (s *Server) HandleSavedataClear(w http.ResponseWriter, r *http.Request) {
|
|
|
|
http.Error(w, fmt.Sprintf("failed to delete save file: %s", err), http.StatusInternalServerError)
|
|
|
|
http.Error(w, fmt.Sprintf("failed to delete save file: %s", err), http.StatusInternalServerError)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
w.Write(response)
|
|
|
|
w.Write(response)
|
|
|
|
}
|
|
|
|
}
|
|
|
|