summaryrefslogtreecommitdiffstats
path: root/GUI/Libraries
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-01-06 12:31:13 -0800
committeryum <yum.food.vr@gmail.com>2023-01-06 12:31:13 -0800
commit461714cc87549f3c0c3411bfe95f3936aca60f74 (patch)
tree3edb404fac0ed1ec370ed2bed0b543128d0ba925 /GUI/Libraries
parent66d311b3267620995e5c35b16f3fba18ed0c48f3 (diff)
GUI: Persist transcription app configv0.2
The configuration of the transcription app, such as the number of rows and columns in the text box, now persists across app restarts. I found that I would have to change from the defaults to my preferred config every time I started up in VR, which was annoying. Now we just start with the config that was set last time. * Add dependency on rapidyaml (MIT) * Serialize transcription config to file under Resources/ * Add Config class to wrap serializing/deserializing * Update build instructions * Simplify StartApp() API, taking Config struct instead of a ton of arguments
Diffstat (limited to 'GUI/Libraries')
-rw-r--r--GUI/Libraries/.gitignore1
-rw-r--r--GUI/Libraries/fetch.ps118
2 files changed, 18 insertions, 1 deletions
diff --git a/GUI/Libraries/.gitignore b/GUI/Libraries/.gitignore
index 214bffb..fb46029 100644
--- a/GUI/Libraries/.gitignore
+++ b/GUI/Libraries/.gitignore
@@ -1,3 +1,4 @@
# Don't check in anything we fetch
wx
+rapidyaml
diff --git a/GUI/Libraries/fetch.ps1 b/GUI/Libraries/fetch.ps1
index 5f8d63e..78bf0d5 100644
--- a/GUI/Libraries/fetch.ps1
+++ b/GUI/Libraries/fetch.ps1
@@ -6,6 +6,7 @@ $WX_FILE = $(Split-Path -Path $WX_URL -Leaf)
pushd $PSScriptRoot
+# WX
if (Test-Path wx) {
rm -Recurse wx
}
@@ -16,5 +17,20 @@ Invoke-WebRequest $WX_URL -OutFile $WX_FILE
Expand-Archive $WX_FILE -DestinationPath .
popd > $null
-popd > $null
+# RAPIDYAML
+if (Test-Path rapidyaml) {
+ rm -Recurse rapidyaml
+}
+
+git clone https://github.com/biojppm/rapidyaml
+pushd rapidyaml > $null
+git checkout v0.5.0
+git submodule update --init --recursive
+
+python3 tools/amalgamate.py ryml.h
+cp ryml.h ../../GUI/GUI/ryml.h
+
+popd > $null # rapidyaml
+
+popd > $null # $PSScriptRoot