mirror of
https://github.com/parasyte/alt64
synced 2025-02-28 09:21:46 -05:00
Only load firmware when required
This commit is contained in:
parent
0345327c0d
commit
67fc6d0aa8
14
menu.c
14
menu.c
@ -797,8 +797,13 @@ void configure() {
|
|||||||
if (!(msg & (1 << 14))) {
|
if (!(msg & (1 << 14))) {
|
||||||
msg |= 1 << 14;
|
msg |= 1 << 14;
|
||||||
evd_writeReg(REG_MAX_MSG, msg);
|
evd_writeReg(REG_MAX_MSG, msg);
|
||||||
|
if (firm == 0x0214) {
|
||||||
bi_load_firmware(firmware);
|
int fpf = dfs_open("/firmware.bin");
|
||||||
|
firmware = malloc( dfs_size( fpf ) );
|
||||||
|
dfs_read( firmware, 1, dfs_size( fpf ), fpf );
|
||||||
|
dfs_close( fpf );
|
||||||
|
bi_load_firmware(firmware);
|
||||||
|
}
|
||||||
|
|
||||||
sleep(1);
|
sleep(1);
|
||||||
evd_init();
|
evd_init();
|
||||||
@ -3012,11 +3017,6 @@ int main(void) {
|
|||||||
printf("Filesystem failed to start!\n");
|
printf("Filesystem failed to start!\n");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int fpf = dfs_open("/firmware.bin");
|
|
||||||
firmware = malloc( dfs_size( fpf ) );
|
|
||||||
dfs_read( firmware, 1, dfs_size( fpf ), fpf );
|
|
||||||
dfs_close( fpf );
|
|
||||||
|
|
||||||
// everdrive initial function
|
// everdrive initial function
|
||||||
configure();
|
configure();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user