Exemple #1
0
int main(int argc, char *argv[])
{
	int os = 0;
	int err = 0;
	int java = 0;
	printf("Verifying the loader is in the same directory as minecraft.jar..\n");
	if (VerifyFileExists("minecraft.jar") != 1)
	{
		printf("Unable to detect minecraft.jar. Please put the loader into the minecraft folder and re-run the loader\n");
		err = 1;
	}
	else
	{
		printf("Attempting to detect which architexture is available..\n");
		os = GetOSType();
		printf("Attempting to detect which java version is available..\n");
		java = GetJavaTypeAndPath(os);
		printf("Attempting to launch Minecraft..\n");
		err = Launch(os, java);
	}
#ifdef _DEBUG
	getchar();
#else
	if (err != 0)
	{
		//We'll break if we get an error
		printf("Please press enter to exit\n");
		getchar();
	}
#endif
	return 0;
}
Exemple #2
0
String RPMData::GetName(void) const
{
   String name;

   switch(GetOSType()) {
   case OSTYPE::Unknown:
      name = "Unknown";

      break;
   case OSTYPE::Other:
      name = "Other";

      break;
   case OSTYPE::WIN95:
      name = "Microsoft Windows 95";

      break;
   case OSTYPE::WIN98:
      name = "Microsoft Windows 98";

      break;
   case OSTYPE::WINNT:
      name = "Microsoft Windows NT";

      break;
   case OSTYPE::Windows_2000:
      name = "Microsoft Windows 2000";

      break;
   case OSTYPE::Windows_Me:
      name = "Microsoft Windows Me";

      break;
   default:
      break;
   }

   return(name);
}
Exemple #3
0
String OperatingSystem::GetName(void) const
{
   String name;

   switch(GetOSType()) {
   case Unknown:
      name = "Unknown";

      break;
   case Other:
      name = "Other";

      break;
   case LINUX:
      name = "Linux";

      break;
   default:
      break;
   }

   return(name);
}