2025-02-16 15:46:54 +01:00
|
|
|
extern kernel32 {
|
2025-02-17 14:31:47 +01:00
|
|
|
SetConsoleCP(cp uint)
|
|
|
|
SetConsoleOutputCP(cp uint)
|
|
|
|
ExitProcess(code uint)
|
2025-02-16 15:46:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
const cp {
|
|
|
|
utf8 65001
|
|
|
|
}
|
|
|
|
|
|
|
|
init() {
|
|
|
|
kernel32.SetConsoleCP(cp.utf8)
|
|
|
|
kernel32.SetConsoleOutputCP(cp.utf8)
|
|
|
|
main.main()
|
|
|
|
exit()
|
|
|
|
}
|
|
|
|
|
|
|
|
exit() {
|
|
|
|
kernel32.ExitProcess(0)
|
|
|
|
}
|