Describe the bug
There is a problem with scriptfiles. Probably my problem is bad reading of the documentation. But I can't work with scriptfiles.
I tried to put scriptfiles into the amx/scriptfiles, and amx-mygamemode/scriptfiles
I tried to move amx into /resources/amx and put file there.
But all my moves didn't work.
To reproduce
Just try to read data from scriptfiles. Or try to launch something like https://github.com/Open-GTO/Open-GTO
Expected behaviour
It must work fine. The files from script files must be available.
Additional context
|
// Then check if it exists in the main scriptfiles folder |
|
fs::path scriptfilespath = fs::path("mods/deathmatch/resources/amx/scriptfiles") / filename; |
|
if(exists(scriptfilespath)) |
|
{ |
|
return scriptfilespath.string(); |
|
} |
|
|
|
// Otherwise default to amx's resource folder - make sure the folder |
|
// where the file is expected exists |
|
fs::path folder = respath; |
|
folder.remove_filename(); |
|
create_directories(folder); |
|
return respath.string(); |
Describe the bug
There is a problem with scriptfiles. Probably my problem is bad reading of the documentation. But I can't work with scriptfiles.
I tried to put scriptfiles into the
amx/scriptfiles, andamx-mygamemode/scriptfilesI tried to move amx into
/resources/amxand put file there.But all my moves didn't work.
To reproduce
Just try to read data from scriptfiles. Or try to launch something like https://github.com/Open-GTO/Open-GTO
Expected behaviour
It must work fine. The files from script files must be available.
Additional context
amx/amx-deps/src/util.cpp
Lines 207 to 219 in 1cb22d5