v4k-git-backup/tools/editor/labs.osc/oscedit.c

23 lines
573 B
C
Raw Normal View History

2023-10-23 13:25:03 +00:00
#include "v4k.h"
2023-08-10 14:30:56 +00:00
#include "oscedit.h"
// demo
int main() {
do_once map_init(client_vars, less_str, hash_str);
do_once map_init(server_vars, less_str, hash_str);
int server_socket = osc_listen("0.0.0.0", OSC_EDIT_PORT);
if( server_socket >= 0 ) {
if( !strcmp("--launch", argv(1)) ) system("oscgame"); // launch game
cook_config("../../tools/cook.ini");
window_create(0.80, WINDOW_SQUARE);
window_title("EDITOR");
while( window_swap() ) {
osc_edit_sync(server_socket, -1, 4);
}
}
}