Skip to content

Commit

Permalink
Merge pull request #160 from Lazap-Development/nightly
Browse files Browse the repository at this point in the history
Carry Changes to main branch
  • Loading branch information
p0ryae authored Jul 23, 2024
2 parents 8288577 + 5968754 commit ec016aa
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 35 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.html linguist-detectable=false
*.js linguist-detectable=false
*.js linguist-detectable=false
*.vue linguist-detectable=false
9 changes: 7 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand All @@ -8,6 +8,11 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/js/main.js"></script>
<script type="module">
import { createApp } from "vue";
import App from "./src/App.vue";

createApp(App).mount("#app");
</script>
</body>
</html>
11 changes: 8 additions & 3 deletions public/external.html → overlay.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand All @@ -7,7 +7,12 @@
<title>Lazap</title>
</head>
<body>
<div id="external"></div>
<script type="module" src="/src/js/main.js"></script>
<div id="app"></div>
<script type="module">
import { createApp } from "vue";
import App from "./src/AppOverlay.vue";

createApp(App).mount("#app");
</script>
</body>
</html>
13 changes: 0 additions & 13 deletions public/overlay.html

This file was deleted.

6 changes: 2 additions & 4 deletions src-tauri/src/launchers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,9 @@ pub async fn handle_launch(data: GameObject) -> Result<(), crate::Error> {
.wait()?;
}
_ => {
let command = format!(
"powershell start \"{}\\{}\"",
data.location, data.executable
);
let command = format!("powershell start \"{}\"", data.executable);
Command::new("cmd")
.current_dir(data.location)
.args(&["/C", &command])
.spawn()?
.wait()?;
Expand Down
5 changes: 2 additions & 3 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@
"center": false,
"visible": false,
"decorations": false,
"url": "external.html",
"focus": false
},
{
Expand All @@ -170,8 +169,8 @@
"decorations": false,
"focus": true,
"alwaysOnTop": true,
"url": "overlay.html",
"skipTaskbar": true
"skipTaskbar": true,
"url": "overlay.html"
}
]
}
Expand Down
1 change: 0 additions & 1 deletion src/components/find-games.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import image from "../assets/img/default-game-banner.png";
let isTyping = false;
const typeSpeed = 50;
// Classes
class GameElement {
constructor(data, listID, jsondata, settings, bannerdirarr) {
this.data = data;
Expand Down
4 changes: 0 additions & 4 deletions src/js/main.js

This file was deleted.

4 changes: 0 additions & 4 deletions src/js/overlay.js

This file was deleted.

0 comments on commit ec016aa

Please sign in to comment.