PDA

View Full Version : [Mac Beta] Zelda Classic Launcher (ZCL, ZLaunch), Beta 1



ZoriaRPG
02-08-2018, 08:58 AM
Here are two packages, containing the first public Beta of Zelda Classic Launcher (ZLaunch, or ZCL) for MacOS X.

These betas are designed to work with ZC 2.50.2 for OSX.

Complete Package, with Zelda Classic and ZQuest (http://timelord.insomnia247.nl/zc/zc_dev/Zelda-Classic-2.50.2-with-ZCL-Beta-1.zip)

ZCL Standalone (http://timelord.insomnia247.nl/zc/zc_dev/ZCL-Mac-Beta-1-08FEB2018.zip)

Mac Users
Please try this and let me know if you run into any problems.

NOTICE: Please test this on a copy of your ZC and ZQuest app packages! This is still a beta, and I would not want anything to alter your base settings. The main ZC and ZQ app packages must have the names that are used in the ZIP package here; or the main download on ZC.com.

ZCL must be in the same directory as Zelda Classic.app and ZQuest Editor.app.

ZCL accesses the .cfg files inside the app bundles for ZC and ZQ. Be sure to make a backup of ZC and ZQuest before you use this on any primary installation of ZC for OSX.


Dev Notes

FWIW, I can see why Sean never ported this. Being able to run it on actual hardware aside, working out Mac pathing issues from the .app contents is a true joy.

This is how it works:


sZQ: string = '../../../ZQuest Editor.app';
sZQExe: string = '../../../ZQuest Editor.app/Contents/MacOS/ZQuest Editor';
sAppPath: string = Application.Location;
sAGcfg: string := '/../../../ag.cfg';

if not fileexists( sAppPath2 + sAGcfg) then
memo1.Lines.SaveToFile( sAppPath2 + sAGcfg );
end;

agcfg := Tinifile.Create(sAppPath2 + sAGcfg);

if fileexists(sAppPath2 + sZQ) then
begin
end
else
begin
label23.Visible := True;
speedbutton2.Enabled := False;
end;

process2.CommandLine := '"' + sAppPath2 + sZQexe + '"' + ' ' + zqsound;
process2.Execute;


You need to go up a few levels to exit the 'app' container, and to access config files inside other containers, you enter them. Trying to do ./pathname will put you on the user's home directory as ~/. :shrug: