Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jbus
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
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
AxioDL
jbus
Commits
c06141af
Commit
c06141af
authored
Jan 13, 2018
by
Jack Andersen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stack reference bug fix
parent
8593e06f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
include/jbus/Endpoint.hpp
include/jbus/Endpoint.hpp
+2
-1
lib/Endpoint.cpp
lib/Endpoint.cpp
+6
-2
No files found.
include/jbus/Endpoint.hpp
View file @
c06141af
...
...
@@ -87,8 +87,9 @@ class Endpoint
public:
KawasedoChallenge
()
=
default
;
KawasedoChallenge
(
Endpoint
&
endpoint
,
s32
paletteColor
,
s32
paletteSpeed
,
KawasedoChallenge
(
s32
paletteColor
,
s32
paletteSpeed
,
const
u8
*
programp
,
s32
length
,
u8
*
status
,
FGBACallback
&&
callback
);
void
start
(
Endpoint
&
endpoint
);
bool
started
()
const
{
return
m_started
;
}
u8
percentComplete
()
const
{
...
...
lib/Endpoint.cpp
View file @
c06141af
...
...
@@ -388,10 +388,13 @@ void Endpoint::KawasedoChallenge::_8BootDone(ThreadLocalEndpoint& endpoint, EJoy
}
}
Endpoint
::
KawasedoChallenge
::
KawasedoChallenge
(
Endpoint
&
endpoint
,
s32
paletteColor
,
s32
paletteSpeed
,
Endpoint
::
KawasedoChallenge
::
KawasedoChallenge
(
s32
paletteColor
,
s32
paletteSpeed
,
const
u8
*
programp
,
s32
length
,
u8
*
status
,
FGBACallback
&&
callback
)
:
x0_pColor
(
paletteColor
),
x4_pSpeed
(
paletteSpeed
),
x8_progPtr
(
programp
),
xc_progLen
(
length
),
x10_statusPtr
(
status
),
x14_callback
(
std
::
move
(
callback
)),
x34_bytesSent
(
0
),
m_initialized
(
true
)
{}
void
Endpoint
::
KawasedoChallenge
::
start
(
Endpoint
&
endpoint
)
{
if
(
endpoint
.
GBAGetStatusAsync
(
x10_statusPtr
,
bindThis
(
&
KawasedoChallenge
::
_0Reset
))
!=
GBA_READY
)
...
...
@@ -805,8 +808,9 @@ EJoyReturn Endpoint::GBAJoyBootAsync(s32 paletteColor, s32 paletteSpeed,
if
(
programp
[
0xac
]
*
programp
[
0xac
]
*
programp
[
0xac
]
*
programp
[
0xac
]
==
0
)
return
GBA_JOYBOOT_ERR_INVALID
;
m_joyBoot
=
KawasedoChallenge
(
*
this
,
paletteColor
,
paletteSpeed
,
programp
,
length
,
status
,
m_joyBoot
=
KawasedoChallenge
(
paletteColor
,
paletteSpeed
,
programp
,
length
,
status
,
std
::
move
(
callback
));
m_joyBoot
.
start
(
*
this
);
if
(
!
m_joyBoot
.
started
())
return
GBA_NOT_READY
;
...
...
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