Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
Upload Latest Source
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDev404 committed Jan 7, 2022
1 parent bef507d commit 7a48381
Show file tree
Hide file tree
Showing 14 changed files with 338 additions and 38 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Otto
The Otto Launcher

Otto Launcher
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const createWindow = () => {
mainWindow.loadFile(path.join(__dirname, "index.html"));

// Open the DevTools.
mainWindow.webContents.openDevTools();
// mainWindow.webContents.openDevTools();
mainWindow.setOpacity(0.95);
win = mainWindow;
};
Expand Down
3 changes: 0 additions & 3 deletions blaze-marketplace/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion escrow.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
c1.33-11.75,4.33-22.87,7.77-33.93c2.74,16.89,8.22,32.67,18.13,47.14c1.12-2.59,1.48-5.05,2.02-7.46
c0.91-4.09,1.71-8.21,2.65-12.3c2.28-9.98,7.86-17.7,16.21-23.51c0.4-0.28,0.8-0.58,1.2-0.87L260.74,299.99z"></path>
</g>
</svg><h1 style="color: white; text-align: center; font-weight: bold;">ESCROW..</h1>
</svg><h1 id="reviewStatus" style="color: white; text-align: center; font-weight: bold;">REVIEWING YOUR ESCROW..</h1>
</div>
</div>

Expand Down
9 changes: 5 additions & 4 deletions firststartup.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ <h1 class="normal-case text-md font-light">
</div>
<div class="icon">
<span><i class="fa fa-keyboard-o"></i></span
><span class="font-semibold">Use keyboard</span>
><span class="font-semibold">Use Arrow Keys</span>
<a id="completionBack" href="#" onclick="window.history.back();" class="hidden text-blue-300 text-xl">Go Back</a>
</div>
</label>
<label class="Slide" for="Slide2" id="Slide2">
Expand All @@ -119,8 +120,8 @@ <h1 class="normal-case text-4xl font-semibold">
Where's Your Fortnite Install?
</h1>
<h1 class="normal-case text-md font-light">
Enter the path to the folder containing the Engine and
FortniteGame folders.
Enter the path to the folder containing the <b>Engine</b> and
<b>FortniteGame</b> folders.
</h1>
<br />
<div class="flex items-center justify-center">
Expand Down Expand Up @@ -208,7 +209,7 @@ <h1 class="normal-case text-md font-light">
class="text-gray-500 dark:text-gray-400 text-base sm:text-lg lg:text-base xl:text-lg font-medium"
>
Login As:
<b id="logonDisp">${InstallList[0].LogonAs}</b>
<b id="logonDisp">Add a username</b>
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion launch_unpacked.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo off
title Load Unpacked App
echo Loading unpacked Electron package...
electron app.js
npm run withoutForge
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"main": "app.js",
"scripts": {
"start": "electron-forge start",
"withoutForge": "electron app.js",
"package": "electron-forge package",
"make": "electron-forge make",
"publish": "electron-forge publish",
Expand All @@ -17,7 +18,7 @@
},
"keywords": [],
"author": {
"name": "XMLTest200",
"name": "AlexDev404",
"email": "rexydogwoof01@gmail.com"
},
"license": "MIT",
Expand Down Expand Up @@ -61,6 +62,6 @@
"@electron-forge/maker-rpm": "^6.0.0-beta.59",
"@electron-forge/maker-squirrel": "^6.0.0-beta.59",
"@electron-forge/maker-zip": "^6.0.0-beta.59",
"electron": "13.3.0"
"electron": "13.2.1"
}
}
101 changes: 86 additions & 15 deletions settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,27 @@
<body class="bg-gray-300 pointer-events-none">
<div
includefile="./src/assets/partials/html/sidebar.html"
class="select-none w-56 bg-gray-800 text-white border-r border-blackblack fixed min-h-screen pt-8"
class="
select-none
w-56
bg-gray-800
text-white
border-r border-blackblack
fixed
min-h-screen
pt-8
"
></div>
<div class="main-div bg-gray-200 text-gray-900 flex-1 px-80 py-10">
<div
class="settings-header"
style="font-size: 2.5vw; padding-bottom: 1vh"
>
<b>SETTINGS</b>
<br/>
<b id="errmsg" class="hidden" style="color: red">INVALID CONFIG FILE! PLEASE REVIEW SETTINGS.JSON TO CORRECT!</b>
<br />
<b id="errmsg" class="hidden" style="color: red"
>INVALID CONFIG FILE! PLEASE REVIEW SETTINGS.JSON TO CORRECT!</b
>
</div>
<div class="settings-header">THEME</div>
<label class="flex items-center">
Expand All @@ -66,13 +77,12 @@
</label>
<div class="settings-header">CONNECTION MODE</div>
<label class="flex items-center">
<input type="checkbox" id="backendOnline" class="form-checkbox h-6 w-6 text-indigo-600" />
<span
class="ml-3 border-none"
style="font-size: 22px"

