1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-10-19 03:41:44 +01:00
nxdumptool/source/util.h

47 lines
1 KiB
C
Raw Normal View History

2018-05-15 17:00:19 +01:00
#pragma once
#ifndef __UTIL_H__
#define __UTIL_H__
2018-05-15 17:00:19 +01:00
#include <switch.h>
2018-06-30 07:37:42 +01:00
#define APP_VERSION "1.0.5"
#define NAME_BUF_LEN 4096
2018-06-30 07:37:42 +01:00
#define SOCK_BUFFERSIZE 65536
2018-05-15 17:00:19 +01:00
bool isGameCardInserted(FsDeviceOperator* o);
void syncDisplay();
void delay(u8 seconds);
2018-06-30 07:37:42 +01:00
bool getGameCardTitleIDAndVersion(u64 *titleID, u32 *version);
2018-06-30 07:37:42 +01:00
void convertTitleVersionToDecimal(u32 version, char *versionBuf, int versionBufSize);
bool getGameCardControlNacp(u64 titleID, char *nameBuf, int nameBufSize, char *authorBuf, int authorBufSize);
int getSdCardFreeSpace(u64 *out);
void convertSize(u64 size, 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);
2018-06-30 07:37:42 +01:00
void gameCardDumpNSWDBCheck(u32 crc);
void updateNSWDBXml();
void updateApplication();
void removeIllegalCharacters(char *name);
2018-06-26 02:11:18 +01:00
2018-06-30 07:37:42 +01:00
void strtrim(char *str);
2018-06-26 02:11:18 +01:00
#endif