#ifdef __amigaos4__ /* disable the screenblanker! */
struct Library *ApplicationBase = IExec->OpenLibrary((CONST_STRPTR)"application.library",52);
struct ApplicationIFace *IApplication = NULL;
if ( !ApplicationBase )
{
fprintf(stderr,"Failed to open application.library\n");
ret = -1;
goto RJD_ENDER;
}
else
{
IApplication = (struct ApplicationIFace*)IExec->GetInterface(ApplicationBase,(CONST_STRPTR)"application",2,NULL);
if(!IApplication)
{
fprintf(stderr,"Expected to be able to open Application Interface!\n");
ret = -1;
goto RJD_ENDER;
}
}
appId = IApplication->RegisterApplication( (CONST_STRPTR)"Mednafen",
REGAPP_URLIdentifier, "none",
REGAPP_Description, "Mednafen",
TAG_END);
if( appId )
{
IApplication->SetApplicationAttrs(appId,
APPATTR_AllowsBlanker,FALSE,
APPATTR_NeedsGameMode,TRUE,
TAG_END);
}
else
{
/* did not expect this! */
}
#endif /* __amigaos4__ */
When running a new build of Mednafen, I keep on getting the window popup with (paraphrasing): opened version 1 but used version 2 tags.
===
I created a small program that took only that code and built it and ran it with no issue.
===
Not sure why I get this message for Mednafen. Is IApplication _really_ somehow being given a version 1 interface!?
Edited by rjd324 on 2024/6/1 15:35:00