Follow along with the video below to see how to install our site as a web app on your home screen.
Note: this_feature_currently_requires_accessing_site_using_safari
bool RunLuaFile( const char* scriptname )
{
char char_filename[ _MAX_PATH ];
char char_output_full_filename[ _MAX_PATH ];
strcpy( char_filename, scriptname );
filesystem->RelativePathToFullPath( char_filename, "MOD", char_output_full_filename, sizeof( char_output_full_filename ));
const char *constcharpointer = reinterpret_cast<const char *>( char_output_full_filename );
Msg( "constcharpointer = %s\n", constcharpointer );
if ( !filesystem->FileExists( constcharpointer ))
{
//cvar->ConsoleColorPrintf( LUA_ERROR_PRINT_COLOUR, "[Lua] IFileSystem Cannot find the file: %s\n", constcharpointer );
Warning( "\nFile doesn't exist\n" );
return false;
}
return true;
}