Windows...
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user