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