Who's Online |
45 user(s) are online ( 28 user(s) are browsing Forums)
Members: 1
Guests: 44
billyfish,
more...
|
|
Headlines |
-
reportplus.lha - utility/misc
Jan 22, 2021
-
pekkakana2.lha - game/platform
Jan 21, 2021
-
asplit.lha - utility/shell
Jan 20, 2021
-
earmark.lha - utility/text
Jan 20, 2021
-
flashmandelng.lha - graphics/misc
Jan 19, 2021
-
libwprintf.lha - development/library/misc
Jan 18, 2021
-
amiupdate_dan.lha - utility/workbench
Jan 18, 2021
-
thumbnailmaker.lha - video/misc
Jan 18, 2021
-
pythonssl.lha - library/misc
Jan 17, 2021
-
redeht_ita.lha - network/samba
Jan 17, 2021
|
|
|
Re: Porting to AmigaOS4 thread | Subject: Re: Porting to AmigaOS4 thread by Capehill on 2020/11/22 12:26:49
@Raziel
Quote: struct Library *AslBase = IExec->OpenLibrary(AslName, 50);
Don't open the library here.
Quote:
Is enough. AslBase shall be initialized to nullptr because it's a global variable.
Then open the library inside the showFileBrowser(), instead of:
Quote: AslBase = IExec->OpenLibrary(AslName, 50); if (AslBase) ...
Cosmetic: probably those NULLs should be converted to nullptr (not sure, check ScummVM coding guidelines). nullptr is what modern C++ prefers.
Quote: backends/dialogs/amigaos/amigaos-dialogs.cpp:111:56: warning: cast from type 'const value_type*' {aka 'const char*'} to type 'char*' casts away qualifiers [-Wcast-qual] char *newTitle = utf8ToLocal((char *)utf8Title.c_str());
Try to remove (char*) casting, it's bad. If utf8ToLocal doesn't modify "newTitle" cast unnecessary and in that case utf8ToLocal() should take "const char*" input parameter instead of "char*".
|
|