Files
DucielandClaude Opus 5.5 327c658587 In-game settings window and minimap button; live settings (0.9.0)
- DucielPerf addon embedded in the DLL (always served, listed in the addon
  list): minimap button and /ducielperf (/dperf) open a window with
  Performance, Diagnostics, Features (module switches, world markers on
  me/target/clear, interact key bindings, loot all corpses) and Status tabs.
- settings.cpp: one table of every ducielperf.cfg setting with live apply
  where possible; DucielPerf_SettingInfo / GetSetting / SetSetting.
  config_set_int writes ducielperf.cfg keeping comments and other keys.
- Live switches: decompression, file cache, Lua strings, SavedVariables
  buffering, frame raising and clickthrough keep their hooks and call the
  client's code while off. New keys: inflate, filecache, luastrings,
  alloctrack, worldmarkers, interact, clickthrough, transmogfix, exitfix,
  minimap, minimap_angle.
- Tests: test_config (cfg writing), test_addon (the addon on a mock WoW API
  in Lua 5.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:02:46 +01:00

15 lines
507 B
C

// Runs Lua 5.0 files in order (base, table, string, math libraries), for tests/addon.
#include <stdio.h>
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
int main(int argc, char **argv) {
lua_State *L = lua_open();
luaopen_base(L); luaopen_table(L); luaopen_string(L); luaopen_math(L);
lua_settop(L, 0);
for (int i = 1; i < argc; i++) {
if (luaL_loadfile(L, argv[i]) || lua_pcall(L, 0, 0, 0)) { printf("ERROR: %s\n", lua_tostring(L, -1)); return 1; }
}
return 0;
}