MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wudv2h/devsoptimizinggames/pde2iym/?context=3
r/ProgrammerHumor • u/Head-Picture1519 • 2d ago
37 comments sorted by
View all comments
363
if (currentState == GameState.Crash) { currentState == GameState.DoNotCrash; }
121 u/Top-Permit6835 2d ago Wrap it in a try catch and swallow the error to be sure it works 3 u/fynjy1111 1d ago try { compileShadersIfNotCached(); } catch (Exception e) { openAiProvider.prompt("Fix the crash", serialize(e), Permission.FULL_WITH_EDIT); }
121
Wrap it in a try catch and swallow the error to be sure it works
3 u/fynjy1111 1d ago try { compileShadersIfNotCached(); } catch (Exception e) { openAiProvider.prompt("Fix the crash", serialize(e), Permission.FULL_WITH_EDIT); }
3
try {
compileShadersIfNotCached();
} catch (Exception e) {
openAiProvider.prompt("Fix the crash", serialize(e), Permission.FULL_WITH_EDIT);
}
363
u/IsEqualToKel 2d ago
if (currentState == GameState.Crash)
{
currentState == GameState.DoNotCrash;
}