Files
RetroArch/samples/menu/core_warning/Makefile
davey 738584cd10 core signatures: the Security Warning
core_warning_push() holds one request, a copy of the check that failed,
and opens a screen built like Load Archive / Open Archive: the reason
and the full-access warning as rows above the choices, the line about
turning the checks off below, the cursor on Cancel. An install offers
Install and Trust, a load Load Once and Always Trust This Core, a core
that couldn't be read Cancel only. The text rows are wrapped short
because no menu driver wraps a label. The core updater's two refusal
messages are added with the rest.

The caller's callback gets the choice, or Cancel on Back, a newer
request or quit. Each request has a serial that its screen's rows
carry, so OK on rows built for an older request refreshes the screen
rather than answering the newer one. OK and Back take the screen off
the stack before the callback runs, so a callback that changes the
menu stack (a load starting content) isn't followed by a pop of the
wrong screen. A newer push runs the replaced request's callback with
Cancel inside itself, with the newer request already in the slot; a
choice made from there is ignored.

A request still pending when a stack flush (a tab switch, a menu
reinit) takes its screen away gets it back on the next frame; one
answered before its screen came up leaves none. Info on the screen
does nothing. core_warning_push() refuses during deinit's cancel and
when the menu driver shows no screens (null), so the caller keeps its
request instead of one nobody can answer.

samples/menu/core_warning drives the screen through the shipping
handlers, with core_signature.c rebuilt around the test key and a trust
store of its own.
2026-11-16 07:12:20 +01:00

21 lines
663 B
Makefile

# See build.sh: this harness links the shipping RetroArch objects with
# only main() replaced, so it needs the project's own build rather than
# a source list of its own. MAKE_ARGS names the tree build to link.
TARGET := core_warning_test
all:
@MAKE_ARGS="$(MAKE_ARGS)" ./build.sh
check: all
@./$(TARGET) > check.log 2>&1; rc=$$?; \
grep -vE '^\[(INFO|DEBUG|WARN|ERROR)\]' check.log; rm -f check.log; \
exit $$rc
clean:
rm -f $(TARGET) $(TARGET).exe \
retroarch_nomain.o harness_main.o harness_cocoa.o default.metallib \
retroarch_nomain.d harness_main.d \
core_signature_testkey.o core_signature_testkey.d
.PHONY: all check clean