mirror of
https://github.com/open-goal/jak-project.git
synced 2025-01-30 10:23:25 +00:00
try different print format for windows
This commit is contained in:
parent
a47504b812
commit
c04ab1a6ff
@ -67,7 +67,6 @@ int set_socket_timeout(int socket, long microSeconds) {
|
||||
return ret;
|
||||
#elif _WIN32
|
||||
DWORD timeout = microSeconds / 1000; // milliseconds
|
||||
printf("setting timeout to %d ms\n", timeout);
|
||||
return set_socket_option(socket, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout));
|
||||
#endif
|
||||
}
|
||||
|
@ -150,7 +150,11 @@ void KernelCheckAndDispatch() {
|
||||
printf("\n");
|
||||
auto result =
|
||||
call_goal(Ptr<Function>(ListenerFunction->value), 0, 0, 0, s7.offset, g_ee_main_mem);
|
||||
#ifdef __linux__
|
||||
cprintf("%ld\n", result);
|
||||
#else
|
||||
cprintf("%lld\n", result)
|
||||
#endif
|
||||
ListenerFunction->value = s7.offset;
|
||||
}
|
||||
}
|
||||
|
@ -186,13 +186,10 @@ void Deci2Server::send_proto_ready(Deci2Driver* drivers, int* driver_count) {
|
||||
void Deci2Server::run() {
|
||||
int desired_size = (int)sizeof(Deci2Header);
|
||||
int got = 0;
|
||||
printf("Deci2Server::run\n");
|
||||
|
||||
while (got < desired_size) {
|
||||
assert(got + desired_size < BUFFER_SIZE);
|
||||
printf("r1\n");
|
||||
auto x = read_from_socket(new_sock, buffer + got, desired_size - got);
|
||||
printf("r1 done\n");
|
||||
if (want_exit()) {
|
||||
return;
|
||||
}
|
||||
@ -243,9 +240,7 @@ void Deci2Server::run() {
|
||||
|
||||
// receive from network
|
||||
if (hdr->rsvd < hdr->len) {
|
||||
printf("r2\n");
|
||||
auto x = read_from_socket(new_sock, buffer + hdr->rsvd, hdr->len - hdr->rsvd);
|
||||
printf("r2 done\n");
|
||||
if (want_exit()) {
|
||||
return;
|
||||
}
|
||||
@ -256,7 +251,6 @@ void Deci2Server::run() {
|
||||
|
||||
(driver.handler)(DECI2_READDONE, 0, driver.opt);
|
||||
unlock();
|
||||
printf("run done\n");
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user