Posted 12 March 2013 - 06:11 AM
So im working on making an OS, and I have a config program that runs when you first startup the OS that sets a few values (so far there is only jOSnick, JOSu, and JOSp.)
the user types an input on the computer and it makes that input the value of the variable.
after the config program is done it replaces the startup file with a startup file that uses passwords you set in the config, and then restarts the computer.
the problem is that when the computer restarts, the value for the variables is wiped, so if you try to type in your username it will always tell you that the username you typed in is wrong, and then restarts the start function in the startup file.
So i need someone to show me how to permanently store the variables, and then be able to call them and get their values from another program.
All help is greatly appreciated!
the config file: http://pastebin.com/YMCSP9qS
the startup file: http://pastebin.com/vbj50YLy
BTW all the print(JOSblahblahblah) stuff on the top of the OSstartup file was just me testing if the values where still stored (thats how i found out how they where getting wiped after reboot)
the user types an input on the computer and it makes that input the value of the variable.
after the config program is done it replaces the startup file with a startup file that uses passwords you set in the config, and then restarts the computer.
the problem is that when the computer restarts, the value for the variables is wiped, so if you try to type in your username it will always tell you that the username you typed in is wrong, and then restarts the start function in the startup file.
So i need someone to show me how to permanently store the variables, and then be able to call them and get their values from another program.
All help is greatly appreciated!
the config file: http://pastebin.com/YMCSP9qS
the startup file: http://pastebin.com/vbj50YLy
BTW all the print(JOSblahblahblah) stuff on the top of the OSstartup file was just me testing if the values where still stored (thats how i found out how they where getting wiped after reboot)