Comments (4)
from armascriptcompiler.
Not just security, this will also lead to incorrect in-game paths.
Arma 3 base files have the same issue, resulting in
/temp/bin/A3/Functions_F/Ambient/fn_ambientAnim.sqf
instead of
\A3\Functions_F\Ambient\fn_ambientAnim.sqf
from armascriptcompiler.
The problem is that the "root" what would often be a p-drive root. Is unknown.
We can try finding it by looking for PBOPREFIX, which might solve most cases (doesn't solve our vanilla A3 case)
Instead of that, I'll add "rootPathMapping" config entry.
They will map physical paths to virtual paths.
So in your case the root path might be
"C:/Users/username/Appdata/Local/Temp/hemtt/DEV_CBA_A3/asc/source" -> "\x\cba"
Such that your file instead of
/Users/username/Appdata/Local/Temp/hemtt/DEV_CBA_A3/asc/source/addons/common/fnc_test.sqf
will be translated to
\x\cba\addons/common/fnc_test.sqf
from armascriptcompiler.
Also important note on this, this changes how the outputPath is handled.
result file is outputPath/virtualPath.
Because the virtualPath was previously bugged, it would output to example
P:/Users/username/Appdata/Local/Temp/hemtt/DEV_CBA_A3/asc/source/addons/common/fnc_test.sqfc
But with the fix, it will now output to
P:\x\cba\addons/common/fnc_test.sqf
from armascriptcompiler.
Related Issues (18)
- Optimize && operator
- Implement pragma to ignore file for compilation HOT 1
- Output path doesn't use relative names HOT 1
- Params const optimization is not a constant in all cases HOT 1
- Script compiler doesn't recognize the new deleteVehicelCrew alternative syntax HOT 2
- Stuck on infinite loop in some scripts
- Print warning on scalar constant truncation
- sqfc script not found issue HOT 1
- Allow defining a config with a parameter
- ASC #if propressor fails with ERR HOT 1
- 2.12 command list
- Incorrect slash in filepaths
- Cannot compile scripts with infinity numbers
- Detect #if __has_include HOT 2
- sqfc.json. Consistent slash direction in different sections. HOT 4
- Cannot handle files that are not on a pdrive properly HOT 1
- Cleanup optimizer, better/more safer pattern matching
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from armascriptcompiler.