Skip to content

Commit

Permalink
gsc-asm code
Browse files Browse the repository at this point in the history
  • Loading branch information
RektInator committed Sep 18, 2019
1 parent b6058ca commit ee37e44
Show file tree
Hide file tree
Showing 12 changed files with 2,646 additions and 1 deletion.
147 changes: 147 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
### Windows

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Shortcuts
*.lnk

### OSX

.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Visual Studio

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
build

# Visual Studio 2015 cache/options directory
.vs/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

### IDA
*.id0
*.id1
*.id2
*.nam
*.til

### Custom user files
# User scripts
user*.bat
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
![license](https://img.shields.io/github/license/ZoneTool/gsc-asm.svg)
![stars](https://img.shields.io/github/stars/ZoneTool/gsc-asm.svg)
[![discord](https://discordapp.com/api/guilds/290238678352134145/widget.png)](https://discord.gg/a6JM2Tv)
<p align="center"><img src="plutonium_logo.jpg" alt="Plutonium"/>

# gsc-asm
a gsc assembler for IW5 (Call of Duty: Modern Warfare 3)
gsc-asm, a gsc assembler/disassembler for IW5 (Call of Duty: Modern Warfare 3)

## Usage
``./gsc-asm.exe <options> <file>``

available options:
* ``-stdout``
* ``-disasm``
* ``-asm``
2 changes: 2 additions & 0 deletions generate.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
tools\premake5.exe vs2019
Binary file added plutonium_logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions premake5.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
workspace "gsc-asm"
location "./build"
objdir "%{wks.location}/obj"
targetdir "%{wks.location}/bin"
targetname "%{prj.name}-%{cfg.platform}-%{cfg.buildcfg}"
warnings "Off"

configurations {
"debug",
"release",
}

platforms {
"win32",
"win64",
}

filter "platforms:win32"
architecture "x86"
defines "CPU_32BIT"
filter {}

filter "platforms:win64"
architecture "x86_64"
defines "CPU_64BIT"
filter {}

buildoptions "/std:c++latest"
systemversion "latest"
symbols "On"
editandcontinue "Off"

flags {
"NoIncrementalLink",
"NoMinimalRebuild",
"MultiProcessorCompile",
"No64BitChecks"
}

configuration "windows"
defines {
"_WINDOWS",
"WIN32",
}
configuration{}

configuration "release"
optimize "Full"
defines {
"NDEBUG",
}
configuration{}

configuration "debug"
optimize "Debug"
defines {
"DEBUG",
"_DEBUG",
}
configuration {}

startproject "gsc-asm"

project "gsc-asm"
kind "ConsoleApp"
language "C++"

pchheader "stdafx.hpp"
pchsource "src/stdafx.cpp"

files {
"./src/**.h",
"./src/**.hpp",
"./src/**.cpp",
}

syslibdirs {
"./build/bin",
}

includedirs {
"./src",
"%{prj.location}/src",
}
Loading

0 comments on commit ee37e44

Please sign in to comment.