This commit is contained in:
2022-04-29 13:45:12 -07:00
parent 41a23e30ac
commit 87ba6dc281
4 changed files with 55 additions and 0 deletions

5
scripts/351.js Normal file
View File

@@ -0,0 +1,5 @@
const process = require('process');
const { spawnSync, execSync } = require('child_process');
execSync(`scp ./build/Penny.gb root@ywbud3:/storage/roms/gb/Penny.gb`);
execSync(`echo "systemctl stop emustation.service; killall emulationstation; retroarch -L /lib/libretro/gambatte_libretro.so '/storage/roms/gb/Penny.gb';" | ssh root@ywbud3 /bin/bash`);

View File

@@ -0,0 +1,18 @@
/**
* Copyright (c) 2022 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "questionbox.h"
void questionBoxSetOptions(char *title, char *options[QUESTION_BOX_OPTIONS_MAX]) {
char buffer[TEXTBOX_CHARS_MAX + 1];
sprintf(buffer, "Hello World");
conversationTextboxSetText(buffer);
}
inline void questionBoxUpdate() {
}

View File

@@ -0,0 +1,24 @@
/**
* Copyright (c) 2022 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "../libs.h"
#include "../util.h"
#include "../input.h"
#include "../display/common.h"
#include "../display/tilemap.h"
#include "frame.h"
#include "textbox.h"
#define QUESTION_BOX_OPTIONS_MAX ((TEXTBOX_CHAR_ROWS-1)*2)
extern uint8_t QUESTION_BOX_OPTION_COUNT;
extern uint8_t QUESTION_BOX_OPTION_CURRENT;
void questionBoxSetOptions(char *title, char *options[QUESTION_BOX_OPTIONS_MAX]);
inline void questionBoxUpdate();

8
test.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
# Send over latest build
scp ./build/Penny.gb root@ywbud3:/storage/roms/gb/Penny.gb
systemctl stop emustation.service
killall emulationstation
retroarch -L /lib/libretro/gambatte_libretro.so "/storage/roms/gb/Penny.gb"
systemctl start emustation.service