mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
App name, app ID and code package: DroidDeck, com.droiddeck.launcher (sources moved to com/droiddeck/launcher, the 68 JNI functions renamed with them). The new app ID installs beside SteamDeck rather than over it. Everywhere the name was the app's own: the sidebar title, the session report, share zips, the shell title, wake-lock and log tags, User-Agents, the Compose theme, the Download folder and switch files (droiddeck-env, -osc, -driver, -tu-debug, -no-pad, -pad-log, -no-hud, -wlr-renderer; the old names are not read), and inside the runtime (droiddeck-desktop, Firefox's droiddeck.js, the shortcuts tag, the rumble socket, debug and cache paths). Build scripts, CI artifact (droiddeck-apk), CMake project, README and the progress log follow. Kept on purpose: Valve's Steam Deck (the -steamdeck flag, steamdeck_publicbeta/stable, 'Steam Deck mode', the steamos.cloud package URLs) and names inside the hosted desktop package (steamdeck.png, steamdeck-steam, steamdeck-bigpicture). 'Desktop installed' now tests for labwc instead of the launcher the app stages itself. A committed __pycache__ .pyc is removed.
18 lines
675 B
C
18 lines
675 B
C
/*
|
|
* One function: the release fence the fake-input ring writer needs.
|
|
*
|
|
* FakeInputWriter publishes events into a shared-memory ring that libfakeinput.so reads from
|
|
* another process. Java's memory model says nothing about what a foreign reader sees, so the
|
|
* writer calls this between filling the events and advancing the sequence counter: everything
|
|
* written before it is visible to the reader before the counter moves.
|
|
*/
|
|
#include <jni.h>
|
|
#include <stdatomic.h>
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_com_droiddeck_launcher_input_FakeInputWriter_nativeStoreFence(JNIEnv *env, jclass clazz) {
|
|
(void)env;
|
|
(void)clazz;
|
|
atomic_thread_fence(memory_order_release);
|
|
}
|