I don't know if this can be done, but I think I need to create a new thread since unreal only runs on one thread. And I need comments on the following.
redirected downloads for rune:
I have studied a bit POSIX threading and I believe spawning a new thread won't be impossible. Therefore also downloading, unzipping and installing the needed packages is possible, as the program is actually external from engine. What I don't know how to accomplish (yet at least), is how to make the call-backs... (Also, I dont know if the native code that makes a thread is concidered "main" and when exiting, pthread_exit() to be used to let the spawned threads to continue their execution.) IF the dll isn't actually destroyed but running as idle or something, then I could maybe give its threadid back for possible future use (dunno if its needed), and give a function pointer as a part of the argument struct when creating a new thread.. I can't directly call any uc function from this newly spawn thread but I'm hoping that through function pointer it is allowed. I think the parent class in uc that I choose for this will be actor and it is spawned to clients only.
This is most interesting stuff (even if it may not be possible). I know it was poorly explained, but I hope you guys can give some input, I need it. And all help is appreciated, including code/coding contribution. You can also laugh at me for trying.
redirected downloads for rune:
I have studied a bit POSIX threading and I believe spawning a new thread won't be impossible. Therefore also downloading, unzipping and installing the needed packages is possible, as the program is actually external from engine. What I don't know how to accomplish (yet at least), is how to make the call-backs... (Also, I dont know if the native code that makes a thread is concidered "main" and when exiting, pthread_exit() to be used to let the spawned threads to continue their execution.) IF the dll isn't actually destroyed but running as idle or something, then I could maybe give its threadid back for possible future use (dunno if its needed), and give a function pointer as a part of the argument struct when creating a new thread.. I can't directly call any uc function from this newly spawn thread but I'm hoping that through function pointer it is allowed. I think the parent class in uc that I choose for this will be actor and it is spawned to clients only.
This is most interesting stuff (even if it may not be possible). I know it was poorly explained, but I hope you guys can give some input, I need it. And all help is appreciated, including code/coding contribution. You can also laugh at me for trying.