mirror of https://github.com/AxioDL/metaforce.git
assetnameparser: Convert typdefs into using aliases
This commit is contained in:
parent
99dd875b43
commit
e6aed18d59
|
@ -135,19 +135,19 @@ struct SAsset {
|
||||||
enum class FileLockType { None = 0, Read, Write };
|
enum class FileLockType { None = 0, Read, Write };
|
||||||
|
|
||||||
#if IS_UCS2
|
#if IS_UCS2
|
||||||
typedef wchar_t SystemChar;
|
using SystemChar = wchar_t;
|
||||||
typedef std::wstring SystemString;
|
using SystemString = std::wstring;
|
||||||
#ifndef _SYS_STR
|
#ifndef _SYS_STR
|
||||||
#define _SYS_STR(val) L##val
|
#define _SYS_STR(val) L##val
|
||||||
#endif
|
#endif
|
||||||
typedef struct _stat Sstat;
|
using Sstat = struct _stat;
|
||||||
#else
|
#else
|
||||||
typedef char SystemChar;
|
using SystemChar = char;
|
||||||
typedef std::string SystemString;
|
using SystemString = std::string;
|
||||||
#ifndef _SYS_STR
|
#ifndef _SYS_STR
|
||||||
#define _SYS_STR(val) val
|
#define _SYS_STR(val) val
|
||||||
#endif
|
#endif
|
||||||
typedef struct stat Sstat;
|
using Sstat = struct stat;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
FILE* Fopen(const SystemChar* path, const SystemChar* mode, FileLockType lock = FileLockType::None) {
|
FILE* Fopen(const SystemChar* path, const SystemChar* mode, FileLockType lock = FileLockType::None) {
|
||||||
|
|
Loading…
Reference in New Issue