Skip to content

Commit

Permalink
sus!!
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaNKtext committed May 9, 2021
1 parent d373cad commit 9aabcec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions scripts/launchgame.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function launchOSU(osu, beatmapid, version) {
for (let i = 0; i < osu.tracks.length; ++i)
if (osu.tracks[i].metadata.BeatmapID == beatmapid || !osu.tracks[i].mode && osu.tracks[i].metadata.Version == version)
trackid = i;
console.log("launching", beatmapid, version)
console.log("Launching", beatmapid, version)
if (trackid == -1) {
if (log_to_server) log_to_server("unmatch " + beatmapid + " " + version);
console.error("No such track");
Expand All @@ -16,15 +16,15 @@ function launchOSU(osu, beatmapid, version) {
}
// prevent launching multiple times
if (window.app) return;
console.log("launching PIXI app");
console.log("Launching PIXI app");
// launch PIXI app
let app = window.app = new PIXI.Application({
width: window.innerWidth,
height: window.innerHeight,
resolution: (window.game.overridedpi ? window.game.dpiscale : window.devicePixelRatio) || 1,
autoResize: true,
});
app.renderer.autoResize = true;
app.renderer.autoDensity = true;
app.renderer.backgroundColor = 0x111111;

// remember where the page is scrolled to
Expand Down
4 changes: 2 additions & 2 deletions scripts/osu-audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ define([], function () {
function preprocAudio(filename, buffer) {
let suffix = filename.substr(-3);
if (suffix != "mp3") {
console.log("preproc audio: ogg", suffix);
console.log("Preproc audio: ogg", suffix);
return {
startoffset: 19
};
}
mp3Parser.readTagsNew = readTagsNew;
let tags = mp3Parser.readTagsNew(new DataView(buffer));
if (tags.length == 3 && tags[1]._section.type == "Xing") {
console.log("dumbifing", filename);
console.log("Dumbifing", filename);
let arr = new Uint8Array(buffer.byteLength - tags[1]._section.byteLength);
arr.set(new Uint8Array(buffer, 0, tags[1]._section.offset), 0);
let offsetAfter = tags[1]._section.offset + tags[1]._section.byteLength;
Expand Down

0 comments on commit 9aabcec

Please sign in to comment.