Difference between revisions of "Test"

From OuroDev
Line 9: Line 9:
 
if (s)
 
if (s)
 
*s = 0;
 
*s = 0;
strcat(full_path,"/CityOfHeroes.exe");
+
strcat(full_path,"/Some.exe");
 
if (!checksumFile(full_path,correct_game_checksum))
 
if (!checksumFile(full_path,correct_game_checksum))
 
{
 
{

Revision as of 22:18, 26 April 2019

Test

void initGameChecksum()
{
	char	*s,full_path[MAX_PATH];
	strcpy(full_path,fileDataDir());
	s = strrchr(full_path,'/');
	if (s)
		*s = 0;
	strcat(full_path,"/Some.exe");
	if (!checksumFile(full_path,correct_game_checksum))
	{
		ignore_checksum = 1;
		printf("game checksum = 0, assuming dev mode\n");
	}
}