Skip to content

Commit

Permalink
Actually fix the issue because my God I can't stand this anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed Sep 3, 2024
1 parent c7633ef commit 8df4cb0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

project(IntegratedDemonlist VERSION 1.6.1)
project(IntegratedDemonlist VERSION 1.6.2)

add_library(${PROJECT_NAME} SHARED
src/IDListLayer.cpp
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Integrated Demonlist Changelog
## v1.6.2 (2024-09-03)
- Actually fix the issue because my God I can't stand this anymore

## v1.6.1 (2024-09-02)
- Fixed a bug where the enter key would not work at all

Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"win": "2.206",
"mac": "2.206"
},
"version": "v1.6.1",
"version": "v1.6.2",
"id": "hiimjustin000.integrated_demonlist",
"name": "Integrated Demonlist",
"developer": "hiimjustin000",
Expand Down
12 changes: 8 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,16 @@ class $modify(IDKeyboardDispatcher, CCKeyboardDispatcher) {
bool dispatchKeyboardMSG(enumKeyCodes key, bool down, bool repeat) {
if (key == KEY_Enter && down) {
auto listLayer = static_cast<IDListLayer*>(CCDirector::sharedDirector()->getRunningScene()->getChildByID("IDListLayer"));
if (listLayer) listLayer->search();
if (listLayer) {
listLayer->search();
return true;
}

auto packLayer = static_cast<IDPackLayer*>(CCDirector::sharedDirector()->getRunningScene()->getChildByID("IDPackLayer"));
if (packLayer) packLayer->search();

return listLayer || packLayer;
if (packLayer) {
packLayer->search();
return true;
}
}
else return CCKeyboardDispatcher::dispatchKeyboardMSG(key, down, repeat);
}
Expand Down

0 comments on commit 8df4cb0

Please sign in to comment.