Skip to content

Commit 2d8c4e0

Browse files
committed
mandatory after update bug fix
also bundle vcruntime140_1.dll in case someone doesnt have it
1 parent f3f071a commit 2d8c4e0

8 files changed

Lines changed: 43 additions & 55 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "glorp"
3-
version = "0.7.5"
3+
version = "0.7.6"
44
description = "krunker"
55
authors = ["slav"]
66
edition = "2024"

crates/webview-dll/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,13 @@ unsafe extern "system" fn wnd_proc_1(window: HWND, message: u32, wparam: WPARAM,
232232
),
233233
WM_MOUSEMOVE => {
234234
if LOCK_STATUS.load(std::sync::atomic::Ordering::Relaxed) {
235-
return LRESULT(1);
235+
return CallWindowProcW(
236+
PREV_WNDPROC_1,
237+
window,
238+
message,
239+
WPARAM(wparam.0 & !MK_LBUTTON.0 as usize),
240+
lparam,
241+
);
236242
}
237243
CallWindowProcW(PREV_WNDPROC_1, window, message, wparam, lparam)
238244
}

postbuild.js

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ function copyDirAll(source, destination) {
2020
if (entry.isDirectory()) {
2121
copyDirAll(sourcePath, destPath);
2222
} else {
23-
fs.copyFileSync(sourcePath, destPath);
23+
if (!fs.existsSync(destPath)) {
24+
fs.copyFileSync(sourcePath, destPath);
25+
}
2426
}
2527
}
2628
}
@@ -30,14 +32,24 @@ try {
3032

3133
copyDirAll(webview2RuntimeDir, targetWebview2Dir);
3234

33-
const webviewDllPath = path.join(targetDir, "webview.dll");
34-
if (fs.existsSync(webviewDllPath)) {
35-
fs.copyFileSync(webviewDllPath, path.join(targetWebview2Dir, "XInput1_4.dll"));
35+
const dllMappings = [
36+
{ source: "webview.dll", target: "XInput1_4.dll" },
37+
{ source: "render.dll", target: "vk_swiftshader.dll" },
38+
];
39+
40+
for (const mapping of dllMappings) {
41+
const sourceDllPath = path.join(targetDir, mapping.source);
42+
if (fs.existsSync(sourceDllPath)) {
43+
fs.copyFileSync(sourceDllPath, path.join(targetWebview2Dir, mapping.target));
44+
}
3645
}
3746

38-
const renderDllPath = path.join(targetDir, "render.dll");
39-
if (fs.existsSync(renderDllPath)) {
40-
fs.copyFileSync(renderDllPath, path.join(targetWebview2Dir, "vk_swiftshader.dll"));
47+
const vcruntimePath = path.join(targetDir, "vcruntime140_1.dll");
48+
if (!fs.existsSync(vcruntimePath)) {
49+
const resourcesVcruntimePath = path.join(process.cwd(), "resources", "vcruntime140_1.dll");
50+
if (fs.existsSync(resourcesVcruntimePath)) {
51+
fs.copyFileSync(resourcesVcruntimePath, vcruntimePath);
52+
}
4153
}
4254
} catch (error) {
4355
console.error("cannot copy", error);

resources/installer_script.wxs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Id="glorpPackage"
77
Name="glorp"
88
Manufacturer="slav"
9-
Version="0.7.5"
9+
Version="0.7.6"
1010
Scope="perUser"
1111
UpgradeCode="80b28117-cea0-4ef1-8d6f-5884f5ae7270">
1212
<util:CloseApplication
@@ -43,6 +43,7 @@
4343
<Component Id="MainExecutableComponent" Guid="305c2cca-2e2d-4d5a-ac43-84a3be86d148">
4444
<File Id="glorp.exe" Name="glorp.exe" Source="target\x86_64-pc-windows-msvc\release\glorp.exe" KeyPath="yes"/>
4545
<File Id="glorp.pdb" Name ="glorp.pdb" Source="target\x86_64-pc-windows-msvc\release\glorp.pdb"/>
46+
<File Id="vcruntime140_1.dll" Name="vcruntime140_1.dll" Source="target\x86_64-pc-windows-msvc\release\vcruntime140_1.dll"/>
4647

4748
<Shortcut Id="DesktopShortcut" Directory="DesktopFolder" Name="glorp" Target="[INSTALLFOLDER]glorp.exe" WorkingDirectory="INSTALLFOLDER" />
4849
<Shortcut Id="ProgramMenuShortcut" Directory="ProgramMenuFolder" Name="glorp" Target="[INSTALLFOLDER]glorp.exe" WorkingDirectory="INSTALLFOLDER" />

resources/legacy_installer.iss

Lines changed: 0 additions & 30 deletions
This file was deleted.

resources/vcruntime140_1.dll

48.6 KB
Binary file not shown.

src/frontend/components/queue/index.html

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,6 @@
441441
const queueTimerDisplay = document.getElementById("queueTimerDisplay");
442442
const regionSelectors = document.getElementById("regionCheckboxes");
443443
const matchPopupOverlay = document.getElementById("matchPopupOverlay");
444-
const closeButton = document.getElementById("closeMatch");
445444
const countdownTimer = document.getElementById("countDownTimer");
446445
const foundRegion = document.getElementById("foundRegion");
447446
const mapSelectorButton = document.getElementById("mapSelectorButton");
@@ -665,7 +664,6 @@
665664
queueInterval = setInterval(updateQueueTimer, 1000);
666665
queueButton.disabled = false;
667666
};
668-
window.matchFound = matchFound;
669667
queueConnection.onmessage = (event) => {
670668
const data = JSON.parse(event.data);
671669
switch (data.type) {
@@ -733,16 +731,18 @@
733731

734732
if (remaining <= 0) window.close();
735733
}, 1000);
736-
}
737734

738-
function closeMatchPopup() {
739-
clearInterval(countdownInterval);
740-
stopNotificationSound();
741-
matchPopupOverlay.classList.remove("active");
742-
}
735+
isQueued = false;
736+
isConnecting = false;
737+
clearInterval(queueInterval);
738+
queueButton.textContent = "Start Queue";
739+
queueButton.classList.remove("in-queue");
740+
queueStatus.textContent = "Ready";
741+
queueStatus.classList.remove("active");
742+
statusArea.classList.remove("active");
743+
queueTimerDisplay.textContent = "00:00:00";
744+
queueButton.disabled = false;
743745

744-
if (closeButton) {
745-
closeButton.onclick = () => closeMatchPopup();
746746
}
747747

748748
if (mapSelectorButton) {
@@ -829,19 +829,18 @@
829829
</div>
830830
<div class="overlay" id="matchPopupOverlay">
831831
<div class="popup">
832-
<button class="close-icon" id="closeMatch">×</button>
833832
<h2>Match Found</h2>
834833
<div class="popup-content">
835-
<div class="region-found" id="foundRegion">Region: NA</div>
834+
<div class="region-found" id="foundRegion">Region: </div>
836835
<div id="matchFoundMessage" >open the client and rejoin the game from the ranked menu</div>
837-
<div class="countdown-large" id="countDownTimer">60</div>
836+
<div class="countdown-large" id="countDownTimer">00:60</div>
838837
</div>
839838
</div>
840839
</div>
841840
<div class="overlay" id="mapSelectorOverlay">
842841
<div class="map-panel">
843842
<button class="close-icon" id="closeMapSelector">×</button>
844-
<h2>Select Map</h2>
843+
<h2>Select Maps</h2>
845844
<div class="map-grid" id="mapGrid"></div>
846845
</div>
847846
</div>

0 commit comments

Comments
 (0)