diff options
| author | Mole Shang <135e2@135e2.dev> | 2023-08-06 12:54:47 +0800 | 
|---|---|---|
| committer | Mole Shang <135e2@135e2.dev> | 2023-08-06 13:13:47 +0800 | 
| commit | 6fc145906eafdbd89f4558b79282a9e5d722afbc (patch) | |
| tree | 5eb33ff84acbc62d9e7e82b0a1277595ecf377c0 /src/main.c | |
| parent | 2f70538a4fe5427de44697d5585351216426a31b (diff) | |
| download | hinata-6fc145906eafdbd89f4558b79282a9e5d722afbc.tar.gz hinata-6fc145906eafdbd89f4558b79282a9e5d722afbc.tar.bz2 hinata-6fc145906eafdbd89f4558b79282a9e5d722afbc.zip  | |
xmake: migrate from NFD to tinyfiledialogs
nativefiledialog-extended works great on Linux w/ portal support, but somehow is
too complex to build on Windows. [1]
Switch to tinyfd for simplicity.
[1]: Visual Studio CL.exe would fail with MSB6001.
```
Error MSB6001: Invalid command line switch for "CL.exe". Item has already been added. Key in dictionary: 'VCInstallDir'  Key being added: 'VCINSTALLDIR'
```
For further information, see below:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/5de6d7e3-7a38-4712-ba59-be179808bf9e/error-msb6001-invalid-command-line-switch-for-clexe
https://github.com/dotnet/msbuild/issues/5726
It's been over 10 years, and Microsoft still claims that case sensitivity thing is a FEATURE.
Holy M$, Thank you.
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 7 | 
1 files changed, 1 insertions, 6 deletions
@@ -1,7 +1,6 @@  #include <GL/glew.h>  #include <GLFW/glfw3.h>  #include <curl/curl.h> -#include <nfd.h>  #include <stdio.h>  #include <stdlib.h> @@ -21,12 +20,12 @@  #include "nuklear_glfw_gl3.h"  #include "constants.h" -#include "unifont.h"  #include "logger.h"  #include "main.h"  #include "process_url.h"  #include "style.h"  #include "ui.h" +#include "unifont.h"  extern int win_width, win_height;  extern void load_ui(struct ui_struct *); @@ -77,9 +76,6 @@ int main(void) {      exit(EXIT_FAILURE);    } -  /* Native File Dialog */ -  NFD_Init(); -    /* Logger setup */    struct logger *logger = setup_logger();    // Put it in ui_struct @@ -155,7 +151,6 @@ int main(void) {                      MAX_ELEMENT_BUFFER);      glfwSwapBuffers(win);    } -  NFD_Quit();    curl_cleanup(&stat);    nk_glfw3_shutdown(&glfw);    glfwTerminate();  | 
