Skip to content

Commit

Permalink
ExeReader: Replace i386 with x86
Browse files Browse the repository at this point in the history
Is a built-in symbol on Android and breaks the build
  • Loading branch information
Ghabry committed Dec 23, 2024
1 parent c2b7f71 commit aa213da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/exe_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ EXEReader::EXEReader(Filesystem_Stream::InputStream core) : corefile(std::move(c

switch (machine) {
case 0x14c:
file_info.machine_type = MachineType::i386;
file_info.machine_type = MachineType::x86;
break;
case 0x8664:
file_info.machine_type = MachineType::amd64;
Expand Down
4 changes: 2 additions & 2 deletions src/exe_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ class EXEReader {

enum class MachineType {
Unknown,
i386,
x86,
amd64
};

static constexpr auto kMachineTypes = lcf::makeEnumTags<MachineType>(
"Unknown",
"i386",
"x86",
"amd64"
);

Expand Down

0 comments on commit aa213da

Please sign in to comment.