#include "asmrigs/tokenparser.h" #include "asmrigs/as.h" #include "tier0/commandline.h" #include "tier2/ifilesystem.h" int main( int argc, char **argv ) { CommandLine()->CreateCommandLine(argc, argv); CreateInterfaceFn filesystemFactory = Sys_GetFactory("filesystem_std"); filesystem = (IFileSystem*)filesystemFactory(FILESYSTEM_INTERFACE_VERSION, NULL); IFileHandle *pFile = filesystem->Open(argv[1], FILEMODE_READ); const char *szFileContents = filesystem->ReadString(pFile); filesystem->Close(pFile); Assemble(szFileContents, {}); return 0; }