dev: utilsconsole: merge c and cpp files
This commit is contained in:
parent
236cb9a780
commit
3f5e13b2f2
6 changed files with 21 additions and 73 deletions
|
|
@ -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.
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue