added launching, patching, and ui override
This commit is contained in:
14
tests/fileHash.js
Normal file
14
tests/fileHash.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const fs = require("fs");
|
||||
const crypto = require("crypto");
|
||||
|
||||
(async () => {
|
||||
const correctHash = 'b66478cc0f9ec50810489a039ced642b';
|
||||
const filePath = 'C:\\Users\\horiz\\AppData\\Local\\osu!\\avcodec-51.dll';
|
||||
const fileHash = crypto.createHash('md5').update(await fs.promises.readFile(filePath)).digest('hex');
|
||||
|
||||
console.log({
|
||||
correctHash,
|
||||
fileHash,
|
||||
matching: correctHash === fileHash,
|
||||
})
|
||||
})();
|
9
tests/osuConfig.js
Normal file
9
tests/osuConfig.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const { getGlobalConfig } = require("../src/util/osuUtil");
|
||||
const config = require("../src/config/config");
|
||||
(async () => {
|
||||
const osuPath = config.get("osuPath");
|
||||
const globalConfig = getGlobalConfig(osuPath);
|
||||
|
||||
const globalConfigContent = await globalConfig.get("_ReleaseStream");
|
||||
console.log(globalConfigContent);
|
||||
})();
|
Reference in New Issue
Block a user