2018-05-15 17:00:19 +01:00
|
|
|
#pragma once
|
|
|
|
|
2018-06-21 07:42:46 +01:00
|
|
|
#ifndef __UTIL_H__
|
|
|
|
#define __UTIL_H__
|
|
|
|
|
2018-05-15 17:00:19 +01:00
|
|
|
#include <switch.h>
|
|
|
|
|
2018-06-24 01:48:34 +01:00
|
|
|
#define APP_VERSION "1.0.3"
|
2018-06-21 07:42:46 +01:00
|
|
|
#define NAME_BUF_LEN 4096
|
|
|
|
|
2018-05-15 17:00:19 +01:00
|
|
|
bool isGameCardInserted(FsDeviceOperator* o);
|
2018-06-21 07:42:46 +01:00
|
|
|
|
|
|
|
void syncDisplay();
|
|
|
|
|
|
|
|
void delay(u8 seconds);
|
|
|
|
|
|
|
|
bool getGameCardTitleID(u64 *titleID);
|
|
|
|
|
|
|
|
bool getGameCardControlNacp(u64 titleID, char *nameBuf, int nameBufSize, char *authorBuf, int authorBufSize, char *versionBuf, int versionBufSize);
|
|
|
|
|
|
|
|
int getSdCardFreeSpace(u64 *out);
|
|
|
|
|
|
|
|
void convertSize(u64 size, char *out, int bufsize);
|
|
|
|
|
|
|
|
void getCurrentTimestamp(char *out, int bufsize);
|
|
|
|
|
|
|
|
void waitForButtonPress();
|
|
|
|
|
|
|
|
bool isDirectory(char *path);
|
|
|
|
|
|
|
|
void addString(char **filenames, int *filenamesCount, char **nextFilename, const char *string);
|
|
|
|
|
|
|
|
void getDirectoryContents(char *filenameBuffer, char **filenames, int *filenamesCount, const char *directory, bool skipParent);
|
|
|
|
|
|
|
|
#endif
|