Skip to content

Commit

Permalink
windows adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
R3tr0BoiDX committed Oct 14, 2023
1 parent a3481ee commit ca3b750
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ There are two way for you to install this. You can download precompiled binaries

```json
{

"library_path": "/path/to/your/location/where/to/save/patched/file/",
"launch_program": "/path/to/application/to/launch/patched/file/with"
}
```

> :warning: Windows handels its path then Linuxa and you will need to escape your paths! They will look something like this: `"sfc_path": "C:\\Users\\User\\Games\\baserom.us.sfc`
## Future ideas

*In order of importance:*
Expand Down
6 changes: 3 additions & 3 deletions build.windows.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# May need to run:
# May need to run in order be be able to execute:
# Set-ExecutionPolicy RemoteSigned

# Create a virtual environment
Expand All @@ -13,11 +13,11 @@ pyinstaller smwc-browser.spec

# Copy the config file
Write-Host "Copying the config file..."
Copy-Item .\config.example.json .\dist\smwc-browser\config.example.json
Copy-Item .\config.example.json .\dist\config.example.json

# Copy the media folder
Write-Host "Copying the media folder..."
Copy-Item .\media .\dist\smwc-browser\media -Recurse
Copy-Item .\media .\dist\media -Recurse

# Zipping the dist folder
Write-Host "Zipping the dist folder..."
Expand Down
1 change: 1 addition & 0 deletions source/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def init_singleton(self):
self.config = self.read_json(Path(CONFIG_PATH))
except FileNotFoundError as error:
LoggerManager().logger.critical(error)
print(error)
sys.exit(1)

def read_json(self, config_file: Path) -> dict:
Expand Down

0 comments on commit ca3b750

Please sign in to comment.