mirror of
https://github.com/AuroraWright/SafeA9LHInstaller.git
synced 2025-06-26 13:42:45 +00:00
Minor stuff
This commit is contained in:
parent
a2e44e797d
commit
e8a3e453fc
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,9 +1,10 @@
|
||||
out
|
||||
build
|
||||
loader/build
|
||||
loader/arm11/build
|
||||
*.bin
|
||||
*.3dsx
|
||||
*.smdh
|
||||
*.o
|
||||
*.d
|
||||
*.elf
|
||||
*.bat
|
||||
*.elf
|
@ -23,8 +23,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
//Common data types
|
||||
typedef uint8_t u8;
|
||||
|
@ -45,7 +45,7 @@ u32 fileRead(void *dest, const char *path, u32 maxSize)
|
||||
if(f_open(&file, path, FA_READ) == FR_OK)
|
||||
{
|
||||
u32 size = f_size(&file);
|
||||
if(!(size > maxSize))
|
||||
if(!(maxSize > 0 && size > maxSize))
|
||||
f_read(&file, dest, size, (unsigned int *)ret);
|
||||
f_close(&file);
|
||||
}
|
||||
|
@ -9,7 +9,6 @@
|
||||
#include "screen.h"
|
||||
#include "draw.h"
|
||||
#include "utils.h"
|
||||
#include "cache.h"
|
||||
#include "types.h"
|
||||
#include "fatfs/sdmmc/sdmmc.h"
|
||||
#include "../build/bundled.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user