isle-portable/ISLE
AllMeatball c48935a64b
Create config with sane defaults if not already present (#71)
* Create config with sane defaults if not present

* isleapp: Use binary mode for iniFP

Windows treats newlines differently then on *nix systems. Using binary mode makes this consistent.

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>

* isleapp: Remove extern "C"

It seems like it's fine including these libraries without extern "C"

* isleapp: Use boolean return in LoadConfig

This to check if the config loaded correctly or not.
Seems to be a good solution to the file loading issue.

Maybe there's a better solution
SetupWindow failing because of a config erroring seems a bit odd.

* isleapp: Remove that dumb use after free.

I forgot you don't specify a filename you specify a *file pointer*

* isleapp: Fix iniFP to be in proper scope

This also fixes the missing parameter in `iniparser_dump_ini`

* .gitignore: Exclude the kate .cache folder

* isleapp: Match prototype of LoadConfig in header

* isleapp: Fix formating to comply with .clang-format

* isleapp: Don't create new config if manually set

---------

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
2025-05-12 17:25:16 -07:00
..
res Reorganize sources and files (#414) 2024-01-08 10:58:49 +01:00
isleapp.cpp Create config with sane defaults if not already present (#71) 2025-05-12 17:25:16 -07:00
isleapp.h Create config with sane defaults if not already present (#71) 2025-05-12 17:25:16 -07:00
library_msvc.h Add more annotations to ISLE (#990) 2024-06-05 12:31:23 +02:00
library_smartheap.h Small update to datacmp and roadmap (#1048) 2024-06-28 14:58:35 -07:00