File tree Expand file tree Collapse file tree 1 file changed +33
-3
lines changed
src/core/modules/net_channel Expand file tree Collapse file tree 1 file changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -90,18 +90,48 @@ void export_net_channel(scope _net_channel)
9090 make_function (&INetChannel::GetMsgHandler, reference_existing_object_policy ())
9191 );
9292
93+ NetChannel.def (
94+ " set_data_rate" ,
95+ &INetChannel::SetDataRate
96+ );
97+
98+ #if defined(ENGINE_BLADE) || defined(ENGINE_CSGO) || defined(ENGINE_LEFT4DEAD2)
9399 NetChannel.def (
94100 " send_file" ,
95- &INetChannel::SendFile
101+ &INetChannel::SendFile,
102+ (arg (" file_name" ), arg (" transfer_id" ), arg (" is_replay_demo" )=false )
103+ );
104+
105+ NetChannel.def (
106+ " deny_file" ,
107+ &INetChannel::DenyFile,
108+ (arg (" file_name" ), arg (" transfer_id" ), arg (" is_replay_demo" )=false )
96109 );
97110
98111 NetChannel.def (
99112 " request_file" ,
100- &INetChannel::RequestFile);
113+ &INetChannel::RequestFile,
114+ (arg (" file_name" ), arg (" is_replay_demo" )=false )
115+ );
116+ #else
117+ NetChannel.def (
118+ " send_file" ,
119+ &INetChannel::SendFile,
120+ (arg (" file_name" ), arg (" transfer_id" ))
121+ );
101122
102123 NetChannel.def (
103124 " deny_file" ,
104- &INetChannel::DenyFile);
125+ &INetChannel::DenyFile,
126+ (arg (" file_name" ), arg (" transfer_id" ))
127+ );
128+
129+ NetChannel.def (
130+ " request_file" ,
131+ &INetChannel::RequestFile,
132+ (arg (" file_name" ))
133+ );
134+ #endif
105135
106136 NetChannel.def (
107137 " send_data" ,
You can’t perform that action at this time.
0 commit comments