diff options
| author | Alexander Taylor <alex@vector35.com> | 2025-02-25 20:32:24 -0500 |
|---|---|---|
| committer | Alexander Taylor <alex@vector35.com> | 2025-03-10 11:12:09 -0400 |
| commit | 1fc3cd833f19ffa534f04caf541e88042124fd91 (patch) | |
| tree | 772b0c73d87d7831dcd94f53bb4b2d4f1e429c98 /platform/decree | |
| parent | 32455f977824cf50ec0049cad16e741f0d050c73 (diff) | |
Remove platform registration API footgun.
Turns out, you can just pass this thing an architecture that is
*completely* different from the one in the platform you are also passing
in and it'll just happily do the wrong thing. While that's pretty wild,
I'm in favor of not having to make this particular mistake again the
next time I copy/paste some code, so we're now deprecating it.
Diffstat (limited to 'platform/decree')
| -rw-r--r-- | platform/decree/platform_decree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/decree/platform_decree.cpp b/platform/decree/platform_decree.cpp index 4d26566c..5c69490c 100644 --- a/platform/decree/platform_decree.cpp +++ b/platform/decree/platform_decree.cpp @@ -58,7 +58,7 @@ extern "C" platform = new DecreeX86Platform(x86); Platform::Register("decree", platform); - BinaryViewType::RegisterPlatform("ELF", 'C', x86, platform); + BinaryViewType::RegisterPlatform("ELF", 'C', platform); } return true; |
