MCPcopy Create free account
hub / github.com/XorTroll/uLaunch / cpp_LoadThemeFile

Function cpp_LoadThemeFile

projects/uDesigner/source/main.cpp:1358–1372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1356}
1357
1358extern "C" EMSCRIPTEN_KEEPALIVE void cpp_LoadThemeFile(void *theme_zip_data, const size_t theme_zip_data_size) {
1359 if(g_ThemeFile != nullptr) {
1360 zip_close(g_ThemeFile);
1361 }
1362
1363 if(g_ThemeFileData != nullptr) {
1364 free(g_ThemeFileData);
1365 }
1366
1367 g_ThemeFileData = theme_zip_data;
1368 g_ThemeFileDataSize = theme_zip_data_size;
1369 g_ThemeFile = zip_stream_open(reinterpret_cast<const char*>(theme_zip_data), theme_zip_data_size, 0, 'r');
1370
1371 ReloadFromTheme();
1372}
1373
1374void LoadDefaultThemeFile() {
1375 auto f = fopen("assets/default-theme.ultheme", "rb");

Callers 1

LoadDefaultThemeFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected