1234567891011121314151617181920212223242526 |
- #ifndef TEMPLATE_UTIL_HPP
- #define TEMPLATE_UTIL_HPP
- #include <sys/stat.h>
- #include <string>
- #include <cpp3ds/Network/Http.hpp>
- #include <cpp3ds/System/String.hpp>
- #ifndef EMULATION
- #include <3ds.h>
- #endif
- namespace Template
- {
- bool pathExists(const char* path, bool escape = true);
- bool fileExists (const std::string& name);
- void makeDirectory(const char *dir, mode_t mode = 0777);
- int removeDirectory(const char *path, bool onlyIfEmpty = false);
- void hexToRGB(std::string hexValue, int *R, int *G, int *B);
- std::string ReplaceAll(std::string str, const std::string& from, const std::string& to);
- cpp3ds::String getUsername();
- } // namespace Template
- #endif // TEMPLATE_UTIL_HPP
|