- removed ancient bcompat shim for translations/core.cfg file
- fixed msvc8 whining about BfReadString --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401770
This commit is contained in:
		
							parent
							
								
									8eb040a832
								
							
						
					
					
						commit
						737a359990
					
				| @ -729,20 +729,7 @@ void Translator::OnSourceModAllInitialized() | ||||
| 
 | ||||
| 	unsigned int id; | ||||
| 
 | ||||
| 	//backwards compatibility shim
 | ||||
| 	/* hack -- if core.cfg exists, exec it instead. */ | ||||
| 	char path[PLATFORM_MAX_PATH]; | ||||
| 	g_SourceMod.BuildPath(Path_SM, path, sizeof(path), "translations/core.cfg"); | ||||
| 	 | ||||
| 	if (g_LibSys.PathExists(path)) | ||||
| 	{ | ||||
| 		id = FindOrAddPhraseFile("core.cfg"); | ||||
| 	} | ||||
| 	else | ||||
| 	{ | ||||
| 	id = FindOrAddPhraseFile("core.phrases.txt"); | ||||
| 	} | ||||
| 
 | ||||
| 	g_pCorePhraseID = id; | ||||
| 	g_pCorePhrases = GetFileByIndex(id); | ||||
| } | ||||
|  | ||||
| @ -497,7 +497,7 @@ static cell_t smn_BfReadString(IPluginContext *pCtx, const cell_t *params) | ||||
| 	} | ||||
| 
 | ||||
| 	pCtx->LocalToPhysAddr(params[2], (cell_t **)&buf); | ||||
| 	pBitBuf->ReadString(buf, params[3], params[4], &numChars); | ||||
| 	pBitBuf->ReadString(buf, params[3], params[4] ? true : false, &numChars); | ||||
| 
 | ||||
| 	if (pBitBuf->IsOverflowed()) | ||||
| 	{ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user