aboutsummaryrefslogtreecommitdiff
path: root/src/common.h
AgeCommit message (Collapse)Author
2021-05-27allow flags to exit prematurely, move defines, add no networking flagJan200101
2021-05-08add work in progress windows supportJan200101
to run lutris installers on windows soon
2021-04-26implement flags and sort commands by alphabetJan200101
stupid standard --help and --version
2021-04-22add list & search command, fix bug in installer parser, […]Jan200101
- add list and search command to find what is on lutris without using lutris or the website - correct info command from not erroring when no slug was found - allow upper and lower Y on installer - remove pointless getInstaller function - fix bug in installer where if a value is not given its NULL and we cannot stringify NULL - replace manual malloc, strcpy with strdup - remove lutris_debug definition
2021-03-26a chunk of changesJan200101
- replace bool with ints, - give enums a t suffix - fix edge case in variable parser where the end of the buffer is not null - make parseVar take an allocated variable list instead of a static one - set the first argument of all tasks to be the prefix - correctly parse chmodx directives - add GAMEDIR variable to the variable list - output known variables on installer info - implement basic task handling - check if file exists before redownloading - remove debug function - make noprogress argument into progress and convert it to int
2020-12-19remove useless struct, add json length type macroJan200101
- previously used progress struct was a leftover from when libcurl examples were used - json_object_array_length returns int pre 0.13 and site_t on any other version
2020-12-16add more warning flags, correct syntax, add UNUSED macro, […]Jan200101
- added -Wall -Wextra -pedantic to the compile options - various syntax has been corrected: - static is used before const - correct integer types are used in for loops - empty newlines are added - every command has an argc and argv but some don't use them so they are marked as potentially unused if compiled on a GNUC compatible compiler - mark JSONC variables as advanced so they do not show up as generic variables
2020-12-11add remove commands to dxvk and wineJan200101
2020-11-21add required header to tar.h, quote default string and version numberJan200101
2020-10-20improve codebase qualityJan200101
- improve unreachable macro to print a message with a minor traceback then exit(0) instead of assert hackery - add specific wine and dxvk directory methods - rename dxvk install to download - remove sanity asserts from lutris, caught by unreachable - improve comments - rename info to env - only use a single buffer for information fetching - fix formatting on code I had help on - purge unused code - if downloadToRam returns null pointer report that the archive went missing not that its invalid - rename undescriptive "datadir" to be more specific - remove unused code from when we stored the archive on disk
2020-09-06improve basic installer, add unreachable, hide unfinished behind debugJan200101
2020-09-05move fs related functions to common, add more file related functionsJan200101
2020-08-18first part of a proper lutris implementation and cleanup0.1.4Jan200101
- remove all old build platform related variables - change behavior of clean - change tabs into spaces - make XDG fetching method static - replace strcpy and cat with strn alternative with proper bounds checking - add cache dir - reenable dxvk and download from ram - completely rework lutris fetching and convert it into an interal struct - only show http errors in debug - add sanity checks to methods with possible NULL return - change extracting methods to extract tar from ram
2020-08-10a lot of changes […]0.1.3Jan200101
- go to next entry of argv and decrement argc the deeper it goes - add basic lutris functionality - remove "help" from help message and as a command - replace all stderr prints with stdout prints (usually stderr is better for directly informing the user but in this case I don't think it will help much) - add libarchive dependency to the README - bump version number
2020-08-01Improve code structure […]Jan200101
- create a dedicated "usage" macro to reuse - add various checks in the case no memory is available - fix cwd fetching check - correctly free json_objects to remove all existing leaks
2020-07-30Initial commit0.1.0Jan200101