kendallroth / foundation-game-configurator Goto Github PK
View Code? Open in Web Editor NEWSimple configuration editor for Foundation game
Simple configuration editor for Foundation game
Electron does not work well with async file system (fs
) methods in renderer processes, often hanging and never returning. The current approach uses a "hack" by manually setting app.allowRendererProcessReuse
to false
, but this will be removed in Electron 11 (and removes performance benefits).
NOTE: This hack still requires a manual reload of the app before it will work...cannot release before fixing!
Instead, the profile loading should be moved to the main process and use ipcMain.invoke
to asynchronously request the loaded profiles. Additionally, anything in background.ts
that deals with receiving/passing information with the renderers should be moved to a dedicated renderer.ts
file (or something) required from the main process.
// src/services/profile.service.ts
// TODO: Must fix this at some point before upgrading to Electron 11!
// There is a bug causing issues with using native Node modules (ie. "fs")
// in renderer processes, meaning it is necessary to either only use sync
// "fs" methods OR perform all "fs" operations in main thread and communicate.
// This should likely be updated to perform these operations in the main thread (security)
// and abstract away behind an API of some sort (ie. Background utils, etc)
// Issue: https://github.com/electron/electron/issues/22119
// TODO: Fix related issue where a reload is required before "fs" works properly!
// Issue: https://github.com/electron/electron/issues/19554
app.allowRendererProcessReuse = false;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.