Uuh, probably. I'm incredibly tired right now.

Can you use any other functions from the filesystem interface without 
errors?

Olivier Hamel wrote:
> Tom Leighton wrote:
>   
>> How are you using the filesystem interface? Have you hooked it in any 
>> way, or does the server plugin interface come with a filesystem 
>> interface already?
>>
>> Just that you shouldn't get a privileged instruction error just because 
>> of the stuff you pass to AddSearchPath.
>>
>> You could try using:
>>
>> const char *test_addon = "CitSkins"; // Citizen Skins
>>
>> instead of:
>>
>> const char test_addon[50] = "CitSkins"; // Citizen Skins
>>
>>
>> but also remember that clients won't run this code, so as a server 
>> plugin you won't get very far if the client doesn't have this content in 
>> their game folders, and if you forced a client to download the whole of 
>> counter-strike content im sure they wouldn't be very happy :P
>>   
>>     
> Well, this was a SP experiment, the filesystem interface was loaded using:
>
> bool CEmptyServerPlugin::Load(CreateInterfaceFn interfaceFactory, 
> CreateInterfaceFn gameServerFactory)
> {
>     ConnectTier1Libraries(&interfaceFactory, 1);
>     ConnectTier2Libraries(&interfaceFactory, 1);
>
>     engine = 
> (IVEngineServer*)interfaceFactory(INTERFACEVERSION_VENGINESERVER, NULL);
>
>     filesystem = (IFileSystem 
> *)interfaceFactory(FILESYSTEM_INTERFACE_VERSION, NULL);
>
>     MathLib_Init(2.2f, 2.2f, 0.0f, 2.0f);
>     ConVar_Register(0);
>     return true;
> }
>
>
> 'Just that you shouldn't get a privileged instruction error just because 
> of the stuff you pass to AddSearchPath.'
>
> Uhh, did you mean:
> 'You shouldn't get a privileged instruction error just because of the stuff 
> you pass to AddSearchPath.'?
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>   

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to