Skip to content

Commit 202c561

Browse files
committed
enable preliminary .bin loader for hhk2
Signed-off-by: QBos07 <qubos@outlook.de>
1 parent fd6bc30 commit 202c561

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <cstdint>
1313
#include <cstdio>
1414
#include <cstdlib>
15+
#include <cstring>
1516
#include <memory>
1617
#include <sdk/calc/calc.h>
1718
#include <sdk/os/debug.h>
@@ -88,7 +89,9 @@ int main() {
8889
std::unique_ptr<Executable> choosen;
8990
{
9091
std::forward_list<std::unique_ptr<Executable>> list;
91-
// discover<BinaryLoader>::run(list);
92+
if (std::strcmp(reinterpret_cast<const char *>(addresses),
93+
"2017.0512.1515") == 0) // 2000 aka original hhk2
94+
discover<BinaryLoader>::run(list);
9295
discover<ELFLoader>::run(list);
9396
choosen = do_gui(list);
9497
}

0 commit comments

Comments
 (0)