Skip to content

Commit

Permalink
Release 5.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Dec 16, 2021
1 parent 4f6178e commit 24454db
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ src/_agent.h: src/_agent.js

ifeq ($(R2FRIDA_PRECOMPILED_AGENT),1)
src/_agent.js:
$(WGET) -O src/_agent.js https://github.com/nowsecure/r2frida/releases/download/v5.5.0/_agent.js
$(WGET) -O src/_agent.js https://github.com/nowsecure/r2frida/releases/download/v5.5.4/_agent.js
else
src/_agent.js: src/agent/index.js src/agent/plugin.js node_modules
npm run build
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions plugins/gnuboy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ mute the audio and more to come!
*/

const eventNone = 0;
const eventPress = 1;
const eventRelease = 2;
const eventRepeat = 3;

function symptr(name) {
var p = Module.findExportByName(null, name);
if (p) {
Expand Down Expand Up @@ -50,6 +55,18 @@ function sym(name, ret, arg) {
}
}

function gnuboyInput() {
/*
typedef struct event_s {
int type;
int code;
int dx, dy;
int x, y;
} event_t;
// var ptr = Memory.alloc(6 * 8);
*/
}

function showHelp() {
return 'gnuboy Commands:\n'
+ '# This plugin requires to be attached to "r2pm -ci gnuboy"\n'
Expand All @@ -61,6 +78,12 @@ function showHelp() {
+ 'gb stop - stop execution\n'
+ 'gb step - perform one step\n'
+ 'gb cont - continue execution\n'
/*
+ '# INP\n'
+ 'gb press - press button\n'
+ 'gb release - press button\n'
+ 'gb repeat - press button\n'
*/
+ '# APU\n'
+ 'gb mute - mute audio\n'
+ '# LCD\n'
Expand Down

0 comments on commit 24454db

Please sign in to comment.