overlay: small tweaks to cards tab (#602)

## Link to GitHub Issue or related Pull Request, if one exists
#593 

## Description of change
* Display a confirmation dialog when clicking on `Generate` for the
first time (to prevent accidental loss of card number)
* If `cardN.txt` contents are read back successfully, show card number
in green to indicate success, and red in case of failure.
This commit is contained in:
bicarus
2026-03-31 00:07:34 -07:00
committed by GitHub
parent 220b27159b
commit 0d60649715
2 changed files with 78 additions and 12 deletions
+2 -1
View File
@@ -87,7 +87,7 @@ namespace overlay::windows {
bool auto_match_soft_enabled = true;
bool auto_match_p2 = false;
// keypads tab
// cards tab
int keypads_selected[2] {};
char keypads_card_path[2][1024] {};
std::thread *keypads_card_select = nullptr;
@@ -96,6 +96,7 @@ namespace overlay::windows {
char keypads_card_number[2][18] {};
bool keypads_card_override_valid[2] = { false, false };
bool keypads_card_file_contents_valid[2] = { false, false };
bool keypads_card_overwrite_confirmed[2];
// presets tab
std::vector<ControllerTemplate> templates_cache;