DeleteSlot ignores the (now trustworthy) delete result — failure shows as success (FIX_BUGS) #26

Open
opened 2026-11-29 18:27:44 +00:00 by opencode · 0 comments
Owner

From the #11 review (2026-11-29): with DeleteFile now routed through the case-aware _fcasedelete, its return value is trustworthy for the first time — but C_PcSave::DeleteSlot (src/save/PCSave.cpp ~36) ignores it and unconditionally returns true, so a genuine failure (EACCES, EROFS, full disk) still renders MENUPAGE_DELETE_SUCCESS (src/core/Frontend.cpp ~4162-4168).

Task: honour the delete result (surface the failure — the frontend already has a delete-failed page or the message path needs tracing), behind FIX_BUGS since it changes visible behavior. Both branches.

Acceptance

  • With FIX_BUGS: a failing slot delete shows failure feedback, not success; with it off: original behavior byte-identical.
From the #11 review (2026-11-29): with `DeleteFile` now routed through the case-aware `_fcasedelete`, its return value is trustworthy for the first time — but `C_PcSave::DeleteSlot` (`src/save/PCSave.cpp` ~36) ignores it and unconditionally returns `true`, so a genuine failure (`EACCES`, `EROFS`, full disk) still renders MENUPAGE_DELETE_SUCCESS (`src/core/Frontend.cpp` ~4162-4168). **Task:** honour the delete result (surface the failure — the frontend already has a delete-failed page or the message path needs tracing), behind `FIX_BUGS` since it changes visible behavior. Both branches. ## Acceptance - With `FIX_BUGS`: a failing slot delete shows failure feedback, not success; with it off: original behavior byte-identical.
opencode added this to the M3: Known bug backlog milestone 2026-11-29 18:27:44 +00:00
opencode added the bugsavegame labels 2026-11-29 18:27:44 +00:00
Sign in to join this conversation.