>Online</span
>
<input
type="checkbox"
id="backendOnline"
class="form-checkbox h-6 w-6 text-indigo-600"
/>
<span class="ml-3 border-none" style="font-size: 22px">Online</span>
</label>
<label class="flex items-center">
<input
Expand All @@ -83,28 +93,89 @@
<span class="ml-3 border-none" style="font-size: 22px">Offline</span>
</label>
<h3>Server IP =</h3>
<input type="text" onkeyup="saveSettings()" id="server-ip"/>
<input type="text" onkeyup="saveSettings()" id="server-ip" />
<div class="settings-header">BYPASS USED</div>
<label class="flex items-center">
<input
type="checkbox"
id="defaultBypass"
class="form-checkbox h-6 w-6 text-indigo-600"
/>
<span class="ml-3 border-none" style="font-size: 22px"
>Blaze DLL</span
>
</label>
<label class="flex items-center">
<input
type="checkbox"
id="platinumBypass"
class="form-checkbox h-6 w-6 text-indigo-600"
/>
<span class="ml-3 border-none" style="font-size: 22px">Platinum</span>
</label>

<label class="flex items-center">
<input
type="checkbox"
id="platinumv2Bypass"
class="form-checkbox h-6 w-6 text-indigo-600"
/>
<span class="ml-3 border-none" style="font-size: 22px"
>Platinum v2</span
>
</label>
<label class="hidden flex items-center">
<input
type="checkbox"
id="riftBypass"
class="form-checkbox h-6 w-6 text-indigo-600"
/>
<span class="ml-3 border-none" style="font-size: 22px">Rift</span>
</label>
<label class="flex items-center">
<input
type="checkbox"
id="otherBypass"
class="form-checkbox h-6 w-6 text-indigo-600"
/>
<span class="ml-3 border-none" style="font-size: 22px">Other</span>
<input
type="text"
onkeyup="saveSettings()"
placeholder="Type filename of bypass used, example Rift.dll --> Rift"
id="otherBypassText"
size="50"
class="hidden ml-5"
/>
</label>

<div class="settings-header">BACKEND CONFIG</div>
<label class="flex items-center">
<input
type="checkbox" onchange="saveSettings()"
type="checkbox"
onchange="saveSettings()"
class="form-checkbox h-6 w-6 text-indigo-600"
id="backendDebug"
/>
<span class="ml-3 border-none" style="font-size: 22px">Debug Mode</span>
</label>
<label class="flex items-center">
<input
type="checkbox" onchange="saveSettings()"
type="checkbox"
onchange="saveSettings()"
class="form-checkbox h-6 w-6 text-indigo-600"
id="backendUpdates"
/>
<span class="ml-3 border-none" style="font-size: 22px"
>Auto Update</span
>
</label>
<br/>
<a href="splashSettings.html"><div class="settings-header text-blue-600"><b>SPLASH IMAGE SETTINGS >></b></div></a>
<br />
<a href="splashSettings.html"
><div class="settings-header text-blue-600">
<b>SPLASH IMAGE SETTINGS >></b>
</div></a
>

