mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-08-09 16:19:06 +00:00
Don't reuse error numbers
Former-commit-id: 4891eb8e51255da6ede410cfa48333389f0bee0a
This commit is contained in:
parent
01d2082ccc
commit
e58f41f0c3
@ -89,7 +89,7 @@ int main(int argc, const char* argv[]) {
|
|||||||
memmem(source_buf, source_len, METROID_BUILD_INFO_TAG, strlen(METROID_BUILD_INFO_TAG));
|
memmem(source_buf, source_len, METROID_BUILD_INFO_TAG, strlen(METROID_BUILD_INFO_TAG));
|
||||||
if (ptr == NULL) {
|
if (ptr == NULL) {
|
||||||
fprintf(stderr, "Unable to find build info tag in source!\n");
|
fprintf(stderr, "Unable to find build info tag in source!\n");
|
||||||
return -5;
|
return -6;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Lets actually copy over the build string */
|
/* Lets actually copy over the build string */
|
||||||
@ -100,7 +100,7 @@ int main(int argc, const char* argv[]) {
|
|||||||
|
|
||||||
if (!target) {
|
if (!target) {
|
||||||
fprintf(stderr, "Unable to open '%s'\nPlease ensure you have write permissions!\n", argv[1]);
|
fprintf(stderr, "Unable to open '%s'\nPlease ensure you have write permissions!\n", argv[1]);
|
||||||
return -3;
|
return -7;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Finally write the buffer to the target file */
|
/* Finally write the buffer to the target file */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user