For modifying the icon, I am not sure how you can do it in C, but I do know of a way to do it in TI-BASIC using the Celtic (monochome) libs.

Code:
PROGRAM:ICON

:DCS
"AA55AA55AA55AA55 //checker icon
"0->Str1
det(21,Str1,0,42 //put " in Str1
Input "ICON:",A
If A
Then
  det(8,"ICON",Str1+"FF818181818181FF",2 //put box icon on line 2 of this file
Else
  det(8,"ICON",Str1+"AA55AA55AA55AA55",2 //put checker icon on line 2
End

If you can find a way to get the address of the start of your file, it shouldn't be too bad to write over the icon data.
This is in C. I guess I'll need to open the variable, get to the icon field, and over write the data with the new icon. Though the program is compressed. Not sure if that includes the icon.
Picked this back up. Working on themes. You can select the theme you'd like, and it updates the icon!



Colors are off because of palette stuff, but this is the proof of concept!

Also got the code up onto github:
https://github.com/merthsoft/dinopuzz-84-ce
That's pretty sweet! I don't know if I've seen another program change it's icon like that, but I like it~
I wonder if that would be a nice feature to add to my CosmoCE game, with there being a tally of how many runs you have completed in the corner! Possibly just one pixel that changes color as the number gets higher, but still :3
Looks cool; the modern theme is awesome, but retro carries a lot of charm!
merthsoft wrote:
This is in C. I guess I'll need to open the variable, get to the icon field, and over write the data with the new icon. Though the program is compressed. Not sure if that includes the icon.


I just took a look at your code for this and it is super simple and easy to understand. I think I will definitely be adding a dynamic icon of some kind to my game!
Biggest thing to note is you need to use the icon palette when encoding it. Epsilon helped a bunch by telling me that the icon is located after two 0x10 bytes.

Also, right now I'm hard coding the game name. I should be taking that from argv.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 2 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement