improve cmd

This commit is contained in:
西风逍遥游 committed 2021-10-24 22:37:07 -07:00
1 parent 3445b18b1f
commit a51708bb65
9 files changed
+229 -77

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ namespace physfs {
Filesystem::Filesystem() : fused(false), fusedSet(false) {
requirePath = {"?.lua", "?/init.lua"};
cRequirePath = {"??"};
if (auto* c = getModInst(eve,Cmdline)) init(c->getArg0().c_str());
if (auto* c = getModInst(eve::cmd,Cmdline)) init(c->getArgv(0).c_str());
else init(NULL);
}