1 (* Copyright (C) Doom 2D: Forever Developers
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, version 3 of the License ONLY.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 *)
15 {$INCLUDE a_modes.inc}
16 {.$MODE OBJFPC}
19 interface
26 implementation
28 uses
29 {$IFDEF WINDOWS}
30 Windows,
31 {$ENDIF}
32 utils;
35 {$IFDEF WINDOWS}
37 begin
40 else
43 {$ELSE}
44 {$LINKLIB c}
48 {$ENDIF}
51 begin
55 (* Get system username already in cp1251 *)
58 begin
59 {$IF DEFINED(WINDOWS)}
61 {$ELSEIF DEFINED(UNIX)}
63 {$ELSE}
65 {$ENDIF}
66 (* invalidate username with non-cp1251 symbols *)
69 begin
73 end