mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-10-12 02:13:06 +00:00
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
20 lines
319 B
C++
20 lines
319 B
C++
/**
|
|
* @file menu.h
|
|
*
|
|
* Interface of functions for interacting with the main menu.
|
|
*/
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "multi.h"
|
|
|
|
namespace devilution {
|
|
|
|
extern uint32_t gSaveNumber;
|
|
|
|
bool mainmenu_select_hero_dialog(GameData *gameData);
|
|
void mainmenu_loop();
|
|
|
|
} // namespace devilution
|