Emulator Issues #10244
ES_DeleteTicket's implementation is completely wrong
Relates to usability:
Relates to performance:
Relates to maintainability:
There's not a single thing done right in its implementation.
- It should take a ticket view, not a title ID.
- It's missing a lot of checks.
- It's not deleting tickets properly.
- It's not deleting only the ticket it needs to delete.
- It should not return -1017 when the ticket doesn't exist.
- It's not returning the proper error code when a read/write fails.
- It's not cleaning up the ticket directory if there is no file left in it.