Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
131 user(s) are online (103 user(s) are browsing Forums)

Members: 6
Guests: 125

jabirulo, AndreasM, skynet, Amigafreak02, billyfish, Yodaphone, more...

Support us!

Headlines

 
  Register To Post  

Version 1/2 of application.library window (SOLVED)
Quite a regular
Quite a regular


See User information
#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
If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: Version 1/2 of application.library window
Quite a regular
Quite a regular


See User information
As well as the code above, I was linking with libauto.a which caused this issue. No longer linking with libauto.a.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project