Compare commits
No commits in common. "92ee92d636d1dc2fa2350cf77209c929041cfabe" and "068d02f1f715db5209cd0dc067ea848edb5121cf" have entirely different histories.
92ee92d636
...
068d02f1f7
2
app.js
2
app.js
@ -91,7 +91,7 @@ const run = () => {
|
|||||||
rpcOsuVersion = splitArray[0];
|
rpcOsuVersion = splitArray[0];
|
||||||
currentMap = splitArray[1];
|
currentMap = splitArray[1];
|
||||||
if (currentMap.endsWith(".osu")) {
|
if (currentMap.endsWith(".osu")) {
|
||||||
rpc.updateState("Editing/Modding...");
|
rpc.updateState("Editing...");
|
||||||
currentMap = currentMap.substring(0, currentMap.length - 4);
|
currentMap = currentMap.substring(0, currentMap.length - 4);
|
||||||
}
|
}
|
||||||
else rpc.updateState("Playing...");
|
else rpc.updateState("Playing...");
|
||||||
|
@ -7,7 +7,13 @@ let client = undefined;
|
|||||||
let lastState = "Idle in Launcher...";
|
let lastState = "Idle in Launcher...";
|
||||||
let presenceEnabled = true;
|
let presenceEnabled = true;
|
||||||
let startDate = new Date();
|
let startDate = new Date();
|
||||||
const actionButtons = [
|
let lastActivity = {
|
||||||
|
details: " ",
|
||||||
|
state: lastState,
|
||||||
|
startTimestamp: startDate,
|
||||||
|
largeImageKey: "ezppfarm",
|
||||||
|
largeImageText: appInfo.appName + " " + appInfo.appVersion,
|
||||||
|
buttons: [
|
||||||
{
|
{
|
||||||
label: "Download the Launcher",
|
label: "Download the Launcher",
|
||||||
url: "https://git.ez-pp.farm/EZPPFarm/EZPPLauncher/releases/latest"
|
url: "https://git.ez-pp.farm/EZPPFarm/EZPPLauncher/releases/latest"
|
||||||
@ -16,14 +22,7 @@ const actionButtons = [
|
|||||||
label: "Join EZPPFarm",
|
label: "Join EZPPFarm",
|
||||||
url: "https://ez-pp.farm/discord"
|
url: "https://ez-pp.farm/discord"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
let lastActivity = {
|
|
||||||
details: " ",
|
|
||||||
state: lastState,
|
|
||||||
startTimestamp: startDate,
|
|
||||||
largeImageKey: "ezppfarm",
|
|
||||||
largeImageText: appInfo.appName + " " + appInfo.appVersion,
|
|
||||||
buttons: actionButtons,
|
|
||||||
instance: false,
|
instance: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -54,7 +53,16 @@ module.exports = {
|
|||||||
smallImageText: osuVersion ? osuVersion : " ",
|
smallImageText: osuVersion ? osuVersion : " ",
|
||||||
largeImageKey: "ezppfarm",
|
largeImageKey: "ezppfarm",
|
||||||
largeImageText: appInfo.appName + " " + appInfo.appVersion,
|
largeImageText: appInfo.appName + " " + appInfo.appVersion,
|
||||||
buttons: actionButtons,
|
buttons: [
|
||||||
|
{
|
||||||
|
label: "Download the Launcher",
|
||||||
|
url: "https://ez-pp.farm/download"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Join EZPPFarm",
|
||||||
|
url: "https://discord.com/invite/g8Bh7RaKPg"
|
||||||
|
}
|
||||||
|
],
|
||||||
instance: false,
|
instance: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
const axios = require('axios').default;
|
const axios = require('axios').default;
|
||||||
|
|
||||||
const loginCheckEndpoint = 'https://ez-pp.farm/login/check';
|
const loginCheckEndpoint = 'https://new.ez-pp.farm/login/check';
|
||||||
|
|
||||||
const performLogin = async (username, password) => {
|
const performLogin = async (username, password) => {
|
||||||
const result = await axios.post(loginCheckEndpoint, { username, password });
|
const result = await axios.post(loginCheckEndpoint, { username, password });
|
||||||
|
@ -66,8 +66,7 @@
|
|||||||
<button class="btn btn-lg btn-launch btn-accent" id="launch-btn">Launch</button>
|
<button class="btn btn-lg btn-launch btn-accent" id="launch-btn">Launch</button>
|
||||||
<div class="patch-checkbox" style="display: none;">
|
<div class="patch-checkbox" style="display: none;">
|
||||||
<input type="checkbox" id="enablePatching" disabled/>
|
<input type="checkbox" id="enablePatching" disabled/>
|
||||||
<label for="enablePatching" style="display: initial;">enable
|
<label for="enablePatching" style="display: initial;">enable Patching</label>
|
||||||
Patching</label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -115,7 +114,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
<script type="text/javascript" src="../assets/mdb.min.js"></script>
|
<script type="text/javascript" src="../assets/mdb.min.js"></script>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -90,10 +90,8 @@ async function filesThatNeedUpdate(osuPath, updateFiles) {
|
|||||||
const fileHash = updatedFile.file_hash;
|
const fileHash = updatedFile.file_hash;
|
||||||
const fileURL = updatedFile.url_full;
|
const fileURL = updatedFile.url_full;
|
||||||
|
|
||||||
if (ignoredOsuEntities.includes(fileName)) continue;
|
|
||||||
|
|
||||||
const fileOnDisk = path.join(osuPath, fileName);
|
const fileOnDisk = path.join(osuPath, fileName);
|
||||||
if (await fu.existsAsync(fileOnDisk)) {
|
if (await fu.existsAsync(fileOnDisk) && !ignoredOsuEntities.includes(fileName)) {
|
||||||
const binaryFileContents = await fs.promises.readFile(fileOnDisk);
|
const binaryFileContents = await fs.promises.readFile(fileOnDisk);
|
||||||
const existingFileMD5 = crypto.createHash("md5").update(binaryFileContents).digest("hex");
|
const existingFileMD5 = crypto.createHash("md5").update(binaryFileContents).digest("hex");
|
||||||
if (existingFileMD5.toLowerCase() != fileHash.toLowerCase()) {
|
if (existingFileMD5.toLowerCase() != fileHash.toLowerCase()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user