Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
70 user(s) are online (55 user(s) are browsing Forums)

Members: 1
Guests: 69

davebraco, 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 14:35:00
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.

Go to top

  Register To Post

 




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



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1
Pegasos2
X5000
X1000
A1222
Sam 440/460
Classic PowerPC Amiga
WinUAE emulation
Qemu emulation
Total Votes: 193
The poll will close at 2025/12/1 12:00
4 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project