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
YGOPRO-520DIY
ygopro
Commits
e73969cf
Commit
e73969cf
authored
Jun 08, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Fluorohydride/ygopro
parents
efac21cf
acf894d2
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
22 additions
and
15 deletions
+22
-15
gframe/config.h
gframe/config.h
+3
-0
gframe/deck_manager.cpp
gframe/deck_manager.cpp
+2
-2
gframe/duelclient.cpp
gframe/duelclient.cpp
+1
-1
gframe/game.cpp
gframe/game.cpp
+2
-2
gframe/netserver.cpp
gframe/netserver.cpp
+1
-1
gframe/premake4.lua
gframe/premake4.lua
+5
-3
gframe/single_duel.h
gframe/single_duel.h
+1
-1
gframe/tag_duel.h
gframe/tag_duel.h
+1
-1
lflist.conf
lflist.conf
+1
-1
ocgcore/interpreter.h
ocgcore/interpreter.h
+3
-3
ocgcore/premake4.lua
ocgcore/premake4.lua
+2
-0
No files found.
gframe/config.h
View file @
e73969cf
...
...
@@ -16,6 +16,8 @@
#define myswprintf swprintf
#endif
#define socklen_t int
#else //_WIN32
#include <errno.h>
...
...
@@ -24,6 +26,7 @@
#include <sys/ioctl.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#define SD_BOTH 2
#define SOCKET int
...
...
gframe/deck_manager.cpp
View file @
e73969cf
...
...
@@ -176,7 +176,7 @@ bool DeckManager::LoadDeck(const wchar_t* file) {
FILE
*
fp
=
_wfopen
(
deck
,
L"r"
);
#else
char
deckfn
[
256
];
DataManager
::
EncodeUTF8
(
deck
,
deckfn
);
BufferIO
::
EncodeUTF8
(
deck
,
deckfn
);
FILE
*
fp
=
fopen
(
deckfn
,
"r"
);
#endif
if
(
!
fp
)
...
...
@@ -213,7 +213,7 @@ void DeckManager::SaveDeck(Deck& deck, const wchar_t* name) {
FILE
*
fp
=
_wfopen
(
file
,
L"w"
);
#else
char
filefn
[
256
];
DataManager
::
EncodeUTF8
(
file
,
filefn
);
BufferIO
::
EncodeUTF8
(
file
,
filefn
);
FILE
*
fp
=
fopen
(
filefn
,
"w"
);
#endif
if
(
!
fp
)
...
...
gframe/duelclient.cpp
View file @
e73969cf
...
...
@@ -2845,7 +2845,7 @@ void DuelClient::BroadcastReply(evutil_socket_t fd, short events, void * arg) {
mainGame
->
btnLanRefresh
->
setEnabled
(
true
);
}
else
if
(
events
&
EV_READ
)
{
sockaddr_in
bc_addr
;
in
t
sz
=
sizeof
(
sockaddr_in
);
socklen_
t
sz
=
sizeof
(
sockaddr_in
);
char
buf
[
256
];
int
ret
=
recvfrom
(
fd
,
buf
,
256
,
0
,
(
sockaddr
*
)
&
bc_addr
,
&
sz
);
unsigned
int
ipaddr
=
bc_addr
.
sin_addr
.
s_addr
;
...
...
gframe/game.cpp
View file @
e73969cf
...
...
@@ -651,8 +651,8 @@ void Game::RefreshReplay() {
continue
;
wchar_t
wname
[
256
];
BufferIO
::
DecodeUTF8
(
dirp
->
d_name
,
wname
);
if
(
lastReplay
.
CheckReplay
(
dirp
->
d_name
));
lstReplayList
->
addItem
(
wname
);
if
(
Replay
::
CheckReplay
(
wname
))
lstReplayList
->
addItem
(
wname
);
}
#endif
}
...
...
gframe/netserver.cpp
View file @
e73969cf
...
...
@@ -78,7 +78,7 @@ void NetServer::StopListen() {
}
void
NetServer
::
BroadcastEvent
(
evutil_socket_t
fd
,
short
events
,
void
*
arg
)
{
sockaddr_in
bc_addr
;
in
t
sz
=
sizeof
(
sockaddr_in
);
socklen_
t
sz
=
sizeof
(
sockaddr_in
);
char
buf
[
256
];
int
ret
=
recvfrom
(
fd
,
buf
,
256
,
0
,
(
sockaddr
*
)
&
bc_addr
,
&
sz
);
if
(
ret
==
-
1
)
...
...
gframe/premake4.lua
View file @
e73969cf
...
...
@@ -6,13 +6,15 @@ project "gframe"
files
{
"**.cpp"
,
"**.cc"
,
"**.c"
,
"**.h"
}
excludes
"lzma/**"
includedirs
{
"../ocgcore"
}
links
{
"ocgcore"
,
"clzma"
,
"
i
rrlicht"
,
"freetype"
,
"sqlite3"
,
"lua"
,
"event"
}
links
{
"ocgcore"
,
"clzma"
,
"
I
rrlicht"
,
"freetype"
,
"sqlite3"
,
"lua"
,
"event"
}
configuration
"windows"
links
{
"opengl32"
,
"ws2_32"
,
"winmm"
,
"gdi32"
,
"kernel32"
,
"user32"
,
"imm32"
}
configuration
{
"windows"
,
"not vs*"
}
includedirs
{
"/mingw/include/irrlicht"
,
"/mingw/include/freetype2"
}
configuration
"not vs*"
buildoptions
{
"-std=gnu++0x"
}
buildoptions
{
"-std=gnu++0x"
,
"-fno-rtti"
}
configuration
"not windows"
links
{
"gl"
,
"dl"
}
includedirs
{
"/usr/include/lua"
,
"/usr/include/lua5.2"
,
"/usr/include/lua/5.2"
,
"/usr/include/irrlicht"
,
"/usr/include/freetype2"
}
excludes
{
"COSOperator.*"
}
links
{
"event_pthreads"
,
"GL"
,
"dl"
,
"pthread"
}
gframe/single_duel.h
View file @
e73969cf
...
...
@@ -3,7 +3,7 @@
#include "config.h"
#include "network.h"
#include "
R
eplay.h"
#include "
r
eplay.h"
namespace
ygo
{
...
...
gframe/tag_duel.h
View file @
e73969cf
...
...
@@ -3,7 +3,7 @@
#include "config.h"
#include "network.h"
#include "
R
eplay.h"
#include "
r
eplay.h"
namespace
ygo
{
...
...
lflist.conf
View file @
e73969cf
#[2012.3.1][2011.9.1]
#[2012.3.1][2011.9.1]
!
2012
.
3
.
1
#forbidden
20663556
0
--イレカエル
...
...
ocgcore/interpreter.h
View file @
e73969cf
...
...
@@ -14,9 +14,9 @@ extern "C" {
#include <lua/lauxlib.h>
#include <lua/lualib.h>
#else
#include <lua
5.1/lua
.h>
#include <l
ua5.1/l
auxlib.h>
#include <lua
5.1/lua
lib.h>
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#endif
}
#include "common.h"
...
...
ocgcore/premake4.lua
View file @
e73969cf
...
...
@@ -4,3 +4,5 @@ project "ocgcore"
files
{
"**.cc"
,
"**.cpp"
,
"**.c"
,
"**.h"
}
configuration
"not vs*"
buildoptions
{
"-std=gnu++0x"
}
configuration
"not windows"
includedirs
{
"/usr/include/lua"
,
"/usr/include/lua5.2"
,
"/usr/include/lua/5.2"
}
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