projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
medium sized dollop
[carveJwlIkooP6JGAAIwe30JlM.git]
/
network.h
diff --git
a/network.h
b/network.h
index a9b5c8f3423b79093053abca15af6ddba098a361..42bee347766226016a3b85b522a437062ecf21e1 100644
(file)
--- a/
network.h
+++ b/
network.h
@@
-12,13
+12,13
@@
#define SR_USE_LOCALHOST
/* Call it at start; Connects us to the gameserver */
#define SR_USE_LOCALHOST
/* Call it at start; Connects us to the gameserver */
-static
void
network_init(void);
+static
int
network_init(void);
/* Run this from main loop */
static void network_update(void);
/* Call it at shutdown */
/* Run this from main loop */
static void network_update(void);
/* Call it at shutdown */
-static void network_end(void);
+static void network_end(void
*_
);
/*
* Can buffer up a bunch of these by calling many times, they will be
/*
* Can buffer up a bunch of these by calling many times, they will be
@@
-320,7
+320,7
@@
static void network_update(void)
}
else
{
}
else
{
- vg_lo
g
( "Not making remote connection; app ticket not gotten\n" );
+ vg_lo
w
( "Not making remote connection; app ticket not gotten\n" );
}
}
}
}
@@
-334,7
+334,7
@@
static void network_update(void)
}
}
}
}
-static
void
network_init(void)
+static
int
network_init(void)
{
if( steam_ready )
{
{
if( steam_ready )
{
@@
-342,9
+342,11
@@
static void network_init(void)
on_server_connect_status );
request_auth_ticket();
}
on_server_connect_status );
request_auth_ticket();
}
+
+ return 1;
}
}
-static void network_end(void)
+static void network_end(void
*_
)
{
/* TODO: Fire off any buffered highscores that need to be setn */
if( cremote_state == k_ESteamNetworkingConnectionState_Connected ||
{
/* TODO: Fire off any buffered highscores that need to be setn */
if( cremote_state == k_ESteamNetworkingConnectionState_Connected ||
@@
-357,9
+359,9
@@
static void network_end(void)
#else /* SR_NETWORKED */
#else /* SR_NETWORKED */
-static
void network_init(void){
}
+static
int network_init(void){ return 1;
}
static void network_update(void){}
static void network_update(void){}
-static void network_end(void){}
+static void network_end(void
*_
){}
#endif /* SR_NETWORKED */
#endif /* NETWORK_H */
#endif /* SR_NETWORKED */
#endif /* NETWORK_H */