From cdc4dc7ffd6651f15877bc6c12e57b1aff745382 Mon Sep 17 00:00:00 2001 From: vcdiff <181155601+vcdiff@users.noreply.github.com> Date: Wed, 29 Oct 2025 04:54:15 -0700 Subject: [PATCH] add bo2 lua duming --- src/CoDLuaExporter/LuaExporter.cs | 2 +- src/CoDLuaExporter/Models.cs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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,