Skip to content
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Loading...
Searching...
No Matches
debuglaunch.cpp File Reference

DEBUG-ONLY startup automation. More...

#include <QApplication>
Include dependency graph for debuglaunch.cpp:

Go to the source code of this file.

Functions

void applyDebugLaunch (QApplication *)

Detailed Description

DEBUG-ONLY startup automation.

Parses developer launch flags and, once the QML shell is live, loads a save and jumps straight to a screen – instead of clicking through the New File modal by hand. Meant for fast manual iteration and for automation harnesses (launch directly into the screen under test).

Flags (all optional): –sav <path> load this .sav on startup –screen <name> jump to a registered screen after load (trainerCard, pokedex, bag, pokemart, pokemon, rival, maps, home, ...) –select <spec> selection for screens that need one – 'random' or 'source:id' (NOT yet wired – reserved for the next step)

Guarded by QT_DEBUG: in release builds applyDebugLaunch() is an empty no-op, so the flags and this whole mechanism simply don't exist in shipped binaries.

Definition in file debuglaunch.cpp.

Function Documentation

◆ applyDebugLaunch()

void applyDebugLaunch ( QApplication * app)

Definition at line 160 of file debuglaunch.cpp.

Referenced by boot().