strat: 0 -> ResultSuccess

This commit is contained in:
Michael Scire
2019-03-28 22:39:39 -07:00
parent 9427a5cf46
commit c6d67eab6a
51 changed files with 166 additions and 166 deletions

View File

@@ -28,7 +28,7 @@ Result FsPathUtils::VerifyPath(const char *path, size_t max_path_len, size_t max
const char c = *(cur++);
/* If terminated, we're done. */
if (c == 0) {
return 0;
return ResultSuccess;
}
/* TODO: Nintendo converts the path from utf-8 to utf-32, one character at a time. */
@@ -110,7 +110,7 @@ Result FsPathUtils::IsNormalized(bool *out, const char *path) {
/* It is unclear why first separator and separator are separate states... */
if (c == '/') {
*out = false;
return 0;
return ResultSuccess;
} else if (c == '.') {
state = PathState::CurrentDir;
} else {
@@ -120,7 +120,7 @@ Result FsPathUtils::IsNormalized(bool *out, const char *path) {
case PathState::CurrentDir:
if (c == '/') {
*out = false;
return 0;
return ResultSuccess;
} else if (c == '.') {
state = PathState::ParentDir;
} else {
@@ -130,7 +130,7 @@ Result FsPathUtils::IsNormalized(bool *out, const char *path) {
case PathState::ParentDir:
if (c == '/') {
*out = false;
return 0;
return ResultSuccess;
} else {
state = PathState::Normal;
}
@@ -138,7 +138,7 @@ Result FsPathUtils::IsNormalized(bool *out, const char *path) {
case PathState::WindowsDriveLetter:
if (c == ':') {
*out = true;
return 0;
return ResultSuccess;
} else {
return ResultFsInvalidPathFormat;
}
@@ -161,7 +161,7 @@ Result FsPathUtils::IsNormalized(bool *out, const char *path) {
break;
}
return 0;
return ResultSuccess;
}
Result FsPathUtils::Normalize(char *out, size_t max_out_size, const char *src, size_t *out_len) {
@@ -264,5 +264,5 @@ Result FsPathUtils::Normalize(char *out, size_t max_out_size, const char *src, s
std::abort();
}
return 0;
return ResultSuccess;
}