Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
07a64929
Commit
07a64929
authored
Jun 30, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix align of struct
parent
300a4d40
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
14 deletions
+9
-14
structs.json
structs.json
+5
-2
ygopro-server.coffee
ygopro-server.coffee
+1
-5
ygopro-server.js
ygopro-server.js
+1
-5
ygopro.coffee
ygopro.coffee
+1
-1
ygopro.js
ygopro.js
+1
-1
No files found.
structs.json
View file @
07a64929
...
...
@@ -38,8 +38,8 @@
],
"CTOS_JoinGame"
:
[
{
"name"
:
"version"
,
"type"
:
"unsigned short"
},
{
"name"
:
"align"
,
"type"
:
"unsigned short"
},
{
"name"
:
"gameid"
,
"type"
:
"unsigned int"
},
{
"name"
:
"some_unknown_mysterious_fucking_thing"
,
"type"
:
"unsigned short"
},
{
"name"
:
"pass"
,
"type"
:
"unsigned short"
,
"length"
:
20
,
"encoding"
:
"UTF-16LE"
}
],
"CTOS_Kick"
:
[
...
...
@@ -47,7 +47,10 @@
],
"STOC_ErrorMsg"
:
[
{
"name"
:
"msg"
,
"type"
:
"unsigned char"
},
{
"name"
:
"code"
,
"type"
:
"word32Ube"
}
{
"name"
:
"align1"
,
"type"
:
"unsigned char"
},
{
"name"
:
"align2"
,
"type"
:
"unsigned char"
},
{
"name"
:
"align3"
,
"type"
:
"unsigned char"
},
{
"name"
:
"code"
,
"type"
:
"unsigned int"
}
],
"STOC_HandResult"
:
[
{
"name"
:
"res1"
,
"type"
:
"unsigned char"
},
...
...
ygopro-server.coffee
View file @
07a64929
...
...
@@ -877,7 +877,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
setTimeout
(()
->
ygopro
.
stoc_send
client
,
'ERROR_MSG'
,{
msg
:
1
code
:
2
code
:
9
}
client
.
destroy
()
return
),
500
...
...
@@ -1142,8 +1142,6 @@ ygopro.stoc_follow 'JOIN_GAME', false, (buffer, info, client, server)->
}
ygopro
.
ctos_send
recorder
,
'JOIN_GAME'
,
{
version
:
settings
.
version
,
gameid
:
2577
,
some_unknown_mysterious_fucking_thing
:
0
pass
:
""
}
ygopro
.
ctos_send
recorder
,
'HS_TOOBSERVER'
...
...
@@ -1165,8 +1163,6 @@ ygopro.stoc_follow 'JOIN_GAME', false, (buffer, info, client, server)->
}
ygopro
.
ctos_send
watcher
,
'JOIN_GAME'
,
{
version
:
settings
.
version
,
gameid
:
2577
,
some_unknown_mysterious_fucking_thing
:
0
pass
:
""
}
ygopro
.
ctos_send
watcher
,
'HS_TOOBSERVER'
...
...
ygopro-server.js
View file @
07a64929
...
...
@@ -1099,7 +1099,7 @@
setTimeout
((
function
()
{
ygopro
.
stoc_send
(
client
,
'
ERROR_MSG
'
,
{
msg
:
1
,
code
:
2
code
:
9
});
client
.
destroy
();
}),
500
);
...
...
@@ -1381,8 +1381,6 @@
});
ygopro
.
ctos_send
(
recorder
,
'
JOIN_GAME
'
,
{
version
:
settings
.
version
,
gameid
:
2577
,
some_unknown_mysterious_fucking_thing
:
0
,
pass
:
""
});
ygopro
.
ctos_send
(
recorder
,
'
HS_TOOBSERVER
'
);
...
...
@@ -1403,8 +1401,6 @@
});
ygopro
.
ctos_send
(
watcher
,
'
JOIN_GAME
'
,
{
version
:
settings
.
version
,
gameid
:
2577
,
some_unknown_mysterious_fucking_thing
:
0
,
pass
:
""
});
ygopro
.
ctos_send
(
watcher
,
'
HS_TOOBSERVER
'
);
...
...
ygopro.coffee
View file @
07a64929
...
...
@@ -161,7 +161,7 @@ for name, declaration of structs_declaration
@
stoc_send_chat
(
client
,
msg
,
@
constants
.
COLORS
.
RED
)
@
stoc_send
client
,
'ERROR_MSG'
,
{
msg
:
1
code
:
2
code
:
9
}
if
client
client
.
destroy
()
if
client
return
\ No newline at end of file
ygopro.js
View file @
07a64929
...
...
@@ -258,7 +258,7 @@
if
(
client
)
{
this
.
stoc_send
(
client
,
'
ERROR_MSG
'
,
{
msg
:
1
,
code
:
2
code
:
9
});
}
if
(
client
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment