Windows...

This commit is contained in:
2026-03-26 13:01:55 +01:00
parent b23365b05f
commit b35a982c6f
5 changed files with 48 additions and 30 deletions

View File

@@ -526,3 +526,15 @@ rkt_data_t *rkt_webview_get_event()
return nullptr;
}
}
void rkt_webview_env(const char *env_cmds[])
{
int i;
for(i = 0; env_cmds[i] != nullptr && strcmp(env_cmds[i], "") != 0; i++) {
#ifdef WIN32
_putenv(env_cmds[i]);
#else
putenv(env_cmds[i]);
#endif
}
}

View File

@@ -10,6 +10,7 @@
extern "C" {
RKTWEBVIEW_EXPORT void rkt_webview_env(const char *env_cmds[]);
RKTWEBVIEW_EXPORT void rkt_webview_init();
RKTWEBVIEW_EXPORT void rkt_webview_cleanup();
//RKTWEBVIEW_EXPORT void rkt_webview_process_events(int for_ms);