-
-
Save BlackLotus/164cbdd2352adc6c67d807a13049022b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 580a90e7ffdb52268149f845c25a6650af22fba3 Mon Sep 17 00:00:00 2001 | |
From: Thomas Schneider <thomas.schneider@ruhr-uni-bochum.de> | |
Date: Sun, 23 May 2021 16:13:59 +0200 | |
Subject: [PATCH] no steam for you | |
--- | |
buy_screen.lua | 4 ++-- | |
engine/external/init.lua | 1 - | |
engine/init.lua | 3 --- | |
main.lua | 1 - | |
4 files changed, 2 insertions(+), 7 deletions(-) | |
diff --git a/buy_screen.lua b/buy_screen.lua | |
index 94fcc3f..e7235ec 100644 | |
--- a/buy_screen.lua | |
+++ b/buy_screen.lua | |
@@ -46,8 +46,8 @@ function BuyScreen:on_enter(from, level, units, passives) | |
self.first_screen = true | |
end | |
- steam.friends.setRichPresence('steam_display', '#StatusFull') | |
- steam.friends.setRichPresence('text', 'Shop - Level ' .. self.level) | |
+-- steam.friends.setRichPresence('steam_display', '#StatusFull') | |
+-- steam.friends.setRichPresence('text', 'Shop - Level ' .. self.level) | |
self.main = Group() | |
self.effects = Group() | |
diff --git a/engine/external/init.lua b/engine/external/init.lua | |
index 3949107..bcd80de 100644 | |
--- a/engine/external/init.lua | |
+++ b/engine/external/init.lua | |
@@ -4,5 +4,4 @@ if not path:find("init") then | |
mlib = require(path .. ".mlib") | |
-- if not web then clipper = require(path .. ".clipper") end | |
ripple = require(path .. ".ripple") | |
- steam = require 'luasteam' | |
end | |
diff --git a/engine/init.lua b/engine/init.lua | |
index 27d6457..6dafdfa 100644 | |
--- a/engine/init.lua | |
+++ b/engine/init.lua | |
@@ -46,7 +46,6 @@ end | |
function engine_run(config) | |
if not web then | |
love.filesystem.setIdentity(config.game_name) | |
- steam.init() | |
system.load_state() | |
local _, _, flags = love.window.getMode() | |
@@ -122,7 +121,6 @@ function engine_run(config) | |
if name == "quit" then | |
if not love.quit or not love.quit() then | |
system.save_state() | |
- steam.shutdown() | |
return a or 0 | |
end | |
elseif name == "keypressed" then input.keyboard_state[a] = true; input.last_key_pressed = a | |
@@ -139,7 +137,6 @@ function engine_run(config) | |
if love.timer then dt = love.timer.step() end | |
- steam.runCallbacks() | |
accumulator = accumulator + dt | |
while accumulator >= fixed_dt do | |
frame = frame + 1 | |
diff --git a/main.lua b/main.lua | |
index 3d96469..86a9016 100644 | |
--- a/main.lua | |
+++ b/main.lua | |
@@ -1166,7 +1166,6 @@ function init() | |
} | |
gold = 2 | |
passives = {} | |
- steam.userStats.requestCurrentStats() | |
new_game_plus = state.new_game_plus or 0 | |
if not state.new_game_plus then state.new_game_plus = new_game_plus end | |
max_units = 7 + new_game_plus | |
-- | |
2.31.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment