remove v2ray_asset_dir

This commit is contained in:
armv9
2024-07-13 15:37:07 +09:00
parent 7aa863b881
commit 375ffec58d
8 changed files with 14 additions and 87 deletions

View File

@@ -141,13 +141,7 @@ namespace NekoGui_sys {
void CoreProcess::Start() {
show_stderr = false;
// set extra env
auto v2ray_asset_dir = NekoGui::FindCoreAsset("geoip.dat");
if (!v2ray_asset_dir.isEmpty()) {
v2ray_asset_dir = QFileInfo(v2ray_asset_dir).absolutePath();
env << "XRAY_LOCATION_ASSET=" + v2ray_asset_dir;
}
//
// cwd: same as GUI, at ./config
ExternalProcess::Start();
write((NekoGui::dataStore->core_token + "\n").toUtf8());
}