0.1.0-2-beta.1.fix.3
This commit is contained in:
@@ -21,6 +21,8 @@ snake = ["dep:game-snake-poc"]
|
||||
[dependencies]
|
||||
engine-v1-common = { path = "../../engines/engine-v1-common" }
|
||||
engine-v1-sdl = { path = "../../engines/engine-v1-sdl" }
|
||||
game-logging-lib = { path = "../../common/game-logging-lib" }
|
||||
tracing.workspace = true
|
||||
game-reflex-poc = { path = "../../games/game-reflex-poc", optional = true }
|
||||
game-snake-poc = { path = "../../games/game-snake-poc", optional = true }
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: crates/apps/game-android-entrypoint/src/lib.rs
|
||||
// version: 2
|
||||
// version: 3
|
||||
|
||||
#![warn(missing_docs)]
|
||||
#![deny(unreachable_pub)]
|
||||
@@ -21,7 +21,13 @@ extern "C" fn sdl_main(_argc: core::ffi::c_int, _argv: *mut *mut core::ffi::c_ch
|
||||
|
||||
#[unsafe(export_name = "Java_com_sasedev_games_common_NativeBridge_nativeContractVersion")]
|
||||
extern "C" fn native_contract_version(_environment: *mut core::ffi::c_void, _class: *mut core::ffi::c_void) -> core::ffi::c_int {
|
||||
return 1;
|
||||
return 2;
|
||||
}
|
||||
|
||||
#[unsafe(export_name = "Java_com_sasedev_games_common_NativeBridge_nativeRequestPlatformBack")]
|
||||
extern "C" fn native_request_platform_back(_environment: *mut core::ffi::c_void, _class: *mut core::ffi::c_void) {
|
||||
engine_v1_sdl::request_platform_back();
|
||||
return;
|
||||
}
|
||||
|
||||
#[cfg(feature = "reflex")]
|
||||
@@ -48,9 +54,15 @@ fn run_game<G>(runtime: &engine_v1_sdl::SdlRuntime, game: &mut G) -> core::ffi::
|
||||
where
|
||||
G: engine_v1_common::EngineGame,
|
||||
{
|
||||
let logging_guard = game_logging_lib::init_console_tracing();
|
||||
match &logging_guard {
|
||||
std::result::Result::Ok(_) => tracing::info!(target: "games::android", "Android tracing initialized"),
|
||||
std::result::Result::Err(error) => eprintln!("Android tracing initialization skipped: {error}"),
|
||||
}
|
||||
match runtime.run(game) {
|
||||
std::result::Result::Ok(()) => return 0,
|
||||
std::result::Result::Err(error) => {
|
||||
tracing::error!(target: "games::android", error = %error, "Android SDL3 runtime failed");
|
||||
eprintln!("Android SDL3 runtime error: {error}");
|
||||
return 1;
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "game-reflex-poc-tauri",
|
||||
"private": true,
|
||||
"version": "0.1.0-2-beta.1.fix.2",
|
||||
"version": "0.1.0-2-beta.1.fix.3",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "Reflex POC Tauri",
|
||||
"version": "0.1.0-2-beta.1.fix.2",
|
||||
"version": "0.1.0-2-beta.1.fix.3",
|
||||
"identifier": "com.sasedev.games.reflex.tauri",
|
||||
"build": {
|
||||
"beforeDevCommand": {
|
||||
|
||||
Reference in New Issue
Block a user