Skip to content

Commit 5fc7268

Browse files
authored
refactor: 🚚 Moved and renamed ModLoaderSteam (#230)
* refactor: 🚚 moved *steam.gd* to *\internal\third_party\steam.gd* * style: ✏️ renamed `get_steam_app_id()` -> `_get_steam_app_id()` it's only used inside `ModLoaderSteam` * style: ✏️ renamed `ModLoaderSteam` -> `_ModLoaderSteam`
1 parent 33f85b7 commit 5fc7268

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

addons/mod_loader/api/third_party/steam.gd renamed to addons/mod_loader/internal/third_party/steam.gd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class_name ModLoaderSteam
1+
class_name _ModLoaderSteam
22
extends Node
33

44
const LOG_NAME := "ModLoader:ThirdParty:Steam"
@@ -30,7 +30,7 @@ static func get_path_to_workshop() -> String:
3030
path = "/".join(path_array)
3131

3232
# Append the workgame's workshop path
33-
path = path.plus_file("workshop/content/" + get_steam_app_id())
33+
path = path.plus_file("workshop/content/" + _get_steam_app_id())
3434

3535
return path
3636

@@ -39,7 +39,7 @@ static func get_path_to_workshop() -> String:
3939
# directory (ie. res://steam_data.json). This file is used by Godot Workshop
4040
# Utility (GWU), which was developed by Brotato developer Blobfish:
4141
# https://github.com/thomasgvd/godot-workshop-utility
42-
static func get_steam_app_id() -> String:
42+
static func _get_steam_app_id() -> String:
4343
var game_install_directory := _ModLoaderPath.get_local_folder_dir()
4444
var steam_app_id := ""
4545
var file := File.new()

addons/mod_loader/mod_loader.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func _load_zips_in_folder(folder_path: String) -> int:
297297
# inside each workshop item's folder
298298
func _load_steam_workshop_zips() -> int:
299299
var temp_zipped_mods_count := 0
300-
var workshop_folder_path := ModLoaderSteam.get_path_to_workshop()
300+
var workshop_folder_path := _ModLoaderSteam.get_path_to_workshop()
301301

302302
ModLoaderLog.info("Checking workshop items, with path: \"%s\"" % workshop_folder_path, LOG_NAME)
303303

addons/mod_loader/mod_loader_setup.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const new_global_classes := [
6262
"path": "res://addons/mod_loader/api/godot.gd"
6363
}, {
6464
"base": "Node",
65-
"class": "ModLoaderSteam",
65+
"class": "_ModLoaderSteam",
6666
"language": "GDScript",
6767
"path": "res://addons/mod_loader/api/third_party/steam.gd"
6868
}, {

0 commit comments

Comments
 (0)