Skip to content

Commit

Permalink
Extensions - Replace ace_parse_imagepath with SQF regexFind (#8243)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Oct 10, 2021
1 parent 64decdd commit 94c62d8
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 80 deletions.
Binary file removed ace_parse_imagepath.dll
Binary file not shown.
Binary file removed ace_parse_imagepath_x64.dll
Binary file not shown.
4 changes: 0 additions & 4 deletions addons/interact_menu/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,4 @@ class ACE_Extensions {
windows = 1;
client = 1;
};
class ace_parse_imagepath {
windows = 1;
client = 1;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ for "_index" from 0 to ((count _configPath) - 1) do {
_actionCondition = compile _actionCondition;
_actionMaxDistance = _actionMaxDistance + 0.1; //increase range slightly

//extension ~4x as fast:
private _iconImage = "ace_parse_imagepath" callExtension _actionDisplayNameDefault;
private _iconImage = ((_actionDisplayNameDefault regexFind ["[\w\-\\\/]+.paa/gi", 0]) param [0, [""]]) select 0;

private _actionOffset = [_actionPosition] call _fnc_getMemPointOffset;
private _memPointIndex = _memPoints find _actionPosition;
Expand Down
1 change: 0 additions & 1 deletion extensions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ add_subdirectory(break_line)
add_subdirectory(clipboard)
add_subdirectory(advanced_ballistics)
#add_subdirectory(medical) # After medical re-write this extension is no longer used
add_subdirectory(parse_imagepath)
add_subdirectory(artillerytables)

# Test Extension for dynamically loading/unloading built extensions; does not build in release
Expand Down
22 changes: 0 additions & 22 deletions extensions/parse_imagepath/CMakeLists.txt

This file was deleted.

51 changes: 0 additions & 51 deletions extensions/parse_imagepath/ace_parse_imagepath.cpp

This file was deleted.

0 comments on commit 94c62d8

Please sign in to comment.