TempleOSCDV5.00.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:48:09 +02:00
1 parent 122df6338e
commit f6eacf7744
374 files changed
+11078 -11204

No files matched your search

+6 -6
View File
@@ -7,21 +7,21 @@ is valid in HolyC you can place simple expressions
without vars.
*/
RegSetDftEntry("DemoCompany/Game1","F64 best_score=1.23;\n");
RegSetDftEntry("DemoCompany/Game1/SimpleVal","1234;\n");
RegExeBranch("DemoCompany/Game1");
RegDft("DemoCompany/Game1","F64 best_score=1.23;\n");
RegDft("DemoCompany/Game1/SimpleVal","1234;\n");
RegExe("DemoCompany/Game1");
U0 Game()
{
I64 i=RegExeBranch("DemoCompany/Game1/SimpleVal");
I64 i=RegExe("DemoCompany/Game1/SimpleVal");
"High Score:%6.5f\n",best_score;
"Val:%d\n",i;
i++;
best_score=tS;
//You could combine these into one write by making
//the $$TR...$$ and $$ID,2$$, $$ID,-2$$, cmds yourself.
RegWriteBranch("DemoCompany/Game1","F64 best_score=%9.5f;\n",best_score);
RegWriteBranch("DemoCompany/Game1/SimpleVal","%d;\n",i);
RegWrite("DemoCompany/Game1","F64 best_score=%9.5f;\n",best_score);
RegWrite("DemoCompany/Game1/SimpleVal","%d;\n",i);
}
Game;