Skip to content

Commit

Permalink
[emulator] Make sure text section is properly fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Mar 22, 2024
1 parent 6469e28 commit a7c765c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ jobs:
run: |
sudo apt update
sudo apt upgrade -y
sudo apt install -y build-essential python3-dev python3-pip python3-wheel python3-setuptools
sudo apt install -y build-essential libegl1 libgl1-mesa-glx python3-dev python3-pip python3-wheel python3-setuptools
- name: "Install Pre-requisite (macOS)"
if: matrix.os == 'macos-latest'
run: |
env
- name: "Install Pre-requisite (Windows)"
if: matrix.os == 'windows-latest'
Expand Down
3 changes: 2 additions & 1 deletion cemu/emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,11 @@ def __populate_text_section(self) -> bool:
MEMORY_STACK_SECTION_NAME,
):
try:
text_section = self.find_section(secname)
self.find_section(secname)
except KeyError:
raise CemuEmulatorMissingRequiredSection(secname)

text_section = self.find_section(MEMORY_TEXT_SECTION_NAME)
info(f"Using text section {text_section}")

if not self.__generate_text_bytecode():
Expand Down

0 comments on commit a7c765c

Please sign in to comment.