mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-26 12:12:02 +00:00
Add subtle click animation and scrollbars.
Also use DWARFv4 explicitly for debug ELFs.
This commit is contained in:
parent
9528e38d61
commit
5aa3eb05b7
3 changed files with 13 additions and 5 deletions
8
Makefile
8
Makefile
|
@ -77,7 +77,7 @@ USBHSFS_PATH := $(TOPDIR)/libs/libusbhsfs
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
ARCH := -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE
|
ARCH := -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE
|
||||||
|
|
||||||
CFLAGS := -g -Wall -Werror -O2 -ffunction-sections $(ARCH) $(DEFINES) $(INCLUDE) -D__SWITCH__
|
CFLAGS := -g -gdwarf-4 -Wall -Werror -O2 -ffunction-sections $(ARCH) $(DEFINES) $(INCLUDE) -D__SWITCH__
|
||||||
CFLAGS += -DVERSION_MAJOR=${VERSION_MAJOR} -DVERSION_MINOR=${VERSION_MINOR} -DVERSION_MICRO=${VERSION_MICRO}
|
CFLAGS += -DVERSION_MAJOR=${VERSION_MAJOR} -DVERSION_MINOR=${VERSION_MINOR} -DVERSION_MICRO=${VERSION_MICRO}
|
||||||
CFLAGS += -DAPP_TITLE=\"${APP_TITLE}\" -DAPP_AUTHOR=\"${APP_AUTHOR}\" -DAPP_VERSION=\"${APP_VERSION}\"
|
CFLAGS += -DAPP_TITLE=\"${APP_TITLE}\" -DAPP_AUTHOR=\"${APP_AUTHOR}\" -DAPP_VERSION=\"${APP_VERSION}\"
|
||||||
CFLAGS += -DGIT_BRANCH=\"${GIT_BRANCH}\" -DGIT_COMMIT=\"${GIT_COMMIT}\" -DGIT_REV=\"${GIT_REV}\"
|
CFLAGS += -DGIT_BRANCH=\"${GIT_BRANCH}\" -DGIT_COMMIT=\"${GIT_COMMIT}\" -DGIT_REV=\"${GIT_REV}\"
|
||||||
|
@ -86,10 +86,10 @@ CFLAGS += `aarch64-none-elf-pkg-config zlib --cflags`
|
||||||
CFLAGS += `aarch64-none-elf-pkg-config libxml-2.0 --cflags`
|
CFLAGS += `aarch64-none-elf-pkg-config libxml-2.0 --cflags`
|
||||||
#CFLAGS += `aarch64-none-elf-pkg-config json-c --cflags`
|
#CFLAGS += `aarch64-none-elf-pkg-config json-c --cflags`
|
||||||
|
|
||||||
CXXFLAGS := $(CFLAGS) -std=c++20 -O2 -Wno-volatile -Wno-unused-parameter
|
CXXFLAGS := $(CFLAGS) -std=c++20 -Wno-volatile -Wno-unused-parameter
|
||||||
|
|
||||||
ASFLAGS := -g $(ARCH)
|
ASFLAGS := -g -gdwarf-4 $(ARCH)
|
||||||
LDFLAGS := -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
|
LDFLAGS := -specs=$(DEVKITPRO)/libnx/switch.specs -g -gdwarf-4 $(ARCH) -Wl,-Map,$(notdir $*.map)
|
||||||
|
|
||||||
LIBS := -lcurl -lmbedtls -lmbedx509 -lmbedcrypto -lxml2 -lz -lusbhsfs -lntfs-3g -llwext4 -lnx
|
LIBS := -lcurl -lmbedtls -lmbedx509 -lmbedcrypto -lxml2 -lz -lusbhsfs -lntfs-3g -llwext4 -lnx
|
||||||
#LIBS += -ljson-c
|
#LIBS += -ljson-c
|
||||||
|
|
|
@ -40,6 +40,7 @@ namespace nxdt::views
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void playClickAnimation(void) override;
|
||||||
void onFocusGained(void) override;
|
void onFocusGained(void) override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -50,6 +51,13 @@ namespace nxdt::views
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<typename ViewType>
|
||||||
|
void FocusableItem<ViewType>::playClickAnimation(void)
|
||||||
|
{
|
||||||
|
/* Play click animation. */
|
||||||
|
if (this->highlight_view) brls::View::playClickAnimation();
|
||||||
|
}
|
||||||
|
|
||||||
template<typename ViewType>
|
template<typename ViewType>
|
||||||
void FocusableItem<ViewType>::onFocusGained(void)
|
void FocusableItem<ViewType>::onFocusGained(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 194e08f18614c46ea8bda54cbc64a256cb421b9d
|
Subproject commit 24aaf094be42c8910f486fce51e0701b34971f9e
|
Loading…
Reference in a new issue