From bb37d2ae47ac3482cdd631a65d60af179ebdf794 Mon Sep 17 00:00:00 2001 From: nakst <> Date: Sat, 16 Oct 2021 20:30:33 +0100 Subject: [PATCH] misc --- util/designer2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/designer2.cpp b/util/designer2.cpp index c8f2244..768ffc9 100644 --- a/util/designer2.cpp +++ b/util/designer2.cpp @@ -557,6 +557,9 @@ void DocumentSave(void *) { #ifdef OS_ESSENCE EsBuffer buffer = { .canGrow = 1 }; #define fwrite(a, b, c, d) EsBufferWrite(&buffer, (a), (b) * (c)) +#elif defined(UI_WINDOWS) + FILE *f = fopen("Theme Source.dat", "wb"); + if (!f) return; #else FILE *f = fopen("res/Theme Source.dat", "wb"); #endif @@ -590,6 +593,9 @@ void DocumentLoad() { EsBuffer buffer = {}; buffer.out = (uint8_t *) EsFileStoreReadAll(fileStore, &buffer.bytes); #define fread(a, b, c, d) EsBufferReadInto(&buffer, (a), (b) * (c)) +#elif defined(UI_WINDOWS) + FILE *f = fopen("Theme Source.dat", "rb"); + if (!f) return; #else FILE *f = fopen("res/Theme Source.dat", "rb"); if (!f) return;