Fix: don't write .SHA files to drives other than the SD card

This commit is contained in:
d0k3 2016-11-30 23:45:05 +01:00
parent 6e7a55f422
commit 4da34d3ce4

View File

@ -675,7 +675,7 @@ u32 GodMode() {
(have_sha) ? ((memcmp(sha256, sha256_file, 32) == 0) ? "passed!" : "failed!") : "", (have_sha) ? ((memcmp(sha256, sha256_file, 32) == 0) ? "passed!" : "failed!") : "",
(memcmp(sha256, sha256_prev, 32) == 0) ? "\n \nIdentical with previous file:\n" : "", (memcmp(sha256, sha256_prev, 32) == 0) ? "\n \nIdentical with previous file:\n" : "",
(memcmp(sha256, sha256_prev, 32) == 0) ? pathstr_prev : "", (memcmp(sha256, sha256_prev, 32) == 0) ? pathstr_prev : "",
(write_sha) ? "\n \nWrite .SHA file?" : "") && !have_sha) { (write_sha) ? "\n \nWrite .SHA file?" : "") && !have_sha && write_sha) {
FileSetData(sha_path, sha256, 32, 0, true); FileSetData(sha_path, sha256, 32, 0, true);
GetDirContents(current_dir, current_path); GetDirContents(current_dir, current_path);
} }