shithub: zelda3

Download patch

ref: 7f01b37e0ca3d8d56140a971eb2bcb95a3a66522
parent: 19a034bfe528ee39bb3b76e613cf2ae6bbdb7f13
author: Snesrev <snesrev@protonmail.com>
date: Sun Sep 4 08:47:15 EDT 2022

Fix Makefile

--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,8 @@
 OBJS:=$(SRCS:%.c=%.o)
 GEN:=$(shell grep -hor tables/generated.*.h --include \*.c .)
 PYTHON:=/usr/bin/env python3
-CFLAGS:=${CFLAGS} $(shell sdl2-config --cflags)
-LDFLAGS:=${LDFLAGS} $(shell sdl2-config --libs)
+CFLAGS:=${CFLAGS} -O2 $(shell sdl2-config --cflags)
+LDFLAGS:=${LDFLAGS} -lm $(shell sdl2-config --libs)
 
 .PHONY: all clean clean_obj clean_gen
 
--- a/README.md
+++ b/README.md
@@ -53,7 +53,6 @@
 make -j$(nproc) # run on all core
 make clean all  # clear gen+obj and rebuild
 CC=clang make   # specify compiler
-CFLAGS=-O3 make # specify compilation flags
 ```
 </details>
 
@@ -78,6 +77,7 @@
 | L      | D           |
 | R      | C           |
 
+The keys can be reconfigured in zelda3.ini
 
 Additionally, the following commands are available:
 
@@ -88,7 +88,8 @@
 | P   | Pause                 |
 | T   | Toggle replay turbo   |
 | O   | Set dungeon key to 1  |
-| K   | Clear all input history from current snapshot  |
+| K   | Clear all input history from the joypad log  |
+| L   | Stop replaying a shapshot  |
 | F1-F10 | Load snapshot      |
 | Alt+Enter | Toggle Fullscreen     |
 | Shift+F1-F10 | Save snapshot |