351
This commit is contained in:
5
scripts/351.js
Normal file
5
scripts/351.js
Normal 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`);
|
18
src/conversation/questionbox.c
Normal file
18
src/conversation/questionbox.c
Normal 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() {
|
||||
|
||||
}
|
24
src/conversation/questionbox.h
Normal file
24
src/conversation/questionbox.h
Normal 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
8
test.sh
Normal 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
|
Reference in New Issue
Block a user