diff --git a/src/runtime/app.c b/src/runtime/app.c index b985c56..32a8eea 100644 --- a/src/runtime/app.c +++ b/src/runtime/app.c @@ -1,6 +1,5 @@ #include "app.h" #include "config.h" -#include "fio.h" #include "gfx.h" #include "aio.h" #include "renderer_api.h" @@ -38,12 +37,6 @@ VY_DLLEXPORT int vyWin32Entry(HINSTANCE hInstance, /* TODO: Parse the cvar config file */ - vy_fio_config fio_config = {0}; - if (!vyInitFIO(&fio_config)) { - vyReportError("FIO", "Init failed."); - return 1; - } - if (vyInitFileTab(1024) != VY_SUCCESS) { vyReportError("FTAB", "Init failed."); return 1; @@ -136,7 +129,8 @@ VY_DLLEXPORT int vyWin32Entry(HINSTANCE hInstance, UnregisterClassW(L"vyWndClass", hInstance); vyShutdownAIO(); - vyShutdownFIO(); + vyShutdownAIO(); + vyShutdownFileTab(); return 0; } @@ -186,9 +180,13 @@ VY_DLLEXPORT int vyXlibEntry(int argc, char **argv) { __RegisterRuntimeCVars(); vyRegisterRendererCVars(); - vy_fio_config fio_config = {0}; - if (!vyInitFIO(&fio_config)) { - vyReportError("FIO", "Init failed."); + if (vyInitFileTab(1024) != VY_SUCCESS) { + vyReportError("FTAB", "Init failed."); + return 1; + } + + if (vyInitAIO(0) != VY_SUCCESS) { + vyReportError("AIO", "Init failed."); return 1; } @@ -260,8 +258,8 @@ VY_DLLEXPORT int vyXlibEntry(int argc, char **argv) { vyShutdownGFX(); XDestroyWindow(dpy, window); XCloseDisplay(dpy); - - vyShutdownFIO(); + vyShutdownAIO(); + vyShutdownFileTab(); return 0; }