removal of HandleSys helper functions removed useless BaseContext stuff from Engine put SourceMod specific stuff in BaseContext cleaned up broken Handle code --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40267
		
			
				
	
	
		
			38 lines
		
	
	
		
			774 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			774 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#include <sourcemod>
 | 
						|
#include <handles>
 | 
						|
 | 
						|
public Plugin:myinfo = 
 | 
						|
{
 | 
						|
	name = "Test Plugin",
 | 
						|
	author = "BAILOPAN",
 | 
						|
	description = "Tests Stuff",
 | 
						|
	version = "1.0.0.0",
 | 
						|
	url = "http://www.sourcemod.net/"
 | 
						|
};
 | 
						|
 | 
						|
native PrintStuff(const String:buffer[]);
 | 
						|
 | 
						|
DoItAll()
 | 
						|
{
 | 
						|
	new String:buffer[PLATFORM_MAX_PATH];
 | 
						|
	new FileType:type;
 | 
						|
	
 | 
						|
	new Handle:dir = OpenDirectory("addons/stripper");
 | 
						|
	while (ReadDirEntry(dir, buffer, sizeof(buffer), type))
 | 
						|
	{
 | 
						|
		decl String:stuff[1024];
 | 
						|
		Format(stuff, sizeof(stuff), "Type: %d Dir: %s", _:type, buffer)
 | 
						|
		PrintStuff(stuff);
 | 
						|
	}
 | 
						|
	new Handle:copy = CloneHandle(dir);
 | 
						|
	CloseHandle(copy);
 | 
						|
	CloseHandle(dir);
 | 
						|
}
 | 
						|
 | 
						|
public bool:AskPluginLoad(Handle:myself, bool:late, String:error[], err_max)
 | 
						|
{
 | 
						|
	DoItAll();
 | 
						|
	
 | 
						|
	return true;
 | 
						|
}
 |