dev: utilsconsole: merge c and cpp files

This commit is contained in:
Zy 2024-10-12 15:40:32 +02:00
parent 236cb9a780
commit 3f5e13b2f2
6 changed files with 21 additions and 73 deletions

View file

@ -1,15 +1,18 @@
/**
* utilsconsole.hpp
* utilsconsole.h
* by Zy
*/
/**
* utilsconsole.hpp (uc_*() functions)
* utilsconsole.h (uc_*() functions)
* Utility functions for the 3DS console.
*/
#pragma once
#ifdef __cplusplus
extern "C++" {
#include <string>
#include <vector>
@ -40,6 +43,9 @@ typedef struct {
/// @return The index of the confirmed element. If none, return -1.
int uc_menu(vector<s_uc_menu_element> &elements);
}
#endif
/// @brief Display a menu quickly using only confirm buttons.
/// @details
/// Blocking function. Will return -1 if aptMainLoop() becomes false.

View file

@ -1,22 +0,0 @@
/**
* utilsconsole_extern_c.h
* by Zy
*/
/**
* utilsconsole_extern_c.h (uc_*() functions)
*/
#ifndef UTILSCONSOLE_EXTERN_C_H
# define UTILSCONSOLE_EXTERN_C_H
/// @brief Blocks the program until the user presses A.
/// @details Will also return if aptMainLoop() becomes false.
void uc_pause(void);
/// @brief Show the 3DS keyboard to ask the user for a text.
/// @param def The default text to show the user.
/// @return A freeable address to the text prompted by the user. NULL if error.
char *uc_keyboard(const char *def);
#endif