[CHANGED] 'setmode' renamed to 'mode'

This commit is contained in:
2021-12-17 16:43:06 +01:00
parent fe9f4fed9c
commit 64bcedd82f
12 changed files with 19 additions and 16 deletions

View File

@@ -189,7 +189,7 @@ int main(int argc,char*argv[]) {
while(!exit) {
if (should_reset) {
should_reset = false;
setmode(1);
mode(1);
reinit();
lua_init(lua_filename);
lua_call_init();
@@ -629,8 +629,8 @@ void play(const char* str) {
audio_state = AUDIO_PLAY;
}
void setmode(const uint8_t mode) {
current_mode = mode;
void mode(const uint8_t val) {
current_mode = val;
reinit();
cls();
}