Skip to content

Commit ee37e44

Browse files
committed
gsc-asm code
1 parent b6058ca commit ee37e44

File tree

12 files changed

+2646
-1
lines changed

12 files changed

+2646
-1
lines changed

.gitignore

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
### Windows
2+
3+
# Windows image file caches
4+
Thumbs.db
5+
ehthumbs.db
6+
7+
# Folder config file
8+
Desktop.ini
9+
10+
# Recycle Bin used on file shares
11+
$RECYCLE.BIN/
12+
13+
# Windows Installer files
14+
*.cab
15+
*.msi
16+
*.msm
17+
*.msp
18+
19+
# Shortcuts
20+
*.lnk
21+
22+
### OSX
23+
24+
.DS_Store
25+
.AppleDouble
26+
.LSOverride
27+
28+
# Icon must end with two \r
29+
Icon
30+
31+
# Thumbnails
32+
._*
33+
34+
# Files that might appear on external disk
35+
.Spotlight-V100
36+
.Trashes
37+
38+
# Directories potentially created on remote AFP share
39+
.AppleDB
40+
.AppleDesktop
41+
Network Trash Folder
42+
Temporary Items
43+
.apdisk
44+
45+
### Visual Studio
46+
47+
# User-specific files
48+
*.suo
49+
*.user
50+
*.userosscache
51+
*.sln.docstates
52+
53+
# User-specific files (MonoDevelop/Xamarin Studio)
54+
*.userprefs
55+
56+
# Build results
57+
build
58+
59+
# Visual Studio 2015 cache/options directory
60+
.vs/
61+
62+
# MSTest test Results
63+
[Tt]est[Rr]esult*/
64+
[Bb]uild[Ll]og.*
65+
66+
*_i.c
67+
*_p.c
68+
*_i.h
69+
*.ilk
70+
*.meta
71+
*.obj
72+
*.pch
73+
*.pdb
74+
*.pgc
75+
*.pgd
76+
*.rsp
77+
*.sbr
78+
*.tlb
79+
*.tli
80+
*.tlh
81+
*.tmp
82+
*.tmp_proj
83+
*.log
84+
*.vspscc
85+
*.vssscc
86+
.builds
87+
*.pidb
88+
*.svclog
89+
*.scc
90+
91+
# Visual C++ cache files
92+
ipch/
93+
*.aps
94+
*.ncb
95+
*.opendb
96+
*.opensdf
97+
*.sdf
98+
*.cachefile
99+
100+
# Visual Studio profiler
101+
*.psess
102+
*.vsp
103+
*.vspx
104+
*.sap
105+
106+
# TFS 2012 Local Workspace
107+
$tf/
108+
109+
# Guidance Automation Toolkit
110+
*.gpState
111+
112+
# Visual Studio cache files
113+
# files ending in .cache can be ignored
114+
*.[Cc]ache
115+
# but keep track of directories ending in .cache
116+
!*.[Cc]ache/
117+
118+
# Others
119+
~$*
120+
*~
121+
*.dbmdl
122+
*.dbproj.schemaview
123+
*.pfx
124+
*.publishsettings
125+
126+
# Backup & report files from converting an old project file
127+
# to a newer Visual Studio version. Backup files are not needed,
128+
# because we have git ;-)
129+
_UpgradeReport_Files/
130+
Backup*/
131+
UpgradeLog*.XML
132+
UpgradeLog*.htm
133+
134+
# SQL Server files
135+
*.mdf
136+
*.ldf
137+
138+
### IDA
139+
*.id0
140+
*.id1
141+
*.id2
142+
*.nam
143+
*.til
144+
145+
### Custom user files
146+
# User scripts
147+
user*.bat

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
1+
![license](https://img.shields.io/github/license/ZoneTool/gsc-asm.svg)
2+
![stars](https://img.shields.io/github/stars/ZoneTool/gsc-asm.svg)
3+
[![discord](https://discordapp.com/api/guilds/290238678352134145/widget.png)](https://discord.gg/a6JM2Tv)
4+
<p align="center"><img src="plutonium_logo.jpg" alt="Plutonium"/>
5+
16
# gsc-asm
2-
a gsc assembler for IW5 (Call of Duty: Modern Warfare 3)
7+
gsc-asm, a gsc assembler/disassembler for IW5 (Call of Duty: Modern Warfare 3)
8+
9+
## Usage
10+
``./gsc-asm.exe <options> <file>``
11+
12+
available options:
13+
* ``-stdout``
14+
* ``-disasm``
15+
* ``-asm``

generate.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
tools\premake5.exe vs2019

plutonium_logo.jpg

31.7 KB
Loading

premake5.lua

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
workspace "gsc-asm"
2+
location "./build"
3+
objdir "%{wks.location}/obj"
4+
targetdir "%{wks.location}/bin"
5+
targetname "%{prj.name}-%{cfg.platform}-%{cfg.buildcfg}"
6+
warnings "Off"
7+
8+
configurations {
9+
"debug",
10+
"release",
11+
}
12+
13+
platforms {
14+
"win32",
15+
"win64",
16+
}
17+
18+
filter "platforms:win32"
19+
architecture "x86"
20+
defines "CPU_32BIT"
21+
filter {}
22+
23+
filter "platforms:win64"
24+
architecture "x86_64"
25+
defines "CPU_64BIT"
26+
filter {}
27+
28+
buildoptions "/std:c++latest"
29+
systemversion "latest"
30+
symbols "On"
31+
editandcontinue "Off"
32+
33+
flags {
34+
"NoIncrementalLink",
35+
"NoMinimalRebuild",
36+
"MultiProcessorCompile",
37+
"No64BitChecks"
38+
}
39+
40+
configuration "windows"
41+
defines {
42+
"_WINDOWS",
43+
"WIN32",
44+
}
45+
configuration{}
46+
47+
configuration "release"
48+
optimize "Full"
49+
defines {
50+
"NDEBUG",
51+
}
52+
configuration{}
53+
54+
configuration "debug"
55+
optimize "Debug"
56+
defines {
57+
"DEBUG",
58+
"_DEBUG",
59+
}
60+
configuration {}
61+
62+
startproject "gsc-asm"
63+
64+
project "gsc-asm"
65+
kind "ConsoleApp"
66+
language "C++"
67+
68+
pchheader "stdafx.hpp"
69+
pchsource "src/stdafx.cpp"
70+
71+
files {
72+
"./src/**.h",
73+
"./src/**.hpp",
74+
"./src/**.cpp",
75+
}
76+
77+
syslibdirs {
78+
"./build/bin",
79+
}
80+
81+
includedirs {
82+
"./src",
83+
"%{prj.location}/src",
84+
}

0 commit comments

Comments
 (0)