<div class="border-b border-gray-900 mt-20 mb-10"></div>
<div class="text-gray-900 text-xl">&copy; 2021 The Blaze Authors</div>
Expand Down
97 changes: 95 additions & 2 deletions src/assets/js/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ let __drivename =
os.platform == "win32" ? process.cwd().split(path.sep)[0] : "/";
let blazeDir = path.join(__drivename, "/Blaze/Launcher/");
let helpersDir = path.join(blazeDir, "/helpers/");
let backendDir = path.join(blazeDir, "/backend/")
let userAssetsDir = path.join(blazeDir, "/userAssets/");
const launcherConfig = require(path.join(blazeDir, "settings.json")); // Opening settings file for readOnly
let installLength;
let installList;
let counter = 0;
Expand All @@ -19,6 +21,14 @@ const exec_options = {
env: null,
};

const exec_options2 = {
timeout: 0,
maxBuffer: 200 * 1024,
killSignal: "SIGTERM",
cwd: backendDir,
env: null,
};

if (fs.existsSync(path.join(userAssetsDir, "\\InstallList.json"))) {
installList = require(path.join(userAssetsDir, "\\InstallList.json"));
installLength = Object.keys(installList.InstallList).length - 1; // Set an offset otherwise it will cause some weird errors to appear
Expand Down Expand Up @@ -142,17 +152,100 @@ function sendID(clicked_id) {
console.log(clicked_id);
let thisID = clicked_id;
let thisElement = document.getElementById(thisID);
thisElement.classList.remove("bg-red-300");
thisElement.classList.remove("color-white");
thisElement.classList.add("bg-yellow-300");
thisElement.classList.add("color-black");
thisElement.innerText = "Loading...";

exec(
`kickstart "${installList.InstallList[thisID].location}" -nobe -fromfl=eac -fltoken=87a0c99d9aa3ab5bb6a36C25`, exec_options,
// Remove old script if any

exec("del runner.bat", exec_options,

(error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`);
return;
}
if (stderr) {
console.log(`stderr: ${stderr}`);
return;
}
console.log(`stdout: ${stdout}`);
});

// Create new script

exec(`echo kickstart "${installList.InstallList[thisID].location}" -nobe -fromfl=eac -fltoken=87a0c99d9aa3ab5bb6a36C25 ${launcherConfig.bypassMethod} ${installList.InstallList[thisID].logonAs}> runner.bat`, exec_options,

(error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`);
thisElement.innerText = "Failed. 😢";
thisElement.classList.remove("bg-yellow-300");
thisElement.classList.remove("color-black");
thisElement.classList.add("bg-red-300");
thisElement.classList.add("color-white");
return;
}
if (stderr) {
console.log(`stderr: ${stderr}`);
thisElement.innerText = "Failed. 😢";
thisElement.classList.remove("bg-yellow-300");
thisElement.classList.remove("color-black");
thisElement.classList.add("bg-red-300");
thisElement.classList.add("color-white");
return;
}
console.log(`stdout: ${stdout}`);
});

// Start the backend...

exec(`StartMainServiceModule.lnk`, exec_options2,

(error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`);
thisElement.innerText = "Backend Failed. 😱";
thisElement.classList.remove("bg-yellow-300");
thisElement.classList.remove("color-black");
thisElement.classList.add("bg-red-300");
thisElement.classList.add("color-white");
return;
}
if (stderr) {
console.log(`stderr: ${stderr}`);
thisElement.innerText = "Backend Failed. 😱";
thisElement.classList.remove("bg-yellow-300");
thisElement.classList.remove("color-black");
thisElement.classList.add("bg-red-300");
thisElement.classList.add("color-white");
return;
}
console.log(`stdout: ${stdout}`);
});

// Run the thang...

exec("legacyBoot.lnk", exec_options,
(error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`);
thisElement.innerText = "Failed. 😢";
thisElement.classList.remove("bg-yellow-300");
thisElement.classList.remove("color-black");
thisElement.classList.add("bg-red-300");
thisElement.classList.add("color-white");
return;
}
if (stderr) {
console.log(`stderr: ${stderr}`);
thisElement.innerText = "Failed. 😢";
thisElement.classList.remove("bg-yellow-300");
thisElement.classList.remove("color-black");
thisElement.classList.add("bg-red-300");
thisElement.classList.add("color-white");
return;
}
console.log(`stdout: ${stdout}`);
Expand Down
Loading

0 comments on commit 7a48381

Please sign in to comment.