preperations for the patch method
This commit is contained in:
parent
67a53fdd2d
commit
89cdc8f316
7
app.js
7
app.js
|
@ -14,6 +14,7 @@ let osuWindowInfo;
|
|||
let isIngame;
|
||||
const platform = process.platform;
|
||||
let linuxWMCtrlFound = false;
|
||||
let osuLoaded = false;
|
||||
|
||||
const run = () => {
|
||||
const gotTheLock = app.requestSingleInstanceLock()
|
||||
|
@ -28,6 +29,10 @@ const run = () => {
|
|||
const firstInstance = osuWindowInfo[0];
|
||||
if (firstInstance) {
|
||||
if (firstInstance.processTitle && firstInstance.processTitle.length > 0) {
|
||||
if (!osuLoaded) {
|
||||
osuLoaded = true;
|
||||
//TODO: do patch
|
||||
}
|
||||
const windowTitle = firstInstance.processTitle;
|
||||
let rpcOsuVersion = "";
|
||||
let currentMap = undefined;
|
||||
|
@ -48,10 +53,12 @@ const run = () => {
|
|||
|
||||
rpc.updateStatus(currentMap, rpcOsuVersion);
|
||||
} else {
|
||||
if (osuLoaded) osuLoaded = false;
|
||||
rpc.updateState("Idle in Launcher...");
|
||||
rpc.updateStatus(undefined, undefined);
|
||||
}
|
||||
} else {
|
||||
if (osuLoaded) osuLoaded = false;
|
||||
rpc.updateState("Idle in Launcher...");
|
||||
rpc.updateStatus(undefined, undefined);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user