Bump version

Also fix typo and remove redundant code
Add bash script for ndk-stack
This commit is contained in:
Attila Uygun 2023-05-28 00:37:52 +02:00
parent f6f67d7e53
commit 685b17aba6
6 changed files with 14 additions and 10 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="18"
android:versionName="1.0.2">
android:versionCode="19"
android:versionName="1.0.3">
<application
android:allowBackup="false"

6
build/android/stack Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
BUILD="$1"
if [[ -z "$1" ]]; then
BUILD="debug"
fi
adb logcat | ndk-stack -sym ./app/build/intermediates/merged_native_libs/"$BUILD"/out/lib/arm64-v8a

View File

@ -22,7 +22,7 @@ using namespace eng;
namespace {
constexpr char kVersionStr[] = "Version 1.0.2";
constexpr char kVersionStr[] = "Version 1.0.3";
constexpr char kMenuOption[Menu::kOption_Max][10] = {"continue", "start",
"credits", "exit"};

View File

@ -22,8 +22,6 @@
#include "engine/shader_source.h"
#include "third_party/texture_compressor/texture_compressor.h"
#define USE_VULKAN_RENDERER 1
using namespace base;
namespace eng {
@ -519,13 +517,13 @@ void Engine::AddInputEvent(std::unique_ptr<InputEvent> event) {
case InputEvent::kDragEnd:
if (((GetScreenSize() / 2) * 0.9f - event->GetVector()).Length() <=
0.25f) {
SetSatsVisible(!stats_->IsVisible());
SetStatsVisible(!stats_->IsVisible());
// TODO: Enqueue DragCancel so we can consume this event.
}
break;
case InputEvent::kKeyPress:
if (event->GetKeyPress() == 's') {
SetSatsVisible(!stats_->IsVisible());
SetStatsVisible(!stats_->IsVisible());
// Consume event.
return;
}
@ -619,7 +617,7 @@ void Engine::ContextLost() {
game_->ContextLost();
}
void Engine::SetSatsVisible(bool visible) {
void Engine::SetStatsVisible(bool visible) {
stats_->SetVisible(visible);
if (visible)
stats_->Create("stats_tex");

View File

@ -235,7 +235,7 @@ class Engine : public PlatformObserver {
void ContextLost();
void SetSatsVisible(bool visible);
void SetStatsVisible(bool visible);
std::unique_ptr<Image> PrintStats();
Engine(const Engine&) = delete;

View File

@ -907,7 +907,7 @@ bool RendererVulkan::InitializeInternal() {
}
// In this simple engine we use only one descriptor set layout that is for
// textures. We use push contants for everything else.
// textures. We use push constants for everything else.
VkDescriptorSetLayoutBinding ds_layout_binding;
ds_layout_binding.descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
ds_layout_binding.descriptorCount = 1;