Skip to content

Commit

Permalink
fix: Fixed CoreMods check + fix uml path
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukasaroot committed Apr 1, 2022
1 parent 54ac7a5 commit 9c154a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async function checkUnrealModLoader() {
const unreal = new UnrealModLoader();

unreal_path = unreal.pop_array(unreal_path, 3);
unreal_path = path.join.apply(null, unreal_path) + '\\Binaries\\Win64';
unreal_path = path.join.apply(null, unreal_path) + '\\Longvinter\\Binaries\\Win64';

let unreal_path_core = unreal_path + '\\unrealmodloader';

Expand Down Expand Up @@ -251,6 +251,10 @@ ipcMain.on('refresh', () => {

ipcMain.on('add-game-path', (event, path) => {
config.setConfig('pathtogame', path);
console.log(path + 'CoreMods')
if (!fs.existsSync(path + 'CoreMods')) {
fs.mkdirSync(path + 'CoreMods');
}
event.reply('add-game-path');
})

Expand Down
3 changes: 2 additions & 1 deletion public/lib/source/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ window.jQuery = require('jquery');
window.onload = async function () {
storage.clear();

ipcRenderer.send('unrealmodloader-check');
if (!query['?error'])
ipcRenderer.send('unrealmodloader-check');

if (mods_list !== null)
parse_mods(mods_list);
Expand Down

0 comments on commit 9c154a8

Please sign in to comment.