summaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)AuthorFilesLines
2024-03-02ui: no more titlebarHEADmasterMole Shang1-1/+1
2024-03-02tree-wide: use FREE_AND_NULLIFY macro and reformat codeMole Shang1-1/+1
Jeez idk why i forgot the pass-by-value feature, so the original version never gets the pointer nullified. Fix it by using our favourite C-style macro.
2024-03-01xmake: come back to NFDMole Shang1-0/+6
2024-03-01tree-wide: fix uaf bugsMole Shang1-1/+2
2023-08-10ui: show progress while remuxingMole Shang1-0/+2
2023-08-07hinata: support specifying cookies in curl_easyMole Shang1-1/+30
We use tomlc99 to parse strings. To use cookies for higher resolution video downloading, add a config.toml in the executable path. e.g. ```filename: config.toml cookie="SESSDATA=xxx; some_more_cookie=xxx" ```
2023-08-06hinata: set locale to UTF-8 by defaultMole Shang1-0/+4
Enable UTF-8 mode on Windows to avoid filename encoding issues. Ref: https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setlocale-wsetlocale?view=msvc-170#utf-8-support
2023-08-06xmake: migrate from NFD to tinyfiledialogsMole Shang1-6/+1
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.
2023-08-05hinata: initial commitMole Shang1-0/+163