diff --git a/src/CoDLuaExporter/LuaExporter.cs b/src/CoDLuaExporter/LuaExporter.cs index e5de592..8528113 100644 --- a/src/CoDLuaExporter/LuaExporter.cs +++ b/src/CoDLuaExporter/LuaExporter.cs @@ -45,7 +45,7 @@ public static void ReadLuaFiles( Process process, string handler, string current string Name = MemoryUtil.ReadNullTerminatedString( process.Handle, luaFile.NamePointer ); // Skip other raw files for Black Ops 3 - if( gameName == "Black Ops 3" && Path.GetExtension( Name ) != ".lua" ) + if( gameName == "Black Ops 3" || gameName == "Black Ops 2" && Path.GetExtension( Name ) != ".lua") { continue; } diff --git a/src/CoDLuaExporter/Models.cs b/src/CoDLuaExporter/Models.cs index e11cc45..79eb22e 100644 --- a/src/CoDLuaExporter/Models.cs +++ b/src/CoDLuaExporter/Models.cs @@ -144,6 +144,13 @@ public GameDefinition( string name, int luaPoolIndex, int fontPoolIndex, Type lu typeof( LuaFileOld ), typeof( FontFileOld ) ), + ["BLACKOP2"] = new GameDefinition( + "Black Ops 2", + 41, + -1, // font idx = 20 + typeof( LuaFileOld ), + typeof( FontFileOld ) + ), ["INFIWARF"] = new GameDefinition( "Infinite Warfare", 59,