mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-26 14:44:16 +01:00
fixes for latetst libctru changes
This commit is contained in:
parent
80f2ea0417
commit
3dc7839118
39
source/ftp.c
39
source/ftp.c
@ -968,22 +968,6 @@ ftp_init(void)
|
|||||||
#ifdef _3DS
|
#ifdef _3DS
|
||||||
Result ret;
|
Result ret;
|
||||||
|
|
||||||
/* initialize FS service */
|
|
||||||
ret = fsInit();
|
|
||||||
if(ret != 0)
|
|
||||||
{
|
|
||||||
console_print(RED "fsInit: 0x%08X\n" RESET, (unsigned int)ret);
|
|
||||||
goto fs_fail;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* initialize sdmc_dev */
|
|
||||||
ret = sdmcInit();
|
|
||||||
if(ret != 0)
|
|
||||||
{
|
|
||||||
console_print(RED "sdmcInit: 0x%08X\n" RESET, (unsigned int)ret);
|
|
||||||
goto sdmc_fail;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if ENABLE_LOGGING
|
#if ENABLE_LOGGING
|
||||||
/* open log file */
|
/* open log file */
|
||||||
FILE *fp = freopen("/ftbrony.log", "wb", stderr);
|
FILE *fp = freopen("/ftbrony.log", "wb", stderr);
|
||||||
@ -1010,7 +994,7 @@ ftp_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* initialize SOC service */
|
/* initialize SOC service */
|
||||||
ret = SOC_Initialize(SOC_buffer, SOC_BUFFERSIZE);
|
ret = socInit(SOC_buffer, SOC_BUFFERSIZE);
|
||||||
if(ret != 0)
|
if(ret != 0)
|
||||||
{
|
{
|
||||||
console_print(RED "SOC_Initialize: 0x%08X\n" RESET, (unsigned int)ret);
|
console_print(RED "SOC_Initialize: 0x%08X\n" RESET, (unsigned int)ret);
|
||||||
@ -1118,17 +1102,8 @@ ftruncate_fail:
|
|||||||
|
|
||||||
stderr_fail:
|
stderr_fail:
|
||||||
#endif
|
#endif
|
||||||
ret = sdmcExit();
|
|
||||||
if(ret != 0)
|
|
||||||
console_print(RED "sdmcExit: 0x%08X\n" RESET, (unsigned int)ret);
|
|
||||||
|
|
||||||
sdmc_fail:
|
|
||||||
ret = fsExit();
|
|
||||||
if(ret != 0)
|
|
||||||
console_print(RED "fsExit: 0x%08X\n" RESET, (unsigned int)ret);
|
|
||||||
|
|
||||||
fs_fail:
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1150,7 +1125,7 @@ ftp_exit(void)
|
|||||||
|
|
||||||
#ifdef _3DS
|
#ifdef _3DS
|
||||||
/* deinitialize SOC service */
|
/* deinitialize SOC service */
|
||||||
ret = SOC_Shutdown();
|
ret = socExit();
|
||||||
if(ret != 0)
|
if(ret != 0)
|
||||||
console_print(RED "SOC_Shutdown: 0x%08X\n" RESET, (unsigned int)ret);
|
console_print(RED "SOC_Shutdown: 0x%08X\n" RESET, (unsigned int)ret);
|
||||||
free(SOC_buffer);
|
free(SOC_buffer);
|
||||||
@ -1160,16 +1135,8 @@ ftp_exit(void)
|
|||||||
if(fclose(stderr) != 0)
|
if(fclose(stderr) != 0)
|
||||||
console_print(RED "fclose: 0x%08X\n" RESET, errno);
|
console_print(RED "fclose: 0x%08X\n" RESET, errno);
|
||||||
|
|
||||||
/* deinitialize sdmc_dev */
|
|
||||||
ret = sdmcExit();
|
|
||||||
if(ret != 0)
|
|
||||||
console_print(RED "sdmcExit: 0x%08X\n" RESET, (unsigned int)ret);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* deinitialize FS service */
|
|
||||||
ret = fsExit();
|
|
||||||
if(ret != 0)
|
|
||||||
console_print(RED "fsExit: 0x%08X\n" RESET, (unsigned int)ret);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user