Default color file embedding

Default color file embedding

Return to topic list

Thu Nov 4 12:05:03 2021   by   Mizuki
right now the executable still relies on having at least a color file in its directory (default is olsson)
that can be changed to point it to another default, but is there a way to embed a single color file/a few default color files to it, so that when the executable will still work when run standalone (without files in its directory)?
 
Fri Nov 5 11:02:13 2021   by   Torben
You can replace the code that reads in a colour file with code that sets the colours.  It used to be that that was how the default colours were set, but it was simpler to always read in from a file.
 
Sun Mar 6 11:54:34 2022   by   Mizuki
Would you happen to have a source file from when you still used that method?
 
Mon Mar 7 12:15:04 2022   by   Torben
No.  It was very long ago that the program had hardcoded default colours, so that code is long gone.
 
Mon Mar 7 12:16:10 2022   by   Torben
Also, the colour encoding was different then, so you could not just paste the code into the new program without having to heavily modify it.
 
Tue May 10 05:28:23 2022   by   Ron Vantreese
Hi, I converted this code (as is) into C#. During a test run, I had to embed a color map (the olsson). I haven't decided whether I'll keep the embedded map or develop a wrapper to feed a default map.
 
Thu May 12 16:32:48 2022   by   Mizuki
I personally support embedding a single default file as a backup ^
 

Return to topic list



New message:
Topic:
Posted by:

Type the values of the dice shown below:

Return to topic list