Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
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
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
nanahira
ygopro2
Commits
66d5a723
Commit
66d5a723
authored
Apr 10, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compatibility
parent
7d7acda8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
Assets/SibylSystem/MonoHelpers/UIHelper.cs
Assets/SibylSystem/MonoHelpers/UIHelper.cs
+8
-8
Assets/SibylSystem/SelectDeck/selectDeck.cs
Assets/SibylSystem/SelectDeck/selectDeck.cs
+7
-1
No files found.
Assets/SibylSystem/MonoHelpers/UIHelper.cs
View file @
66d5a723
...
@@ -9,25 +9,25 @@ using YGOSharp.OCGWrapper.Enums;
...
@@ -9,25 +9,25 @@ using YGOSharp.OCGWrapper.Enums;
public
static
class
UIHelper
public
static
class
UIHelper
{
{
[
DllImport
(
"user32
.dll
"
)]
[
DllImport
(
"user32"
)]
static
extern
bool
FlashWindow
(
IntPtr
handle
,
bool
invert
);
static
extern
bool
FlashWindow
(
IntPtr
handle
,
bool
invert
);
public
delegate
bool
WNDENUMPROC
(
IntPtr
hwnd
,
IntPtr
lParam
);
public
delegate
bool
WNDENUMPROC
(
IntPtr
hwnd
,
IntPtr
lParam
);
[
DllImport
(
"user32
.dll
"
,
SetLastError
=
true
)]
[
DllImport
(
"user32"
,
SetLastError
=
true
)]
static
extern
bool
EnumWindows
(
WNDENUMPROC
lpEnumFunc
,
IntPtr
lParam
);
static
extern
bool
EnumWindows
(
WNDENUMPROC
lpEnumFunc
,
IntPtr
lParam
);
[
DllImport
(
"user32
.dll
"
,
SetLastError
=
true
)]
[
DllImport
(
"user32"
,
SetLastError
=
true
)]
static
extern
IntPtr
GetParent
(
IntPtr
hWnd
);
static
extern
IntPtr
GetParent
(
IntPtr
hWnd
);
[
DllImport
(
"user32
.dll
"
)]
[
DllImport
(
"user32"
)]
static
extern
uint
GetWindowThreadProcessId
(
IntPtr
hWnd
,
ref
IntPtr
lpdwProcessId
);
static
extern
uint
GetWindowThreadProcessId
(
IntPtr
hWnd
,
ref
IntPtr
lpdwProcessId
);
[
DllImport
(
"user32
.dll
"
)]
[
DllImport
(
"user32"
)]
static
extern
int
GetClassNameW
(
IntPtr
hWnd
,
[
MarshalAs
(
UnmanagedType
.
LPWStr
)]
StringBuilder
lpString
,
int
nMaxCount
);
static
extern
int
GetClassNameW
(
IntPtr
hWnd
,
[
MarshalAs
(
UnmanagedType
.
LPWStr
)]
StringBuilder
lpString
,
int
nMaxCount
);
[
DllImport
(
"user32
.dll
"
)]
[
DllImport
(
"user32"
)]
static
extern
bool
IsZoomed
(
IntPtr
hWnd
);
static
extern
bool
IsZoomed
(
IntPtr
hWnd
);
[
DllImport
(
"user32
.dll
"
)]
[
DllImport
(
"user32"
)]
static
extern
bool
ShowWindow
(
IntPtr
hWnd
,
int
nCmdShow
);
static
extern
bool
ShowWindow
(
IntPtr
hWnd
,
int
nCmdShow
);
[
DllImport
(
"kernel32
.dll
"
)]
[
DllImport
(
"kernel32"
)]
static
extern
void
SetLastError
(
uint
dwErrCode
);
static
extern
void
SetLastError
(
uint
dwErrCode
);
static
IntPtr
myHWND
=
IntPtr
.
Zero
;
static
IntPtr
myHWND
=
IntPtr
.
Zero
;
...
...
Assets/SibylSystem/SelectDeck/selectDeck.cs
View file @
66d5a723
...
@@ -249,7 +249,13 @@ public class selectDeck : WindowServantSP
...
@@ -249,7 +249,13 @@ public class selectDeck : WindowServantSP
string
path
=
"deck/"
+
superScrollView
.
selectedString
+
".ydk"
;
string
path
=
"deck/"
+
superScrollView
.
selectedString
+
".ydk"
;
if
(
File
.
Exists
(
path
))
if
(
File
.
Exists
(
path
))
{
{
System
.
Diagnostics
.
Process
.
Start
(
"notepad.exe"
,
path
);
#
if
UNITY_EDITOR
||
UNITY_STANDALONE_WIN
//编译器、Windows
System
.
Diagnostics
.
Process
.
Start
(
"notepad.exe"
,
path
);
#
elif
UNITY_STANDALONE_OSX
//Mac OS X
System
.
Diagnostics
.
Process
.
Start
(
"open"
,
"-e "
+
path
);
#
elif
UNITY_STANDALONE_LINUX
//Linux
System
.
Diagnostics
.
Process
.
Start
(
"gedit"
,
path
);
#
endif
}
}
}
}
...
...
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