Skip to content

Commit

Permalink
update version string for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ITotalJustice committed Oct 1, 2021
1 parent c9d36b2 commit e4058e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ include $(DEVKITPRO)/libnx/switch_rules
#---------------------------------------------------------------------------------
APP_TITLE := untitled
APP_AUTHOR := TotalJustice
APP_VERSION := 1.0.1
APP_VERSION := 1.1.0
# ICON := assets/app_icon.jpg

TARGET := untitled
Expand All @@ -60,7 +60,7 @@ OUT_SHADERS := shaders
ARCH := -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE

# basic
C_OPTIMISE := -O3 -DNDEBUG
C_OPTIMISE := -O3 -DNDEBUG
# lto
C_OPTIMISE += -flto -ffat-lto-objects -fuse-linker-plugin -flto-compression-level=9 -ffunction-sections -fdata-sections -fmerge-all-constants -Wl,--gc-sections

Expand Down
6 changes: 3 additions & 3 deletions src/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void App::Loop() {
}
}

void Controller::UpdateButtonHeld(bool& down, bool held, HidNpadButton type) {
void Controller::UpdateButtonHeld(bool& down, bool held) {
if (down) {
this->step = 50;
this->counter = 0;
Expand Down Expand Up @@ -87,8 +87,8 @@ void App::Poll() {
this->controller.LEFT = (down & HidNpadButton_AnyLeft);
this->controller.RIGHT = (down & HidNpadButton_AnyRight);

this->controller.UpdateButtonHeld(this->controller.DOWN, (held & HidNpadButton_AnyDown), HidNpadButton_AnyDown);
this->controller.UpdateButtonHeld(this->controller.UP, (held & HidNpadButton_AnyUp), HidNpadButton_AnyUp);
this->controller.UpdateButtonHeld(this->controller.DOWN, held & HidNpadButton_AnyDown);
this->controller.UpdateButtonHeld(this->controller.UP, held & HidNpadButton_AnyUp);

#ifndef NDEBUG
auto display = [](const char* str, bool key) {
Expand Down
3 changes: 1 addition & 2 deletions src/app.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ struct Controller final {
static constexpr int MAX_STEP = 250;
int step = 50;
int counter = 0;
HidNpadButton button_held_type;

void UpdateButtonHeld(bool& down, bool held, HidNpadButton type);
void UpdateButtonHeld(bool& down, bool held);
};

struct AppEntry final {
Expand Down

0 comments on commit e4058e3

Please sign in to comment.