diff options
| author | robojumper <robojumper@gmail.com> | 2024-05-22 19:46:13 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2024-05-22 19:46:41 +0200 |
| commit | 77f8365ac5feb49236f8b5237eac91cdb1912b2c (patch) | |
| tree | 3bfacc8806aee5bd3772e62d22c21b02cf87b901 /src/m/m_dvd.cpp | |
| parent | 02a492fe46cae57186685efda6383f2dc7470874 (diff) | |
Cleanups
Diffstat (limited to 'src/m/m_dvd.cpp')
| -rw-r--r-- | src/m/m_dvd.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/m/m_dvd.cpp b/src/m/m_dvd.cpp index c503216b..82fce847 100644 --- a/src/m/m_dvd.cpp +++ b/src/m/m_dvd.cpp @@ -309,8 +309,8 @@ mDvd_command_c::mDvd_command_c() { } /** 802ef480 */ -extern "C" void fn_802EF480(mDvd_command_c *cmd) { - delete cmd; +void mDvd_command_c::do_delete() { + delete this; } /** 802ef4a0 */ @@ -318,7 +318,7 @@ void mDvd_command_c::destroy(mDvd_command_c **cmd) { // TODO fake match, this looks like an inlined dtor if (cmd != nullptr && cmd != nullptr && *cmd != nullptr) { (*cmd)->done(); - fn_802EF480(*cmd); + (*cmd)->do_delete(); *cmd = nullptr; } } @@ -568,7 +568,7 @@ mDvd_toMainRam_arc_c *mDvd_toMainRam_arc_c::create(EGG::Archive *arc, const char } /** 802efe90 */ -extern "C" mDvd_toMainRam_arc_c *fn_802EFE90(EGG::Archive *arc, const char *path, int mountDirection, EGG::Heap *heap) { +mDvd_toMainRam_arc_c *mDvd_toMainRam_arc_c::createOrFail(EGG::Archive *arc, const char *path, int mountDirection, EGG::Heap *heap) { mDvd_toMainRam_arc_c *cmd = mDvd_toMainRam_arc_c::create(arc, path, mountDirection, heap); while (!cmd) {} return cmd; @@ -608,7 +608,7 @@ mDvd_toMainRam_normal_c *mDvd_toMainRam_normal_c::create(const char *path, int m } /** 802f0030 */ -extern "C" mDvd_toMainRam_normal_c *fn_802F0030(const char *path, int mountDirection, EGG::Heap *heap) { +mDvd_toMainRam_normal_c *mDvd_toMainRam_normal_c::createOrFail(const char *path, int mountDirection, EGG::Heap *heap) { mDvd_toMainRam_normal_c *cmd = mDvd_toMainRam_normal_c::create(path, mountDirection, heap); while (!cmd) {} return cmd; |
