Skip to content
Snippets Groups Projects
Commit 11bcb736 authored by Nick Anton Christoph Kleine-Tebbe's avatar Nick Anton Christoph Kleine-Tebbe
Browse files

changed file paths

parent a60e5d0e
Branches master
No related tags found
No related merge requests found
...@@ -8,8 +8,9 @@ const {resolve} = require("path"); ...@@ -8,8 +8,9 @@ const {resolve} = require("path");
const replace = require('replace-in-file'); const replace = require('replace-in-file');
const kolloquiumDirectory = '../Kolloquiums' const kolloquiumDirectory = '../Kolloquiums'
const engineDirectory = 'C:/Users/Nick/Documents/UnrealEngine' const engineDirectory = 'D:/UnrealEngine'
const packagedGame = 'C:/Users/Nick/Documents/UnrealPackagedGames/KolloquiumVR' const packagedGame = 'D:/KolloquiumVR/PackagedGame'
const nDisplayLauncher = engineDirectory + '/Projects/KolloquiumVR/Scripts/launch.bat'
const engineINI = engineDirectory + '/Projects/KolloquiumVR/Config/DefaultEngine.ini' const engineINI = engineDirectory + '/Projects/KolloquiumVR/Config/DefaultEngine.ini'
const editorINI = engineDirectory + '/Projects/KolloquiumVR/Saved/Config/Windows/Editor.ini' const editorINI = engineDirectory + '/Projects/KolloquiumVR/Saved/Config/Windows/Editor.ini'
...@@ -403,6 +404,8 @@ router.use('/submitAbgabe', (req, res) => { ...@@ -403,6 +404,8 @@ router.use('/submitAbgabe', (req, res) => {
return console.error('Error occurred:', error); return console.error('Error occurred:', error);
} }
console.log('Replaced mod folder and file path in .ini files')
// Remove old content in Mod folder // Remove old content in Mod folder
fs.rmSync(path.join(newAbgabeDirectory, 'Content'), { recursive: true, force: true }); fs.rmSync(path.join(newAbgabeDirectory, 'Content'), { recursive: true, force: true });
fs.mkdir(path.join(newAbgabeDirectory, 'Content'), function(err) { fs.mkdir(path.join(newAbgabeDirectory, 'Content'), function(err) {
...@@ -516,7 +519,7 @@ router.use('/activateKolloquium', (req, res) => { ...@@ -516,7 +519,7 @@ router.use('/activateKolloquium', (req, res) => {
}) })
}) })
exec(kolloquiumVRexe, exec(nDisplayLauncher,
function (error, stdout, stderr) { function (error, stdout, stderr) {
if (!isEmpty(stderr)){ if (!isEmpty(stderr)){
console.log('stderr: ' + stderr); console.log('stderr: ' + stderr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment