fixed app.step == 0 protection
parent
fa31c3e90d
commit
23d07141bd
|
@ -1733,10 +1733,13 @@ main(int argc, char **argv){
|
|||
b32 keep_running = linuxvars.keep_running;
|
||||
|
||||
// NOTE(allen): Application Core Update
|
||||
if (app.step == 0){
|
||||
LOG("app.step == 0 -- skipping\n");
|
||||
if (app.step != 0){
|
||||
app.step(&sysfunc, &target, &memory_vars, &linuxvars.input, &result);
|
||||
}
|
||||
else{
|
||||
LOG("app.step == 0 -- skipping\n");
|
||||
}
|
||||
|
||||
|
||||
// NOTE(allen): Finish the Loop
|
||||
if (result.perform_kill){
|
||||
|
|
|
@ -524,10 +524,12 @@ osx_step(void){
|
|||
b32 keep_running = osxvars.keep_running;
|
||||
|
||||
// NOTE(allen): Application Core Update
|
||||
if (app.step == 0){
|
||||
LOG("app.step == 0 -- skipping\n");
|
||||
if (app.step != 0){
|
||||
app.step(&sysfunc, &target, &memory_vars, &frame_input, &result);
|
||||
}
|
||||
else{
|
||||
LOG("app.step == 0 -- skipping\n");
|
||||
}
|
||||
|
||||
// NOTE(allen): Finish the Loop
|
||||
if (result.perform_kill){
|
||||
|
|
|
@ -1359,10 +1359,12 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdS
|
|||
}
|
||||
|
||||
// NOTE(allen): Application Core Update
|
||||
if (app.step == 0){
|
||||
LOG("app.step == 0 -- skipping\n");
|
||||
if (app.step != 0){
|
||||
app.step(&sysfunc, &target, &memory_vars, &input, &result);
|
||||
}
|
||||
else{
|
||||
LOG("app.step == 0 -- skipping\n");
|
||||
}
|
||||
|
||||
// NOTE(allen): Finish the Loop
|
||||
if (result.perform_kill){
|
||||
|
|
Loading…
Reference in New Issue