From 967cbeecdd962d7b0cfb4054b0af3ed62533a4a9 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Fri, 15 Mar 2024 15:38:03 -0400 Subject: [PATCH] Fix bad filename --- api/savedata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/savedata.go b/api/savedata.go index 62be50d..e1861f2 100644 --- a/api/savedata.go +++ b/api/savedata.go @@ -215,7 +215,7 @@ func (s *Server) HandleSavedataUpdate(w http.ResponseWriter, r *http.Request) { return } - err = os.WriteFile(fmt.Sprintf("userdata/%s/session%s.pzs", hexUuid, fileName), compressed, 0644) + err = os.WriteFile(fmt.Sprintf("userdata/%s/%s.pzs", hexUuid, fileName), compressed, 0644) if err != nil { http.Error(w, fmt.Sprintf("failed to write save file: %s", err), http.StatusInternalServerError) return