--- a/hedgewars/uLocale.pas Tue May 17 23:18:08 2016 +0300
+++ b/hedgewars/uLocale.pas Tue May 17 23:29:49 2016 +0300
@@ -30,7 +30,7 @@
function GetEventString(e: TEventId): ansistring;
{$IFDEF HWLIBRARY}
-procedure LoadLocaleWrapper(path: pchar; filename: pchar); cdecl; export;
+procedure LoadLocaleWrapper(path: pchar; userpath: pchar; filename: pchar); cdecl; export;
{$ENDIF}
implementation
@@ -133,22 +133,9 @@
FormatA:= copy(fmt, 1, i - 1) + arg + FormatA(copy(fmt, i + 2, Length(fmt) - i - 1), arg)
end;
-{$IFDEF HWLIBRARY}
-procedure LoadLocaleWrapper(path: pchar; filename: pchar); cdecl; export;
+procedure LoadLocaleWrapper(path: pchar; userpath: pchar; filename: pchar); cdecl; export;
begin
-// FIXME
-{ PathPrefix := Strpas(path);
-
- uUtils.initModule(false);
- uVariables.initModule;
- uPhysFSLayer.initModule;
-}
LoadLocale(Strpas(filename));
-{
- uPhysFSLayer.freeModule;
- uVariables.freeModule;
- uUtils.freeModule;}
end;
-{$ENDIF}
end.