File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
TheForceEngine/TFE_Editor/LevelEditor Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -4386,6 +4386,24 @@ namespace LevelEditor
4386
4386
4387
4387
void play ()
4388
4388
{
4389
+ // For now assume Dark Forces - TODO: Fix for Outlaws support.
4390
+ size_t len = strlen (s_editorConfig.darkForcesPort );
4391
+ bool invalidPort = false ;
4392
+ if (len == 0 ) { invalidPort = true ; }
4393
+ #ifdef _WIN32
4394
+ char ext[32 ];
4395
+ FileUtil::getFileExtension (s_editorConfig.darkForcesPort , ext);
4396
+ if (strcasecmp (ext, " exe" ))
4397
+ {
4398
+ invalidPort = true ;
4399
+ }
4400
+ #endif
4401
+ if (invalidPort)
4402
+ {
4403
+ showMessageBox (" Error" , " You need to set a source port before you can test.\n Open the Level menu and choose Test Options to set." );
4404
+ return ;
4405
+ }
4406
+
4389
4407
StartPoint start = {};
4390
4408
start.pos = s_camera.pos ;
4391
4409
start.yaw = s_camera.yaw ;
You can’t perform that action at this time.
0 commit comments