driver cross-compilation

This commit is contained in:
2025-10-29 01:30:21 +02:00
parent 1a888aad7b
commit a22ab19a8c
15 changed files with 336 additions and 22 deletions

View File

@@ -70,6 +70,8 @@ public:
};
extern IFileSystem2 *filesystem2;
char *GetWindowsPath( const char *szPath );
char *GetPOSIXPath( const char *szPath );
//-----------------------------------------------------------------------------

View File

@@ -21,6 +21,7 @@ public:
virtual int Wait( void ) = 0;
};
extern IRunner *runner;
#endif

28
fpc/public/winerunner.h Normal file
View File

@@ -0,0 +1,28 @@
//================= Copyright kotofyt, All rights reserved ==================//
// Purpose: Run Windows applications using Wine. On native system this will use
// CWindowsRunner.
//===========================================================================//
#ifndef WINE_RUNNER_H
#define WINE_RUNNER_H
#include "runner.h"
#include "tier0/platform.h"
#include "tier1/utlvector.h"
#include "tier1/utlstring.h"
#define WINE_RUNNER_INTERFACE_NAME "WineRunner001"
abstract_class IWineRunner: public IRunner
{
public:
virtual int Run( CUtlString szName, CUtlVector<CUtlString>& args ) = 0;
virtual int Run( CUtlString szName, CUtlString szDirectory, CUtlVector<CUtlString>& args ) = 0;
virtual int Run( CUtlString szName, CUtlString szDirectory, CUtlVector<CUtlString>& args, CUtlVector<CUtlString>& environment ) = 0;
virtual int Wait( void ) = 0;
};
extern IWineRunner *winerunner;
#endif