Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Jan 24, 2019
2 parents 4dd743e + 56ca4da commit 6b91ff1
Show file tree
Hide file tree
Showing 29 changed files with 1,238 additions and 1,168 deletions.
66 changes: 0 additions & 66 deletions .gitignore

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![MIT](https://img.shields.io/packagist/l/doctrine/orm.svg?maxAge=2592000?style=plastic)](https://github.com/hugsy/cemu/blob/master/LICENSE) [![IRC](https://img.shields.io/badge/freenode-%23%23cemu-yellowgreen.svg)](https://webchat.freenode.net/?channels=##cemu) [![Python-Version](https://img.shields.io/pypi/pyversions/cemu.svg)](https://pypi.python.org/pypi/cemu) [![PyPi-Version](https://img.shields.io/pypi/v/cemu.svg)](https://pypi.python.org/pypi/cemu)

![cemu-linux](https://i.imgur.com/Imuxb1q.png)
![cemu-linux](https://i.imgur.com/7DI6BxR.png)

## Description ##

Expand Down Expand Up @@ -81,7 +81,7 @@ $ sudo ln -sf /path/to/libkeystone.so/found/above /usr/local/lib/libkeystone.so
If you are using OSX, I would highly recommand installing Capstone engine directly using `brew.sh` command instead of `pip`, as its version seems more up-to-date than the one on PyPI. Doing so, the installation should work out of the box:

```bash
$ brew install capstone
$ brew install capstone
$ pip3 install -U cemu
```

Expand All @@ -93,7 +93,7 @@ The fastest way for Windows is to install the packaged binaries for:
- Including the [Microsoft VC++ runtime library](https://www.microsoft.com/en-gb/download/details.aspx?id=40784)
- Capstone (http://www.capstone-engine.org/download/)
- Unicorn (http://www.unicorn-engine.org/download/)


Then spawn `cmd.exe` and install the missing Python packages using `pip`:

Expand Down
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ CEMU

|MIT| |IRC| |Python-Version| |PyPi-Version|

.. figure:: https://i.imgur.com/Imuxb1q.png

.. figure:: https://i.imgur.com/7DI6BxR.png
:alt: cemu-linux

cemu-linux
Expand Down Expand Up @@ -97,7 +98,7 @@ installation should work out of the box:

.. code:: bash
$ brew install capstone
$ brew install capstone
$ pip3 install -U cemu
Windows
Expand Down
14 changes: 0 additions & 14 deletions cemu.desktop

This file was deleted.

8 changes: 0 additions & 8 deletions cemu/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@
PROGNAME = 'cemu'
AUTHOR = 'hugsy'
EMAIL = '[email protected]'
VERSION = '0.2.2'
URL = 'https://github.com/{}/{}'.format(AUTHOR, PROGNAME)
ISSUES = 'https://github.com/{}/{}/issues'.format(AUTHOR, PROGNAME)
RELEASE_LINK = '{}/archive/{}.tar.gz'.format(URL, VERSION)
LICENSE = 'MIT'
2 changes: 1 addition & 1 deletion cemu/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def check_dependencies():
try:
__import__(d)
except ImportError:
print("[-] Missing required dependency '%s'" % d)
print("[-] Missing required dependency '{}'".format(d))
sys.exit(1)
return

Expand Down
6 changes: 3 additions & 3 deletions cemu/arch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ def syscalls(self):
if self.__syscalls:
return self.__syscalls

path = os.path.dirname(os.path.realpath(__file__)) + "/../syscalls"
fpath = "{}/{}.csv".format(path, self.syscall_filename)
cemu_directory = os.path.dirname(os.path.realpath(__file__))
path = os.sep.join([cemu_directory, os.sep, "..", os.sep, "syscalls"])
fpath = "{}{}{}.csv".format(path, os.sep, self.syscall_filename)
syscalls = {}

with open(fpath, 'r') as fd:
Expand All @@ -80,7 +81,6 @@ def syscalls(self):
def __eq__(self, x):
if not isinstance(x, Architecture):
return False

return self.name == x.name and self.endianness== x.endianness and self.syntax == x.syntax


Expand Down
22 changes: 22 additions & 0 deletions cemu/const.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import os


PROGNAME = 'cemu'
AUTHOR = 'hugsy'
EMAIL = '[email protected]'
VERSION = '0.3'
URL = 'https://github.com/{}/{}'.format(AUTHOR, PROGNAME)
ISSUES = 'https://github.com/{}/{}/issues'.format(AUTHOR, PROGNAME)
RELEASE_LINK = '{}/archive/{}.tar.gz'.format(URL, VERSION)
LICENSE = 'MIT'


WINDOW_SIZE = (1600, 800)
PKG_PATH = os.path.dirname(os.path.realpath(__file__))
ICON_PATH = "{}/img/icon.png".format(PKG_PATH)
EXAMPLE_PATH = "{}/examples".format(PKG_PATH)
TEMPLATE_PATH = "{}/templates".format(PKG_PATH)
TITLE = "CEmu - Cheap Emulator v.{}".format(VERSION)
HOME = os.getenv("HOME")
COMMENT_MARKER = ";;;"
PROPERTY_MARKER = "@@@"
Loading

0 comments on commit 6b91ff1

Please sign in to comment.