Skip to content

Commit

Permalink
changed dependency locations to be relative and ignoring sdl2 folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-MD committed Mar 3, 2024
1 parent 402af7b commit d7e2d6e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,6 @@ MigrationBackup/
.ionide/

# Fody - auto-generated XML schema
FodyWeavers.xsd
FodyWeavers.xsd

SDl2/
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Welcome to the Simple Monochrome GameBoy Emulator! This project is a straightfor
## Features

- **Easy-to-Understand Code**: The emulator is designed with clarity in mind, with extensive comments throughout the codebase to explain its functionality.
- **Efficient**: Consumes very low memory through the use of things like bitfields and can run at very high FPS.
- **Controller Support**: Supports xbox and PS controller as well as keyboard, click [here](#controls) for mapping.

## Controls
Expand All @@ -37,18 +36,18 @@ Welcome to the Simple Monochrome GameBoy Emulator! This project is a straightfor

## Getting Started

### Running as Windows App
This can simply be done by downloading the executable under Releases. I've also included the necessary dll's which will need to be in the same folder. Simply drag a rom file into the window and the game will start up. Enjoy!

### Running in Visual Studio

Ensure you have SDL2 installed on your system. Follow the instructions below based on your operating system:

##### Windows:

1. Download the SDL2 development libraries for Visual Studio from [here](https://github.com/libsdl-org/SDL/releases/tag/release-2.30.0).
2. Extract the downloaded files and copy the contents to a directory on your system.
3. In Visual Studio, open your project and navigate to `Project Properties` > `Configuration Properties` > `VC++ Directories`.
4. Add the directory containing the SDL2 header files to the "Include Directories" field.
5. Add the directory containing the SDL2 `.lib` files to the "Library Directories" field.
6. Finally, add `SDL2.lib` and `SDL2main.lib` to the "Additional Dependencies" field under `Linker` > `Input`.
1. Download the SDL2 development libraries for Visual Studio from [here](https://github.com/libsdl-org/SDL/releases/tag/release-2.30.0). It will be named similar to 'SDL2-devel-X.XX.X-VC.zip'.
2. Extract the downloaded files and copy the contents to the gbEmu directory where all the source files are located.
3. Rename the folder to SDL2.

## Compatibility

Expand Down
8 changes: 4 additions & 4 deletions gbEmu/gbEmu.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<IncludePath>C:\Users\61481\Desktop\SDL2-2.28.5\include;$(IncludePath)</IncludePath>
<LibraryPath>C:\Users\61481\Desktop\SDL2-2.28.5\lib\x64;$(LibraryPath)</LibraryPath>
<IncludePath>$(ProjectDir)\SDL2\include;$(IncludePath)</IncludePath>
<LibraryPath>$(ProjectDir)\SDL2\lib\x64;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<IncludePath>C:\Users\61481\Desktop\SDL2-2.28.5\include;$(IncludePath)</IncludePath>
<LibraryPath>C:\Users\61481\Desktop\SDL2-2.28.5\lib\x64;$(LibraryPath)</LibraryPath>
<IncludePath>$(ProjectDir)\SDL2\include;$(IncludePath)</IncludePath>
<LibraryPath>$(ProjectDir)\SDL2\lib\x64;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand Down

0 comments on commit d7e2d6e

Please sign in to comment.