fix linux executable name

This commit is contained in:
Lion Kortlepel 2024-09-23 23:12:31 +02:00
parent 244d27341f
commit e348d59a7e
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -97,7 +97,7 @@ void StartGame(std::string Dir) {
#elif defined(__linux__)
void StartGame(std::string Dir) {
int status;
std::string filename = (Dir + "/BinLinux/BeamNG.drive.x64");
std::string filename = (Dir + "/BinLinux/BeamNG.x64");
char* argv[] = { filename.data(), NULL };
pid_t pid;
int result = posix_spawn(&pid, filename.c_str(), NULL, NULL, argv, environ);