at the very least fixes tgui?
This commit is contained in:
@@ -67,8 +67,6 @@ export const findCacheRoot = async () => {
|
||||
|
||||
const onCacheRootFound = cacheRoot => {
|
||||
logger.log(`found cache at '${cacheRoot}'`);
|
||||
// Plant a dummy
|
||||
fs.closeSync(fs.openSync(cacheRoot + '/dummy', 'w'));
|
||||
};
|
||||
|
||||
export const reloadByondCache = async bundleDir => {
|
||||
@@ -93,6 +91,9 @@ export const reloadByondCache = async bundleDir => {
|
||||
// Clear garbage
|
||||
const garbage = await resolveGlob(cacheDir, './*.+(bundle|chunk|hot-update).*');
|
||||
try {
|
||||
// Plant a dummy browser window file, we'll be using this to avoid world topic
|
||||
fs.closeSync(fs.openSync(cacheDir + '/dummy', 'w'));
|
||||
|
||||
for (let file of garbage) {
|
||||
fs.unlinkSync(file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user