More fixes, the hard freeze is truly gone now.

This commit is contained in:
OBattler
2023-12-11 20:32:51 +01:00
parent 686644d2a1
commit 2a2432207a
2 changed files with 20 additions and 12 deletions

View File

@@ -293,8 +293,6 @@ main(int argc, char *argv[])
// pc_reset_hard_init();
/* Set the PAUSE mode depending on the renderer. */
// plat_pause(0);
QTimer onesec;
QObject::connect(&onesec, &QTimer::timeout, &app, [] {
pc_onesec();
@@ -323,6 +321,14 @@ main(int argc, char *argv[])
QTimer::singleShot(0, &app, [] {
pc_reset_hard_init();
main_thread = new std::thread(main_thread_fn);
/* Set the PAUSE mode depending on the renderer. */
#ifdef USE_VNC
if (vnc_enabled && vid_api != 6)
plat_pause(1);
else
#endif
plat_pause(0);
});
auto ret = app.exec();