Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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
wyykak
ygopro
Commits
078fd70d
Commit
078fd70d
authored
Apr 17, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vs
parent
ab3994a5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
22 deletions
+25
-22
gframe/config.h
gframe/config.h
+18
-17
gframe/duelclient.cpp
gframe/duelclient.cpp
+2
-0
gframe/game.cpp
gframe/game.cpp
+2
-2
gframe/gframe.cpp
gframe/gframe.cpp
+1
-1
gframe/replay.cpp
gframe/replay.cpp
+1
-1
gframe/replay.h
gframe/replay.h
+1
-1
No files found.
gframe/config.h
View file @
078fd70d
...
...
@@ -5,25 +5,9 @@
#define _IRR_STATIC_LIB_
#include <irrlicht.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "CGUITTFont.h"
#include "CGUIImageButton.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <sys/time.h>
#include "bufferio.h"
#include "mymutex.h"
#include "mysignal.h"
#include "mythread.h"
#include "../ocgcore/ocgapi.h"
#include "../ocgcore/card.h"
#ifdef _WIN32
#include <WinSock2.h>
#include <windows.h>
#define myswprintf swprintf
...
...
@@ -53,6 +37,23 @@ inline int _wtoi(const wchar_t * s) {
}
#endif
#include <irrlicht.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "CGUITTFont.h"
#include "CGUIImageButton.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <time.h>
#include "bufferio.h"
#include "mymutex.h"
#include "mysignal.h"
#include "mythread.h"
#include "../ocgcore/ocgapi.h"
#include "../ocgcore/card.h"
using
namespace
irr
;
using
namespace
core
;
using
namespace
scene
;
...
...
gframe/duelclient.cpp
View file @
078fd70d
...
...
@@ -174,6 +174,7 @@ int DuelClient::ClientThread(void* param) {
client_bev
=
0
;
client_base
=
0
;
connect_state
=
0
;
return
0
;
}
void
DuelClient
::
HandleSTOCPacketLan
(
char
*
data
,
unsigned
int
len
)
{
char
*
pdata
=
data
;
...
...
@@ -2589,6 +2590,7 @@ int DuelClient::RefreshThread(void* arg) {
event_free
(
resp_event
);
event_base_free
(
broadev
);
is_refreshing
=
false
;
return
0
;
}
void
DuelClient
::
BroadcastReply
(
evutil_socket_t
fd
,
short
events
,
void
*
arg
)
{
if
(
events
&
EV_TIMEOUT
)
{
...
...
gframe/game.cpp
View file @
078fd70d
...
...
@@ -722,7 +722,7 @@ void Game::ShowCardInfo(int code) {
wchar_t
formatBuffer
[
256
];
dataManager
.
GetData
(
code
,
&
cd
);
imgCard
->
setImage
(
imageManager
.
GetTexture
(
code
));
imgCard
->
setScaleImage
(
true
);
//I don't know weather check size or not will be faster; if Irrlicht don't check size internal and cause slow, check size like Game::DrawThumb()
imgCard
->
setScaleImage
(
true
);
if
(
cd
.
alias
!=
0
&&
(
cd
.
alias
-
code
<
10
||
code
-
cd
.
alias
<
10
))
myswprintf
(
formatBuffer
,
L"%ls[%08d]"
,
dataManager
.
GetName
(
cd
.
alias
),
cd
.
alias
);
else
myswprintf
(
formatBuffer
,
L"%ls[%08d]"
,
dataManager
.
GetName
(
code
),
code
);
...
...
@@ -732,7 +732,7 @@ void Game::ShowCardInfo(int code) {
stInfo
->
setText
(
formatBuffer
);
formatBuffer
[
0
]
=
L'['
;
for
(
int
i
=
1
;
i
<=
cd
.
level
;
++
i
)
formatBuffer
[
i
]
=
L'★'
;
formatBuffer
[
i
]
=
0x2605
;
formatBuffer
[
cd
.
level
+
1
]
=
L']'
;
formatBuffer
[
cd
.
level
+
2
]
=
L' '
;
if
(
cd
.
attack
<
0
&&
cd
.
defence
<
0
)
...
...
gframe/gframe.cpp
View file @
078fd70d
...
...
@@ -28,7 +28,7 @@ int main(int argc, char* argv[]) {
* -j: join host (host info from system.conf)
* -d: deck edit
* -r: replay */
else
if
(
!
strcmp
(
argv
[
1
],
"-j"
)
or
!
strcmp
(
argv
[
1
],
"-d"
)
or
!
strcmp
(
argv
[
1
],
"-r"
))
{
else
if
(
!
strcmp
(
argv
[
1
],
"-j"
)
||
!
strcmp
(
argv
[
1
],
"-d"
)
||
!
strcmp
(
argv
[
1
],
"-r"
))
{
exit_on_return
=
true
;
irr
::
SEvent
event
;
event
.
EventType
=
irr
::
EET_GUI_EVENT
;
...
...
gframe/replay.cpp
View file @
078fd70d
...
...
@@ -20,7 +20,7 @@ void Replay::BeginRecord() {
#ifdef _WIN32
if
(
is_recording
)
CloseHandle
(
recording_fp
);
recording_fp
=
CreateFile
(
"./replay/_LastReplay.yrp"
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_FLAG_WRITE_THROUGH
,
NULL
);
recording_fp
=
CreateFile
W
(
L
"./replay/_LastReplay.yrp"
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_FLAG_WRITE_THROUGH
,
NULL
);
if
(
recording_fp
==
INVALID_HANDLE_VALUE
)
return
;
#else
...
...
gframe/replay.h
View file @
078fd70d
...
...
@@ -2,7 +2,7 @@
#define REPLAY_H
#include "config.h"
#include <
sys/
time.h>
#include <time.h>
namespace
ygo
{
...
...
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