There are truly no guarantees to be found here, I just dropped the version I'm working on without testing anything
Android
Instructions (apk is samsung only?? s9+ only?) (untested):
- Install apk
- Open the app ("Tutorial 06csim"), save, etc, all the changes are made to /storage/emulated/0/Android/data/com.vulkan.tutorials.sixcsim/files/c/AndroidMain.c
I recommend Termux to help you deal with that file outside of medc
Caveats:
- Don't type e.g. emojis, Asian characters
- It may just crash randomly
- Undo is really naive, eg it will try to 'undo' the expansion of a line, I don't really use it too deep
- Since cutting/copying uses the system clipboard, it can't get too large
Let me know any other issues/questions at mark@mark.dev, I'll probably have some kind of public place for that at some point
Building (untested):
- Get aarch64-linux-android-clang, aapt, ecj, dx, apksigner on your phone (might have gotten them from following this, some might already be on your PATH from the system, some might be copied from the NDK built by Android Studio on my PC)
- Download the source on your phone
- cd in there and run sh build.sh (buildrun.sh will open the apk in bin/ after as well). After it's built, if you only change AndroidMain.c, you can use buildquickrun.sh instead
Logs are in /storage/emulated/0/Android/data/com.vulkan.tutorials.sixcsim/files/log.txt, maybe some of those libraries included in the source only work on my phone/architecture so you might need to replace them with one for your phone. The main source is in c/AndroidMain.c in the source zip. Can't say it's all public domain yet because it's modified from a Vulkan helloworld tutorial
Windows
Build (untested):
- Get Visual Studio
- Download source zip
- Open the visual studio file and build from there
- Run with a command line argument of the file you want to edit
Right click is unexpand, ctrl-f find, ctrl-s save, etc