Skip to content

Commit 27a87ba

Browse files
committed
Android instructions
1 parent 95028a8 commit 27a87ba

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,31 @@
1-
Lodr is a loader for [lovr](https://lovr.org/).
1+
Lodr is a hot-loader for [lovr](https://lovr.org/). It restarts Lovr with updated code without Lovr itself having to quit and reopen.
22

33
# How to use
44

5+
## On Oculus Quest
6+
7+
Go to the [releases page](https://github.com/mcclure/lodr/releases) for Lodr and download the newest `org.lovr.hotswap` APK. This has Lodr prebuilt in it.
8+
9+
You will need your Quest in [developer mode](https://learn.adafruit.com/sideloading-on-oculus-quest/enable-developer-mode). You will also need the `adb` command line tool. For example, on Macintosh, you can get `adb` by installing [Homebrew](https://brew.sh/) and running `brew cask install android-platform-tools`; or, you can install [Android Studio](https://developer.android.com/studio), install "Android SDK Platform-Tools" during the first-run setup, and then run `export PATH="~/Library/Android/sdk/platform-tools:$PATH"` in your Terminal.app window before running the following commands. On Windows, to run adb, you can run [these instructions](https://www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/) (but you will also need to install the special [Quest ADB driver for Windows](https://developer.oculus.com/downloads/package/oculus-adb-drivers/)).
10+
11+
After downloading `org.lovr.hotswap.apk`, run:
12+
13+
adb install -r build/lovr.apk
14+
15+
You only have to do this once.
16+
17+
Now, whenever you have new software to upload, `cd` to the directory containing your files and run:
18+
19+
adb push --sync . /sdcard/Android/data/org.lovr.hotswap/files/.lodr
20+
21+
You can run this while Lodr is running.
22+
23+
If your program contains print statements, you can view them with:
24+
25+
adb logcat | grep -i lovr
26+
27+
## On a desktop computer
28+
529
Clone or download this repo. Stick the lovr-lodr directory in your command line after the executable name.
630

731
If `lovr.exe` is the LÖVR command line on your system and `your-game` is your project directory, run
@@ -10,7 +34,7 @@ If `lovr.exe` is the LÖVR command line on your system and `your-game` is your p
1034

1135
If files change in `your-game` while it is running, lodr will automatically relaunch it.
1236

13-
## Configuration options
37+
# Configuration options
1438

1539
Lodr checks for a "lodr" table in the configuration table from conf.lua. You can set options like:
1640

0 commit comments

Comments
 (0)