From 0ccb4eea9330072e69af79db2a50264643267266 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 2 Mar 2024 19:53:41 -0500 Subject: [PATCH] Stable USB support - Fixed USB packet reading - Session is closed on deliberate disconnect - Fixed unreliable event/video socket opening, code moved to C now Annoying blocking issue where connect returns 0 but sets errno = 115 (operation in progress) It should be fine to just let it be since the camera detects the accept() Later on, this should be fixed - Improved thumbnail loading a little bit - Scripts menu doesn't automatically grab focus - Updated upstream stuff --- .idea/codeStyles/Project.xml | 5 ++ .idea/deploymentTargetDropDown.xml | 10 +++ .idea/gradle.xml | 5 +- .idea/migrations.xml | 10 +++ .../java/dev/danielc/fujiapp/Gallery.java | 2 +- .../dev/danielc/fujiapp/ImageAdapter.java | 19 ++-- .../main/java/dev/danielc/fujiapp/LibU.java | 41 --------- .../dev/danielc/fujiapp/MainActivity.java | 2 +- .../main/java/dev/danielc/fujiapp/Tester.java | 8 -- .../main/java/dev/danielc/fujiapp/Viewer.java | 8 ++ app/src/main/java/libui/LibUI.java | 29 +------ app/src/main/res/layout/activity_test.xml | 18 +--- lib/backend.h | 29 ++++--- lib/camlib | 2 +- lib/libuifw | 2 +- lib/main.c | 17 ++-- lib/net.c | 14 ++- lib/progress.c | 41 +-------- lib/scripts.c | 8 +- lib/tester.c | 4 +- lib/usb.c | 86 +------------------ 21 files changed, 98 insertions(+), 262 deletions(-) create mode 100644 .idea/deploymentTargetDropDown.xml create mode 100644 .idea/migrations.xml delete mode 100644 app/src/main/java/dev/danielc/fujiapp/LibU.java diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 9dc3ac8..9bcde4e 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -8,6 +8,11 @@