18 Commits
Author SHA1 Message Date
Gleb Mazovetskiy 8c1a847f41 Remove utils/stdcompat/string_view.hpp 2023-08-14 09:59:14 +01:00
Gleb Mazovetskiy 5bf0b8bc96 Add more missing <cstdint> includes
https://github.com/diasurgical/devilutionX/pull/6095 only added includes
for `uint32_t`, this PR also adds the includes for the remaining
integral types.
2023-05-10 16:29:27 +01:00
Gleb Mazovetskiy 4fa3732526 Add missing <cstdint> includes
Done with the following script:

```ruby
Dir["Source/**/*.{h,c,cc,cpp,hpp}"].each do |path|
  v = File.read(path)
  next if !v.include?("uint32_t") || v.include?("cstdint")

  lines = v.lines
  line_num = if lines[2].start_with?(" *")
    lines.index { |l| l.start_with?(" */") } + 3
  else
    3
  end

  lines.insert(line_num, "#include <cstdint>\n")

  File.write(path, lines.join(""))
end
```

then fixed-up manually
2023-05-10 13:50:12 +01:00
Gleb Mazovetskiy 4cf0053ece Set underlying type for all the enums
Reduces rg99 binary size by 3 KiB.
2022-08-11 01:43:54 +02:00
ephphatha 42033f82f4 Use enum instead of int as bool for docking mode 2022-05-08 12:14:33 +02:00
ephphatha 7f15aa730d Move definition of ghMainWnd to utils/display.cpp
This variable is controlled/set by the code in that file, this also lets other files have more specific/relevant includes instead of the monolith that is diablo.h
2022-05-08 12:09:12 +02:00
staphen 56af849632 Use romfs on Switch for devilutionx.mpq 2022-04-09 03:23:42 +02:00
ephphatha f9ce2108f6 Use string_view for switch keyboard input 2022-03-20 23:55:17 +01:00
Gleb Mazovetskiy cacf55bb34 CMake: Split out platform libraries 2021-12-21 21:01:47 +00:00
Gleb Mazovetskiy d0ed505765 Move platforms asio includes to Source 2021-12-07 18:32:25 +01:00
Gleb MazovetskiyandAnders Jenbo 7e1fea6f76 clang-format all files in {Source,test}/
Also includes a few manual tweaks to comments and newlines for better results.

Co-authored-by: Anders Jenbo <[email protected]>
2021-11-24 23:44:12 +01:00
Anders Jenbo 799f1763af Performce UTF8 aware limited string copies 2021-11-22 03:28:51 +01:00
staphen 1d50db0246 Nintendo Switch: Remove link to rdimon library to fix file truncation 2021-08-28 02:26:06 +02:00
Anders Jenbo a7c7fa0030 Fully apply clang-tidy/format to all files 2021-07-03 16:41:43 -07:00
staphen 8fbe5efd9e Switch custom RNG for libsodium 2021-06-26 13:26:56 -07:00
staphen c5fc37eca2 Stub missing functions for Switch 2021-06-26 13:26:56 -07:00
Jmgr c33182d6de Modernize deprecated headers 2021-04-25 02:50:31 +02:00
Anders Jenbo 8c821e98d3 🚚 Restructure files 2021-04-16 03:57:22 +02:00