Skip to content

Commit

Permalink
Add missing includes, Fix script_version build set, Update HEMTT config
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpas committed May 16, 2023
1 parent d72d8ac commit 3bc46af
Show file tree
Hide file tree
Showing 13 changed files with 449 additions and 231 deletions.
2 changes: 1 addition & 1 deletion .hemtt/hooks/pre_build/01_set_version.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ HEMTT_VFS.join("addons").join("main_a3").join("CfgMods.hpp").create_file().write
print("addons/main_a3/CfgMods.hpp version set");

let scriptversion = HEMTT_VFS.join("addons").join("main").join("script_version.hpp").open_file().read();
scriptversion.replace("000000", HEMTT.project().version().build()); // TODO date %y%m%d (eg. 220912)
scriptversion.replace("000000", HEMTT.project().version().build().to_string()); // TODO date %y%m%d (eg. 220912)
HEMTT_VFS.join("addons").join("main").join("script_version.hpp").create_file().write(scriptversion);
print("addons/main/script_version.hpp build set");
8 changes: 4 additions & 4 deletions .hemtt/project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ include = [
"LICENSE.md",
"logo_cba_ca.paa",
"meta.cpp",
"userconfig",
"userconfig/**",
]

[version]
git_hash = 0

[asc]
enabled = true
enabled = false
exclude = [
"/initsettings.sqf",
"/initkeybinds.sqf",
Expand All @@ -32,5 +32,5 @@ exclude = [
[hemtt.config]
preset = "Hemtt"

#[hemtt.release]
#folder = "CBA_A3"
[hemtt.release]
folder = "CBA_A3"
2 changes: 1 addition & 1 deletion addons/diagnostic/fnc_isDebugConsoleAllowed.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ if (str missionConfigFile == "A3\Missions_F_Bootcamp\Scenarios\Arsenal.VR\descri
if (!isMultiplayer && {getNumber (missionConfigFile >> "enableDebugConsoleSP") == 1}) exitWith {true};

call {
#include "\a3\functions_f\Debug\fn_isDebugConsoleAllowed.sqf";
#include "\a3\functions_f\debug\fn_isDebugConsoleAllowed.sqf";
};
222 changes: 1 addition & 221 deletions addons/strings/fnc_decodeURL.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,226 +20,6 @@ Author:
commy2
---------------------------------------------------------------------------- */

#define UTF8_TABLE [\
["%20"," "],\
["%21","!"],\
["%22",""""],\
["%23","#"],\
["%24","$"],\
["%26","&"],\
["%27","'"],\
["%28","("],\
["%29",")"],\
["%2a","*"],\
["%2b","+"],\
["%2c",","],\
["%2d","-"],\
["%2e","."],\
["%2f","/"],\
["%30","0"],\
["%31","1"],\
["%32","2"],\
["%33","3"],\
["%34","4"],\
["%35","5"],\
["%36","6"],\
["%37","7"],\
["%38","8"],\
["%39","9"],\
["%3a",":"],\
["%3b",";"],\
["%3c","<"],\
["%3d","="],\
["%3e",">"],\
["%3f","?"],\
["%40","@"],\
["%41","A"],\
["%42","B"],\
["%43","C"],\
["%44","D"],\
["%45","E"],\
["%46","F"],\
["%47","G"],\
["%48","H"],\
["%49","I"],\
["%4a","J"],\
["%4b","K"],\
["%4c","L"],\
["%4d","M"],\
["%4e","N"],\
["%4f","O"],\
["%50","P"],\
["%51","Q"],\
["%52","R"],\
["%53","S"],\
["%54","T"],\
["%55","U"],\
["%56","V"],\
["%57","W"],\
["%58","X"],\
["%59","Y"],\
["%5a","Z"],\
["%5b","["],\
["%5c","\"],\
["%5d","]"],\
["%5e","^"],\
["%5f","_"],\
["%60","`"],\
["%61","a"],\
["%62","b"],\
["%63","c"],\
["%64","d"],\
["%65","e"],\
["%66","f"],\
["%67","g"],\
["%68","h"],\
["%69","i"],\
["%6a","j"],\
["%6b","k"],\
["%6c","l"],\
["%6d","m"],\
["%6e","n"],\
["%6f","o"],\
["%70","p"],\
["%71","q"],\
["%72","r"],\
["%73","s"],\
["%74","t"],\
["%75","u"],\
["%76","v"],\
["%77","w"],\
["%78","x"],\
["%79","y"],\
["%7a","z"],\
["%7b","{"],\
["%7c","|"],\
["%7d","}"],\
["%7e","~"],\
["%e2%82%ac","`"],\
["%e2%80%9a",""],\
["%c6%92","ƒ"],\
["%e2%80%9e",""],\
["%e2%80%a6",""],\
["%e2%80%a0",""],\
["%e2%80%a1",""],\
["%cb%86","ˆ"],\
["%e2%80%b0",""],\
["%c5%a0","Š"],\
["%e2%80%b9",""],\
["%c5%92","Œ"],\
["%c5%bd","Ž"],\
["%e2%80%98",""],\
["%e2%80%99",""],\
["%e2%80%9c",""],\
["%e2%80%9d",""],\
["%e2%80%a2",""],\
["%e2%80%93",""],\
["%e2%80%94",""],\
["%cb%9c","˜"],\
["%e2%84",""],\
["%c5%a1","š"],\
["%e2%80",""],\
["%c5%93","œ"],\
["%c5%be","ž"],\
["%c5%b8","Ÿ"],\
["%c2%a1","¡"],\
["%c2%a2","¢"],\
["%c2%a3","£"],\
["%c2%a4","¤"],\
["%c2%a5","¥"],\
["%c2%a6","¦"],\
["%c2%a7","§"],\
["%c2%a8","¨"],\
["%c2%a9","©"],\
["%c2%aa","ª"],\
["%c2%ab","«"],\
["%c2%ac","¬"],\
["%c2%ae","®"],\
["%c2%af","¯"],\
["%c2%b0","°"],\
["%c2%b1","±"],\
["%c2%b2","²"],\
["%c2%b3","³"],\
["%c2%b4","´"],\
["%c2%b5","µ"],\
["%c2%b6",""],\
["%c2%b7","·"],\
["%c2%b8","¸"],\
["%c2%b9","¹"],\
["%c2%ba","º"],\
["%c2%bb","»"],\
["%c2%bc","¼"],\
["%c2%bd","½"],\
["%c2%be","¾"],\
["%c2%bf","¿"],\
["%c3%80","À"],\
["%c3%81","Á"],\
["%c3%82","Â"],\
["%c3%83","Ã"],\
["%c3%84","Ä"],\
["%c3%85","Å"],\
["%c3%86","Æ"],\
["%c3%87","Ç"],\
["%c3%88","È"],\
["%c3%89","É"],\
["%c3%8a","Ê"],\
["%c3%8b","Ë"],\
["%c3%8c","Ì"],\
["%c3%8d","Í"],\
["%c3%8e","Î"],\
["%c3%8f","Ï"],\
["%c3%90","Ð"],\
["%c3%91","Ñ"],\
["%c3%92","Ò"],\
["%c3%93","Ó"],\
["%c3%94","Ô"],\
["%c3%95","Õ"],\
["%c3%96","Ö"],\
["%c3%97","×"],\
["%c3%98","Ø"],\
["%c3%99","Ù"],\
["%c3%9a","Ú"],\
["%c3%9b","Û"],\
["%c3%9c","Ü"],\
["%c3%9d","Ý"],\
["%c3%9e","Þ"],\
["%c3%9f","ß"],\
["%c3%a0","à"],\
["%c3%a1","á"],\
["%c3%a2","â"],\
["%c3%a3","ã"],\
["%c3%a4","ä"],\
["%c3%a5","å"],\
["%c3%a6","æ"],\
["%c3%a7","ç"],\
["%c3%a8","è"],\
["%c3%a9","é"],\
["%c3%aa","ê"],\
["%c3%ab","ë"],\
["%c3%ac","ì"],\
["%c3%ad","í"],\
["%c3%ae","î"],\
["%c3%af","ï"],\
["%c3%b0","ð"],\
["%c3%b1","ñ"],\
["%c3%b2","ò"],\
["%c3%b3","ó"],\
["%c3%b4","ô"],\
["%c3%b5","õ"],\
["%c3%b6","ö"],\
["%c3%b7","÷"],\
["%c3%b8","ø"],\
["%c3%b9","ù"],\
["%c3%ba","ú"],\
["%c3%bb","û"],\
["%c3%bc","ü"],\
["%c3%bd","ý"],\
["%c3%be","þ"],\
["%c3%bf","ÿ"],\
["%%","%"],\
["%25","%"]\
]

params [["_string", "", [""]]];
if (_string isEqualTo "") exitWith {""};

Expand All @@ -248,7 +28,7 @@ private _return = _cache getVariable _string;

if (isNil "_return") then {
_return = _string;

// Only replace if there is at least one character to replace
if ("%" in _return) then {
{
Expand Down
Loading

0 comments on commit 3bc46af

Please sign in to comment.