Files
mice-3ds/include/main.h
2025-08-19 12:11:55 -07:00

52 lines
1.0 KiB
C

/**
* ctrmus - 3DS Music Player
* Copyright (C) 2016 Mahyar Koshkouei
*
* This program comes with ABSOLUTELY NO WARRANTY and is free software. You are
* welcome to redistribute it under certain conditions; for details see the
* LICENSE file.
*/
#include <3ds.h>
#ifndef ctrmus_main_h
#define ctrmus_main_h
/* Default folder */
#define DEFAULT_DIR "sdmc:/"
/* Maximum number of lines that can be displayed on bottom screen */
#define MAX_LIST 28
/* Arbitrary cap for number of stored parent positions in folder to avoid
* unbounded memory consumption. If directories are added exceeding this,
* dequeues path closest to root to make space.
*/
#define MAX_DIRECTORIES 20
struct watchdogInfo
{
PrintConsole* screen;
struct errInfo_t* errInfo;
};
struct dirList_t
{
char** files;
int fileNum;
char** directories;
int dirNum;
char* currentDir;
};
/**
* Get number of files in current working folder
*
* \return Number of files in current working folder, -1 on failure with
* errno set.
*/
int getNumberFiles(void);
#endif