Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
fallenstardust
YGOMobile
Commits
0604b102
Commit
0604b102
authored
Jul 22, 2021
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync
parent
fa47579f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
9 deletions
+7
-9
Classes/gframe/gframe.cpp
Classes/gframe/gframe.cpp
+1
-0
mobile/build.gradle
mobile/build.gradle
+0
-3
mobile/src/main/java/cn/garymb/ygomobile/GameUriManager.java
mobile/src/main/java/cn/garymb/ygomobile/GameUriManager.java
+4
-4
mobile/src/main/java/cn/garymb/ygomobile/ui/activities/LogoActivity.java
.../java/cn/garymb/ygomobile/ui/activities/LogoActivity.java
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/MyCard.java
...e/src/main/java/cn/garymb/ygomobile/ui/mycard/MyCard.java
+1
-1
No files found.
Classes/gframe/gframe.cpp
View file @
0604b102
...
...
@@ -66,6 +66,7 @@ int main(int argc, char* argv[]) {
bool
open_file
=
false
;
#ifdef _IRR_ANDROID_PLATFORM_
__android_log_print
(
ANDROID_LOG_WARN
,
"ygo"
,
"handle args %d"
,
argc
);
__android_log_print
(
ANDROID_LOG_WARN
,
"ygo"
,
"handle args %s"
,
argv
);
//android
for
(
int
i
=
0
;
i
<
argc
;
++
i
)
{
const
char
*
arg
=
argv
[
i
].
c_str
();
...
...
mobile/build.gradle
View file @
0604b102
...
...
@@ -34,9 +34,6 @@ android {
}
}
buildTypes
{
debug
{
debuggable
false
}
release
{
shrinkResources
false
minifyEnabled
false
...
...
mobile/src/main/java/cn/garymb/ygomobile/GameUriManager.java
View file @
0604b102
...
...
@@ -156,7 +156,7 @@ public class GameUriManager {
}
else
if
(
file
.
getName
().
toLowerCase
(
Locale
.
US
).
endsWith
(
".yrp"
))
{
File
yrp
=
new
File
(
AppsSettings
.
get
().
getResourcePath
()
+
"/"
+
CORE_REPLAY_PATH
+
"/"
+
file
.
getName
());
if
(
yrp
.
exists
())
{
YGOStarter
.
startGame
(
getActivity
(),
null
,
"-r
"
,
yrp
.
getName
());
YGOStarter
.
startGame
(
getActivity
(),
null
,
"-r"
,
yrp
.
getName
());
Toast
.
makeText
(
activity
,
activity
.
getString
(
R
.
string
.
file_exist
),
Toast
.
LENGTH_LONG
).
show
();
}
else
{
try
{
...
...
@@ -165,7 +165,7 @@ public class GameUriManager {
Toast
.
makeText
(
activity
,
activity
.
getString
(
R
.
string
.
install_failed_bcos
)
+
e
,
Toast
.
LENGTH_LONG
).
show
();
}
if
(!
YGOStarter
.
isGameRunning
(
getActivity
()))
{
YGOStarter
.
startGame
(
getActivity
(),
null
,
"-r
"
,
yrp
.
getName
());
YGOStarter
.
startGame
(
getActivity
(),
null
,
"-r"
,
yrp
.
getName
());
Toast
.
makeText
(
activity
,
activity
.
getString
(
R
.
string
.
file_installed
),
Toast
.
LENGTH_LONG
).
show
();
}
}
...
...
@@ -244,7 +244,7 @@ public class GameUriManager {
try
{
ParcelFileDescriptor
pfd
=
getActivity
().
getContentResolver
().
openFileDescriptor
(
uri
,
"r"
);
if
(
yrp
.
exists
())
{
YGOStarter
.
startGame
(
getActivity
(),
null
,
"-r
"
,
yrp
.
getName
());
YGOStarter
.
startGame
(
getActivity
(),
null
,
"-r"
,
yrp
.
getName
());
Toast
.
makeText
(
activity
,
activity
.
getString
(
R
.
string
.
file_exist
),
Toast
.
LENGTH_SHORT
).
show
();
}
else
{
if
(
pfd
==
null
)
{
...
...
@@ -263,7 +263,7 @@ public class GameUriManager {
e
.
printStackTrace
();
}
if
(!
YGOStarter
.
isGameRunning
(
getActivity
()))
{
YGOStarter
.
startGame
(
activity
,
null
,
"-r
"
,
yrp
.
getName
());
YGOStarter
.
startGame
(
activity
,
null
,
"-r"
,
yrp
.
getName
());
Toast
.
makeText
(
activity
,
activity
.
getString
(
R
.
string
.
file_installed
),
Toast
.
LENGTH_LONG
).
show
();
}
}
else
if
(
urifile
.
getName
().
toLowerCase
(
Locale
.
US
).
endsWith
(
".lua"
))
{
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/activities/LogoActivity.java
View file @
0604b102
...
...
@@ -23,7 +23,7 @@ public class LogoActivity extends Activity {
hideBottomUIMenu
();
setContentView
(
R
.
layout
.
activity_logo
);
if
(
AppsSettings
.
get
().
isOnlyGame
())
{
YGOStarter
.
startGame
(
this
,
null
,
null
);
YGOStarter
.
startGame
(
this
,
null
);
finish
();
return
;
}
else
{
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/MyCard.java
View file @
0604b102
...
...
@@ -257,7 +257,7 @@ public class MyCard {
activity
.
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
YGOStarter
.
startGame
(
activity
,
options
,
null
);
YGOStarter
.
startGame
(
activity
,
options
);
}
});
}
catch
(
Exception
e
)
{
...
...
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