Test: Difference between revisions

From OuroDev
No edit summary
No edit summary
Line 1: Line 1:
Test
Test


<syntaxhighlight lang="php">
<syntaxhighlight lang="c++">
<?php
void initGameChecksum()
// some php code
{
char *s,full_path[MAX_PATH];
strcpy(full_path,fileDataDir());
s = strrchr(full_path,'/');
if (s)
*s = 0;
strcat(full_path,"/CityOfHeroes.exe");
if (!checksumFile(full_path,correct_game_checksum))
{
ignore_checksum = 1;
printf("game checksum = 0, assuming dev mode\n");
}
}
</syntaxhighlight>
</syntaxhighlight>

Revision as of 22:16, 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,"/CityOfHeroes.exe");
	if (!checksumFile(full_path,correct_game_checksum))
	{
		ignore_checksum = 1;
		printf("game checksum = 0, assuming dev mode\n");
	}
}