Preferences Creator
Posted: Wed Dec 20, 2006 10:53 pm
I haven't been around for quite a while, but I still have a major PB project
I am working on from time to time. One of the by-products of that project
is the "Preferences Creator".
It analyses any given PB code for Read/WritePreferenceX commands and
creates a "preferences file" with the standard values provided in the
ReadX commands.
The program works for both ReadX and WriteX commands, even though it
is optimized for ReadX commands; The default values for WriteX
commands are the variable names and are not analyzed correctly in
some cases - Basically I wrote this little tool because I used a
preferences file as a language file and was too lazy to convert the loading
code to a language file manually. This program might also be a neat way
to display the preference files to expect directly from within the code - a
filename for input is accepted as parameter, you can easily configure the
tool to be called from any IDE.
Include files are not scanned recursively, you will need to scan single files.
PrefCreator.rar [19KB]
Open a PB code with the ReadPreferencesX() commands inside it, review
the found values, unmark those you do not want to export, if any, and
press "Export" - Done.
I am working on from time to time. One of the by-products of that project
is the "Preferences Creator".
It analyses any given PB code for Read/WritePreferenceX commands and
creates a "preferences file" with the standard values provided in the
ReadX commands.
The program works for both ReadX and WriteX commands, even though it
is optimized for ReadX commands; The default values for WriteX
commands are the variable names and are not analyzed correctly in
some cases - Basically I wrote this little tool because I used a
preferences file as a language file and was too lazy to convert the loading
code to a language file manually. This program might also be a neat way
to display the preference files to expect directly from within the code - a
filename for input is accepted as parameter, you can easily configure the
tool to be called from any IDE.
Include files are not scanned recursively, you will need to scan single files.
PrefCreator.rar [19KB]
Open a PB code with the ReadPreferencesX() commands inside it, review
the found values, unmark those you do not want to export, if any, and
press "Export" - Done.