From d8c4d84dc75300c6d4d8b0adceafa33741960b92 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 27 Sep 2025 18:38:35 +0200 Subject: added http lib, working on AI invoice importing --- src/main.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 2e3d215..bdddd98 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -23,6 +23,7 @@ #include "ui.hpp" #include "administration.hpp" #include "administration_writer.hpp" +#include "administration_reader.hpp" // Data static HWND hwnd; @@ -58,7 +59,7 @@ void platorm_maximize_window() // Main code //int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) -int main() +int main(int argc, char** argv) { int start_width = 1280; int start_height = 800; @@ -139,7 +140,13 @@ int main() timer_lib_initialize(); administration_writer_create(); - administration_create_default(""); + + if (argc < 2) { + administration_create_default(""); + } + else { + administration_reader_open_existing(argv[1]); + } // Main loop bool done = false; -- cgit v1.2.3-70-g09d2