From 0566c9e34c36f7f1841765b02147fd4c890e8550 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Sun, 17 May 2020 13:04:02 +0200 Subject: minor fix --- src/NDSCart.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/NDSCart.cpp') diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp index 5a2a0d0..585eadf 100644 --- a/src/NDSCart.cpp +++ b/src/NDSCart.cpp @@ -867,6 +867,11 @@ bool ReadROMParams(u32 gamecode, u32* params) void DecryptSecureArea(u8* out) { + // TODO: source decryption data from different possible sources + // * original DS-mode ARM7 BIOS has the key data at 0x30 + // * .srl ROMs (VC dumps) have encrypted secure areas but have precomputed + // decryption data at 0x1000 (and at the beginning of the DSi region if any) + u32 gamecode = *(u32*)&CartROM[0x0C]; u32 arm9base = *(u32*)&CartROM[0x20]; -- cgit v1.2.3 From 34133ef75c8f6f735604d7368a79a54724f06b99 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Wed, 20 May 2020 01:09:58 +0200 Subject: make it able to map the Tab key --- src/NDSCart.cpp | 1 + src/frontend/qt_sdl/InputConfigDialog.h | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'src/NDSCart.cpp') diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp index 585eadf..8ced842 100644 --- a/src/NDSCart.cpp +++ b/src/NDSCart.cpp @@ -903,6 +903,7 @@ bool LoadROM(const char* path, const char* sram, bool direct) { // TODO: streaming mode? for really big ROMs or systems with limited RAM // for now we're lazy + // also TODO: validate what we're loading!! FILE* f = Platform::OpenFile(path, "rb"); if (!f) diff --git a/src/frontend/qt_sdl/InputConfigDialog.h b/src/frontend/qt_sdl/InputConfigDialog.h index 82e37bc..de57414 100644 --- a/src/frontend/qt_sdl/InputConfigDialog.h +++ b/src/frontend/qt_sdl/InputConfigDialog.h @@ -80,6 +80,8 @@ protected: void keyPressEvent(QKeyEvent* event) override; void focusOutEvent(QFocusEvent* event) override; + bool focusNextPrevChild(bool next) override { return false; } + private slots: void onClick(); @@ -103,6 +105,8 @@ protected: void focusOutEvent(QFocusEvent* event) override; void timerEvent(QTimerEvent* event) override; + bool focusNextPrevChild(bool next) override { return false; } + private slots: void onClick(); -- cgit v1.2.3