mirror of https://github.com/ClassiCube/ClassiCube
Fix fresh copy of launcher on windows displaying multiple 'path not found' errors on startup
This commit is contained in:
parent
162bb983ab
commit
482c8e1256
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = 99999;
|
const cc_result ReturnCode_FileNotFound = 99999;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = 99999;
|
const cc_result ReturnCode_DirectoryExists = 99999;
|
||||||
|
|
||||||
const cc_result ReturnCode_SocketInProgess = -1;
|
const cc_result ReturnCode_SocketInProgess = -1;
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ static void ClearColorBuffer(void) {
|
||||||
int i, x, y, size = fb_width * fb_height;
|
int i, x, y, size = fb_width * fb_height;
|
||||||
|
|
||||||
#ifdef CC_BUILD_GBA
|
#ifdef CC_BUILD_GBA
|
||||||
/* in mGBA, fast clear takes ~2ms compared to ~52ms of code below */
|
/* in mGBA, fast clear takes ~3ms compared to ~52ms of standard code below */
|
||||||
extern void VRAM_FastClear(BitmapCol color);
|
extern void VRAM_FastClear(BitmapCol color);
|
||||||
VRAM_FastClear(clearColor);
|
VRAM_FastClear(clearColor);
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -465,7 +465,8 @@ static cc_result ExtractTexturePack(const cc_string* path) {
|
||||||
|
|
||||||
Platform_EncodePath(&raw_path, path);
|
Platform_EncodePath(&raw_path, path);
|
||||||
res = Stream_OpenPath(&stream, &raw_path);
|
res = Stream_OpenPath(&stream, &raw_path);
|
||||||
if (res == ReturnCode_FileNotFound) return res;
|
|
||||||
|
if (ReturnCode_IsNotFound(res)) return res;
|
||||||
if (res) { Logger_SysWarn(res, "opening texture pack"); return res; }
|
if (res) { Logger_SysWarn(res, "opening texture pack"); return res; }
|
||||||
|
|
||||||
res = Zip_Extract(&stream,
|
res = Zip_Extract(&stream,
|
||||||
|
|
|
||||||
|
|
@ -264,8 +264,11 @@ extern cc_bool Platform_ReadonlyFilesystem;
|
||||||
extern const cc_result ReturnCode_FileShareViolation;
|
extern const cc_result ReturnCode_FileShareViolation;
|
||||||
/* Result code for when trying to open a non-existent file */
|
/* Result code for when trying to open a non-existent file */
|
||||||
extern const cc_result ReturnCode_FileNotFound;
|
extern const cc_result ReturnCode_FileNotFound;
|
||||||
|
/* Result code for when trying to open a file in a non-existent path */
|
||||||
|
extern const cc_result ReturnCode_PathNotFound;
|
||||||
/* Result code for when trying to create an already existent directory */
|
/* Result code for when trying to create an already existent directory */
|
||||||
extern const cc_result ReturnCode_DirectoryExists;
|
extern const cc_result ReturnCode_DirectoryExists;
|
||||||
|
#define ReturnCode_IsNotFound(res) ((res) == ReturnCode_FileNotFound || (res) == ReturnCode_PathNotFound)
|
||||||
|
|
||||||
/* Attempts to create a new directory. */
|
/* Attempts to create a new directory. */
|
||||||
cc_result Directory_Create(const cc_filepath* path);
|
cc_result Directory_Create(const cc_filepath* path);
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000;
|
const cc_result ReturnCode_FileShareViolation = 1000000000;
|
||||||
const cc_result ReturnCode_FileNotFound = fnfErr;
|
const cc_result ReturnCode_FileNotFound = fnfErr;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = dupFNErr;
|
const cc_result ReturnCode_DirectoryExists = dupFNErr;
|
||||||
const cc_result ReturnCode_SocketInProgess = 1000000;
|
const cc_result ReturnCode_SocketInProgess = 1000000;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = 1000000;
|
const cc_result ReturnCode_SocketWouldBlock = 1000000;
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
static HANDLE heap;
|
static HANDLE heap;
|
||||||
const cc_result ReturnCode_FileShareViolation = ERROR_SHARING_VIOLATION;
|
const cc_result ReturnCode_FileShareViolation = ERROR_SHARING_VIOLATION;
|
||||||
const cc_result ReturnCode_FileNotFound = ERROR_FILE_NOT_FOUND;
|
const cc_result ReturnCode_FileNotFound = ERROR_FILE_NOT_FOUND;
|
||||||
|
const cc_result ReturnCode_PathNotFound = ERROR_PATH_NOT_FOUND;
|
||||||
const cc_result ReturnCode_DirectoryExists = ERROR_ALREADY_EXISTS;
|
const cc_result ReturnCode_DirectoryExists = ERROR_ALREADY_EXISTS;
|
||||||
const cc_result ReturnCode_SocketInProgess = WSAEINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = WSAEINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = WSAEWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = WSAEWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
static HANDLE heap;
|
static HANDLE heap;
|
||||||
const cc_result ReturnCode_FileShareViolation = ERROR_SHARING_VIOLATION;
|
const cc_result ReturnCode_FileShareViolation = ERROR_SHARING_VIOLATION;
|
||||||
const cc_result ReturnCode_FileNotFound = ERROR_FILE_NOT_FOUND;
|
const cc_result ReturnCode_FileNotFound = ERROR_FILE_NOT_FOUND;
|
||||||
|
const cc_result ReturnCode_PathNotFound = ERROR_PATH_NOT_FOUND;
|
||||||
const cc_result ReturnCode_DirectoryExists = ERROR_ALREADY_EXISTS;
|
const cc_result ReturnCode_DirectoryExists = ERROR_ALREADY_EXISTS;
|
||||||
const cc_result ReturnCode_SocketInProgess = WSAEINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = WSAEINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = WSAEWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = WSAEWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,8 @@ static void ZipFile_InspectEntries(const cc_string* path, Zip_SelectEntry select
|
||||||
|
|
||||||
Platform_EncodePath(&raw_path, path);
|
Platform_EncodePath(&raw_path, path);
|
||||||
res = Stream_OpenPath(&stream, &raw_path);
|
res = Stream_OpenPath(&stream, &raw_path);
|
||||||
if (res == ReturnCode_FileNotFound) return;
|
|
||||||
|
if (ReturnCode_IsNotFound(res)) return;
|
||||||
if (res) { Logger_IOWarn2(res, "opening", &raw_path); return; }
|
if (res) { Logger_IOWarn2(res, "opening", &raw_path); return; }
|
||||||
|
|
||||||
res = Zip_Extract(&stream, selector, NULL,
|
res = Zip_Extract(&stream, selector, NULL,
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ using namespace Windows::System;
|
||||||
static HANDLE heap;
|
static HANDLE heap;
|
||||||
const cc_result ReturnCode_FileShareViolation = ERROR_SHARING_VIOLATION;
|
const cc_result ReturnCode_FileShareViolation = ERROR_SHARING_VIOLATION;
|
||||||
const cc_result ReturnCode_FileNotFound = ERROR_FILE_NOT_FOUND;
|
const cc_result ReturnCode_FileNotFound = ERROR_FILE_NOT_FOUND;
|
||||||
|
const cc_result ReturnCode_PathNotFound = ERROR_PATH_NOT_FOUND;
|
||||||
const cc_result ReturnCode_DirectoryExists = ERROR_ALREADY_EXISTS;
|
const cc_result ReturnCode_DirectoryExists = ERROR_ALREADY_EXISTS;
|
||||||
const cc_result ReturnCode_SocketInProgess = WSAEINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = WSAEINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = WSAEWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = WSAEWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000;
|
const cc_result ReturnCode_FileShareViolation = 1000000000;
|
||||||
const cc_result ReturnCode_FileNotFound = 1000000;
|
const cc_result ReturnCode_FileNotFound = 1000000;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = 1000000;
|
const cc_result ReturnCode_DirectoryExists = 1000000;
|
||||||
const cc_result ReturnCode_SocketInProgess = 1000000;
|
const cc_result ReturnCode_SocketInProgess = 1000000;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = 1000000;
|
const cc_result ReturnCode_SocketWouldBlock = 1000000;
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ typedef volatile uint32_t vu32;
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = -1;
|
const cc_result ReturnCode_FileNotFound = -1;
|
||||||
|
const cc_result ReturnCode_PathNotFound = -1;
|
||||||
const cc_result ReturnCode_DirectoryExists = -1;
|
const cc_result ReturnCode_DirectoryExists = -1;
|
||||||
const cc_result ReturnCode_SocketInProgess = -1;
|
const cc_result ReturnCode_SocketInProgess = -1;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = -1;
|
const cc_result ReturnCode_SocketWouldBlock = -1;
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ KOS_INIT_FLAGS(INIT_CONTROLLER | INIT_KEYBOARD | INIT_MOUSE |
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ typedef volatile uint32_t vu32;
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = -1;
|
const cc_result ReturnCode_FileNotFound = -1;
|
||||||
|
const cc_result ReturnCode_PathNotFound = -1;
|
||||||
const cc_result ReturnCode_DirectoryExists = -1;
|
const cc_result ReturnCode_DirectoryExists = -1;
|
||||||
const cc_result ReturnCode_SocketInProgess = -1;
|
const cc_result ReturnCode_SocketInProgess = -1;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = -1;
|
const cc_result ReturnCode_SocketWouldBlock = -1;
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = -EINPROGRESS; // net_XYZ error results are negative
|
const cc_result ReturnCode_SocketInProgess = -EINPROGRESS; // net_XYZ error results are negative
|
||||||
const cc_result ReturnCode_SocketWouldBlock = -EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = -EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = -EINPROGRESS; // net_XYZ error results are negative
|
const cc_result ReturnCode_SocketInProgess = -EINPROGRESS; // net_XYZ error results are negative
|
||||||
const cc_result ReturnCode_SocketWouldBlock = -EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = -EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = -10002;
|
const cc_result ReturnCode_SocketInProgess = -10002;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = -10002;
|
const cc_result ReturnCode_SocketWouldBlock = -10002;
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ void* calloc(size_t num, size_t size) {
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = 99999;
|
const cc_result ReturnCode_FileNotFound = 99999;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = 99999;
|
const cc_result ReturnCode_DirectoryExists = 99999;
|
||||||
|
|
||||||
const cc_result ReturnCode_SocketInProgess = -1;
|
const cc_result ReturnCode_SocketInProgess = -1;
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = -4;
|
const cc_result ReturnCode_FileNotFound = -4;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = -8;
|
const cc_result ReturnCode_DirectoryExists = -8;
|
||||||
|
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = 0x80010006; // ENOENT;
|
const cc_result ReturnCode_FileNotFound = 0x80010006; // ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = 0x80010014; // EEXIST
|
const cc_result ReturnCode_DirectoryExists = 0x80010014; // EEXIST
|
||||||
const cc_result ReturnCode_SocketInProgess = NET_EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = NET_EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = NET_EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = NET_EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = SCE_NET_ERROR_EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = SCE_NET_ERROR_EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = SCE_NET_ERROR_EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = SCE_NET_ERROR_EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ void* calloc(size_t num, size_t size) {
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = 99999;
|
const cc_result ReturnCode_FileNotFound = 99999;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = 99999;
|
const cc_result ReturnCode_DirectoryExists = 99999;
|
||||||
|
|
||||||
const cc_result ReturnCode_SocketInProgess = -1;
|
const cc_result ReturnCode_SocketInProgess = -1;
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // not used
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ extern "C" {
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; // Not used in web filesystem backend
|
const cc_result ReturnCode_FileShareViolation = 1000000000; // Not used in web filesystem backend
|
||||||
const cc_result ReturnCode_FileNotFound = _ENOENT;
|
const cc_result ReturnCode_FileNotFound = _ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_SocketInProgess = _EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = _EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = _EAGAIN;
|
const cc_result ReturnCode_SocketWouldBlock = _EAGAIN;
|
||||||
const cc_result ReturnCode_DirectoryExists = _EEXIST;
|
const cc_result ReturnCode_DirectoryExists = _EEXIST;
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = ERROR_SHARING_VIOLATION;
|
const cc_result ReturnCode_FileShareViolation = ERROR_SHARING_VIOLATION;
|
||||||
const cc_result ReturnCode_FileNotFound = ERROR_FILE_NOT_FOUND;
|
const cc_result ReturnCode_FileNotFound = ERROR_FILE_NOT_FOUND;
|
||||||
|
const cc_result ReturnCode_PathNotFound = ERROR_PATH_NOT_FOUND;
|
||||||
const cc_result ReturnCode_DirectoryExists = ERROR_ALREADY_EXISTS;
|
const cc_result ReturnCode_DirectoryExists = ERROR_ALREADY_EXISTS;
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
||||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||||
|
const cc_result ReturnCode_PathNotFound = 99999;
|
||||||
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
const cc_result ReturnCode_DirectoryExists = EEXIST;
|
||||||
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
const cc_result ReturnCode_SocketInProgess = EINPROGRESS;
|
||||||
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue