diff options
| author | robojumper <robojumper@gmail.com> | 2025-09-13 10:05:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-13 10:05:17 +0200 |
| commit | 342f867df2825eb5d76bea7e2a85cba1cdd60c80 (patch) | |
| tree | 8de6499e1a3ae3dec95d22550b6f68bf20b7f2b7 /src/d/d_sc_title.cpp | |
| parent | 8efc3f6de1b84b3c7f2424e8984b8b0a8fdc2f73 (diff) | |
| parent | da63feb111ea145e33be6d6bf108e6d8f559e77b (diff) | |
Merge pull request #233 from robojumper/arc-dvd-ret-cleanups
Small status/result cleanups for arc managers
Diffstat (limited to 'src/d/d_sc_title.cpp')
| -rw-r--r-- | src/d/d_sc_title.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/d/d_sc_title.cpp b/src/d/d_sc_title.cpp index 73e578d7..91cede66 100644 --- a/src/d/d_sc_title.cpp +++ b/src/d/d_sc_title.cpp @@ -112,32 +112,31 @@ int dScTitle_c::execute() { } int dScTitle_c::doDelete() { - // TODO return codes int result; result = LayoutArcManager::GetInstance()->ensureLoaded2(sFileSelect); - if (result != -2) { - if (result != 0) { + if (result != D_ARC_RESULT_ERROR_NOT_FOUND) { + if (result != D_ARC_RESULT_OK) { return NOT_READY; } LayoutArcManager::GetInstance()->decrement(sFileSelect); } result = LayoutArcManager::GetInstance()->ensureLoaded2(sSkb); - if (result != -2) { - if (result != 0) { + if (result != D_ARC_RESULT_ERROR_NOT_FOUND) { + if (result != D_ARC_RESULT_OK) { return NOT_READY; } LayoutArcManager::GetInstance()->decrement(sSkb); } // TODO here's the other half of the ::destroy fakematch... - if (mpSkbArc->mStatus != 0) { + if (mpSkbArc->isDone()) { mDvd_command_c::destroy((mDvd_command_c **)&mpSkbArc); } else { return NOT_READY; } - if (mpSkbFont->mStatus != 0) { + if (mpSkbFont->isDone()) { mDvd_command_c::destroy((mDvd_command_c **)&mpSkbFont); } else { return NOT_READY; |
