mirror of
https://github.com/burrow-dev/burrow-client.git
synced 2026-11-19 01:37:50 -05:00
fix: a game the graphics card keeps from drawing restarts the client without it
This commit is contained in:
1 parent
77be498599
commit
8a1b60ad42
3 files changed
+28
No files matched your search
+11
@@ -211,6 +211,17 @@ let updateState = null; // the last thing the updater said, for a page loaded af
|
||||
ipcMain.handle("setGpu", (event, on) => {
|
||||
fs.writeFileSync(SETTINGS_FILE, JSON.stringify({...readSettings(), gpu: on === true}));
|
||||
});
|
||||
// some graphics cards (or their drivers) leave the game on its loading
|
||||
// screen for good; players got past it by turning "Use GPU" off. the page
|
||||
// asks for that itself when the game has not drawn in time (index.html).
|
||||
ipcMain.on("gpuFallback", () => {
|
||||
if (!usesGpu || app.commandLine.hasSwitch("aj-gpu")) {
|
||||
return;
|
||||
}
|
||||
fs.writeFileSync(SETTINGS_FILE, JSON.stringify({...readSettings(), gpu: false}));
|
||||
app.relaunch();
|
||||
app.exit(0);
|
||||
});
|
||||
|
||||
// what the server is told about this computer at sign-in (device.js).
|
||||
ipcMain.handle("device", () => device.device());
|
||||
|
||||
Reference in new issue
Block a user