Richter64 / usbloader-gui

Automatically exported from code.google.com/p/usbloader-gui
0 stars 0 forks source link

Global settings save and restore (code join to fix the issue included) #168

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Dev Team,

I did write the code to save and restore the global setting customized in
the setting screen.
The files I modify are attached to the issue description.
Basically, I did add procedure to save the configuration when setting
screen is quit and another to load the save conf. at startup.

files modify are: 
  cfg.c cfg.h hosting the procedure of save/load of settings.
  menu.cpp to hook the save procedure to "Go Back" button
  main.cpp to load saved settings.
  main.h : I move Settings declaration to cfg.h

I hope this piece of code will help.

Regards,

Astidof

Original issue reported on code.google.com by asti...@gmail.com on 1 May 2009 at 12:01

Attachments:

GoogleCodeExporter commented 9 years ago
I forgot to mention thqt this code is based on r234.

Original comment by asti...@gmail.com on 1 May 2009 at 12:11

GoogleCodeExporter commented 9 years ago
A new version of code is available including now the tooltips option into the 
setting
menu and fixing a small bug related to music.

Original comment by asti...@gmail.com on 1 May 2009 at 3:34

Attachments:

GoogleCodeExporter commented 9 years ago
Again, I forget to mention that this code is based on r236

Original comment by asti...@gmail.com on 1 May 2009 at 3:34

GoogleCodeExporter commented 9 years ago
Hi All,

I did continue my developments and I did review the behavior of lock menu.
In my version code is required to unlock but not to lock. A confirmation is ask
before locking. I also fix the bug of on screen keyboard which can reappear in
certain circumstances.

Base of the release is r239 and it retrofit all my dev.
tar file gather the file I modify and the boot.dol is here for people who want 
to
have a look on the improvement I bring.

Regards,

Astidof 

Original comment by asti...@gmail.com on 1 May 2009 at 6:45

Attachments:

GoogleCodeExporter commented 9 years ago
so its based on 239? then i could just add it?

Original comment by dimok...@hotmail.de on 1 May 2009 at 7:38

GoogleCodeExporter commented 9 years ago
cant compile it

menu.cpp
linking ... boot.elf
menu.o: In function `MenuSettings':
d:/code/nIxxGUI/source/menu.cpp:3387: undefined reference to `cfg_save_global'
collect2: ld returned 1 exit status

something is missing.

Original comment by dimok...@hotmail.de on 1 May 2009 at 7:40

GoogleCodeExporter commented 9 years ago
nvm found the error.

Original comment by dimok...@hotmail.de on 1 May 2009 at 7:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
ok i added your code almost completly to the new rev and only made a few little
fixes. Couldnt look through everything since i dont have time right now. 
Thanks for your help anyway.

Original comment by dimok...@hotmail.de on 1 May 2009 at 8:13

GoogleCodeExporter commented 9 years ago
Dimok, I notice that you didn't retrofit one line of my code which is setting 
volume
to 0 before starting the music. Not doing that make the music audible when
application is started with a volume of 80 whatever is the value defined in 
settings.
I did put 0 here to fix this issue. 

menu.cpp line 3996

Original comment by asti...@gmail.com on 1 May 2009 at 9:05

GoogleCodeExporter commented 9 years ago
removing line 4002 is also needed to have the bug fixed

Original comment by asti...@gmail.com on 1 May 2009 at 9:35