1 parent a06cf69 commit 6d19cb4Copy full SHA for 6d19cb4
1 file changed
garrysmod/gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contenttypes/saves.lua
@@ -54,7 +54,18 @@ spawnmenu.AddCreationTab( "#spawnmenu.category.saves", function()
54
55
function ws_save:Load( filename )
56
57
+ -- Early out for workshop saves
58
+ if ( string.StartsWith( filename, "content/4000" ) ) then
59
+ RunConsoleCommand( "gm_load", filename )
60
+ return
61
+ end
62
+
63
local saveFile = file.Open( filename, "rb", "GAME" )
64
+ if ( !saveFile ) then -- Somehow the file doesn't exist?
65
66
67
68
69
saveFile:Seek( 4 )
70
local mapFile = saveFile:ReadLine():TrimRight( "\n" )
71
0 commit comments