SRL Archive - S.M.A.R.T.

SMART World number to prefix converter


Waddo

2008-07-16 08:26:06

This is what is used by smartsetupex, but has been modded by me.

Can be used to get the world prefix's easily in the event that smartsetupex does not work.

program New;
var
prefix:string;
begin
prefix := ReadINI('World' + readln('Enter the world number'), 'Prefix', AppPath + 'includes\SRL\SCSS\worlds.ini');
if(prefix = '')then
begin
writeln('Invalid world number or corrupted world list. Please review your settings');
TerminateScript;
end else
writeln(prefix);
end.