mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-18 08:11:21 +00:00
Merge pull request #105 from encounter/stage2-logic
[stage2] Invert a few checks
This commit is contained in:
commit
615d5b0882
@ -220,7 +220,7 @@ void load_payload(const char *bct0) {
|
|||||||
generic_panic();
|
generic_panic();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->chainload_entrypoint == 0 || ctx->nb_files_to_load > 0) {
|
if (ctx->chainload_entrypoint != 0 || ctx->nb_files_to_load > 0) {
|
||||||
printf("Error: loadlist must be empty when booting Horizon!\n");
|
printf("Error: loadlist must be empty when booting Horizon!\n");
|
||||||
generic_panic();
|
generic_panic();
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ int package1_read_and_parse_boot0(void **package1loader, size_t *package1loader_
|
|||||||
|
|
||||||
size_t fpos, pk1_offset;
|
size_t fpos, pk1_offset;
|
||||||
|
|
||||||
if (package1loader == NULL || package1loader_size != NULL || keyblobs == NULL || revision == NULL || boot0 == NULL) {
|
if (package1loader == NULL || package1loader_size == NULL || keyblobs == NULL || revision == NULL || boot0 == NULL) {
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user