mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
drop EvalLua and the commented-out Lua init leftovers
EvalLua had no callers anywhere in the tree — it converted a wide string to UTF-8, ran it as a chunk and printf'd the error, which was the hook for a developer console that is not wired up. It was the only user of stdio, MemMan and windows.h in this file. InitializeLua and ShutdownLua are live, called from InitOverhead and ShutdownOverhead. The calls in InitializeGame and ShutdownGame were commented out when they moved there; remove them, and the commented ACCESSOR_TABLE block in InitializeLua that refers to a macro no longer defined anywhere. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
committed by
majcosta
co-authored by
Claude Opus 5
parent
76eda883a5
commit
06b115a293
@@ -100,7 +100,6 @@ BOOLEAN InitializeGame(void)
|
||||
|
||||
giStartingMemValue = MemGetFree( );
|
||||
|
||||
//InitializeLua();
|
||||
is_networked = FALSE;
|
||||
is_client = FALSE;
|
||||
is_server = FALSE;
|
||||
@@ -211,8 +210,6 @@ void ShutdownGame(void)
|
||||
//Deletes all the Temp files in the Maps\Temp directory
|
||||
InitTacticalSave( FALSE );
|
||||
|
||||
//ShutdownLua( );
|
||||
|
||||
FreeGameExternalOptions();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user