code style
This commit is contained in:
@ -361,14 +361,13 @@ int main(int argc, char **argv, char **envp)
|
|||||||
{
|
{
|
||||||
// dynamically load shared library
|
// dynamically load shared library
|
||||||
#ifdef DYNLOAD
|
#ifdef DYNLOAD
|
||||||
if( !uc_dyn_load(NULL, 0) )
|
if (!uc_dyn_load(NULL, 0)) {
|
||||||
{
|
printf("Error dynamically loading shared library.\n");
|
||||||
printf("Error dynamically loading shared library.\n");
|
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
||||||
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
printf("any other dependent dll/so files.\n");
|
||||||
printf("any other dependent dll/so files.\n");
|
printf("The easiest way is to place them in the same directory as this app.\n");
|
||||||
printf("The easiest way is to place them in the same directory as this app.\n");
|
return 1;
|
||||||
return 1;
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
nx_test();
|
nx_test();
|
||||||
|
@ -153,14 +153,13 @@ int main(int argc, char **argv, char **envp)
|
|||||||
{
|
{
|
||||||
// dynamically load shared library
|
// dynamically load shared library
|
||||||
#ifdef DYNLOAD
|
#ifdef DYNLOAD
|
||||||
if( !uc_dyn_load(NULL, 0) )
|
if (!uc_dyn_load(NULL, 0)) {
|
||||||
{
|
printf("Error dynamically loading shared library.\n");
|
||||||
printf("Error dynamically loading shared library.\n");
|
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
||||||
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
printf("any other dependent dll/so files.\n");
|
||||||
printf("any other dependent dll/so files.\n");
|
printf("The easiest way is to place them in the same directory as this app.\n");
|
||||||
printf("The easiest way is to place them in the same directory as this app.\n");
|
return 1;
|
||||||
return 1;
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
test_arm();
|
test_arm();
|
||||||
|
@ -100,14 +100,13 @@ int main(int argc, char **argv, char **envp)
|
|||||||
{
|
{
|
||||||
// dynamically load shared library
|
// dynamically load shared library
|
||||||
#ifdef DYNLOAD
|
#ifdef DYNLOAD
|
||||||
if( !uc_dyn_load(NULL, 0) )
|
if (!uc_dyn_load(NULL, 0)) {
|
||||||
{
|
printf("Error dynamically loading shared library.\n");
|
||||||
printf("Error dynamically loading shared library.\n");
|
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
||||||
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
printf("any other dependent dll/so files.\n");
|
||||||
printf("any other dependent dll/so files.\n");
|
printf("The easiest way is to place them in the same directory as this app.\n");
|
||||||
printf("The easiest way is to place them in the same directory as this app.\n");
|
return 1;
|
||||||
return 1;
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
test_arm64();
|
test_arm64();
|
||||||
|
@ -162,14 +162,13 @@ int main(int argc, char **argv, char **envp)
|
|||||||
{
|
{
|
||||||
// dynamically load shared library
|
// dynamically load shared library
|
||||||
#ifdef DYNLOAD
|
#ifdef DYNLOAD
|
||||||
if( !uc_dyn_load(NULL, 0) )
|
if (!uc_dyn_load(NULL, 0)) {
|
||||||
{
|
printf("Error dynamically loading shared library.\n");
|
||||||
printf("Error dynamically loading shared library.\n");
|
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
||||||
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
printf("any other dependent dll/so files.\n");
|
||||||
printf("any other dependent dll/so files.\n");
|
printf("The easiest way is to place them in the same directory as this app.\n");
|
||||||
printf("The easiest way is to place them in the same directory as this app.\n");
|
return 1;
|
||||||
return 1;
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
test_m68k();
|
test_m68k();
|
||||||
|
@ -147,14 +147,13 @@ int main(int argc, char **argv, char **envp)
|
|||||||
{
|
{
|
||||||
// dynamically load shared library
|
// dynamically load shared library
|
||||||
#ifdef DYNLOAD
|
#ifdef DYNLOAD
|
||||||
if( !uc_dyn_load(NULL, 0) )
|
if (!uc_dyn_load(NULL, 0)) {
|
||||||
{
|
printf("Error dynamically loading shared library.\n");
|
||||||
printf("Error dynamically loading shared library.\n");
|
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
||||||
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
printf("any other dependent dll/so files.\n");
|
||||||
printf("any other dependent dll/so files.\n");
|
printf("The easiest way is to place them in the same directory as this app.\n");
|
||||||
printf("The easiest way is to place them in the same directory as this app.\n");
|
return 1;
|
||||||
return 1;
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
test_mips_eb();
|
test_mips_eb();
|
||||||
|
@ -102,14 +102,13 @@ int main(int argc, char **argv, char **envp)
|
|||||||
{
|
{
|
||||||
// dynamically load shared library
|
// dynamically load shared library
|
||||||
#ifdef DYNLOAD
|
#ifdef DYNLOAD
|
||||||
if( !uc_dyn_load(NULL, 0) )
|
if (!uc_dyn_load(NULL, 0)) {
|
||||||
{
|
printf("Error dynamically loading shared library.\n");
|
||||||
printf("Error dynamically loading shared library.\n");
|
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
||||||
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
printf("any other dependent dll/so files.\n");
|
||||||
printf("any other dependent dll/so files.\n");
|
printf("The easiest way is to place them in the same directory as this app.\n");
|
||||||
printf("The easiest way is to place them in the same directory as this app.\n");
|
return 1;
|
||||||
return 1;
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
test_sparc();
|
test_sparc();
|
||||||
|
@ -814,14 +814,13 @@ int main(int argc, char **argv, char **envp)
|
|||||||
{
|
{
|
||||||
// dynamically load shared library
|
// dynamically load shared library
|
||||||
#ifdef DYNLOAD
|
#ifdef DYNLOAD
|
||||||
if( !uc_dyn_load(NULL, 0) )
|
if (!uc_dyn_load(NULL, 0)) {
|
||||||
{
|
printf("Error dynamically loading shared library.\n");
|
||||||
printf("Error dynamically loading shared library.\n");
|
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
||||||
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
printf("any other dependent dll/so files.\n");
|
||||||
printf("any other dependent dll/so files.\n");
|
printf("The easiest way is to place them in the same directory as this app.\n");
|
||||||
printf("The easiest way is to place them in the same directory as this app.\n");
|
return 1;
|
||||||
return 1;
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (argc == 2) {
|
if (argc == 2) {
|
||||||
|
@ -159,14 +159,13 @@ int main(int argc, char **argv, char **envp)
|
|||||||
{
|
{
|
||||||
// dynamically load shared library
|
// dynamically load shared library
|
||||||
#ifdef DYNLOAD
|
#ifdef DYNLOAD
|
||||||
if( !uc_dyn_load(NULL, 0) )
|
if (!uc_dyn_load(NULL, 0)) {
|
||||||
{
|
printf("Error dynamically loading shared library.\n");
|
||||||
printf("Error dynamically loading shared library.\n");
|
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
||||||
printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
|
printf("any other dependent dll/so files.\n");
|
||||||
printf("any other dependent dll/so files.\n");
|
printf("The easiest way is to place them in the same directory as this app.\n");
|
||||||
printf("The easiest way is to place them in the same directory as this app.\n");
|
return 1;
|
||||||
return 1;
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (argc == 2) {
|
if (argc == 2) {
|
||||||
|
Reference in New Issue
Block a user