Skip to content

Commit

Permalink
Initial revision
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 5, 2004
0 parents commit 4fb6090
Show file tree
Hide file tree
Showing 137 changed files with 48,369 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
256 changes: 256 additions & 0 deletions .gdb_history
@@ -0,0 +1,256 @@
n
p window
n
p myArray
p NSApp
p *NSApp
q
c
q
b ui_total_progress
r
n
p window
n
q
r
q
b printf
r
up
c
q
b ui_total_progress
r
n
p window
n
p myArray
q
r
up
q
b chdir_by_identifier
r
n
p id
n
p id
n
n
q
b chdir_by_identifier
r
n
n
n
p rc
n
n
n
n
q
b chdir_by_identifier
r
n
q
b chdir_by_identifier
r
n
p len
n
p len
p buf
n
p buf
q
r
q
b main
r
q
b main
r x y
n
n
n
s
n
n
p statbuf
q
b main
r x y
n
n
n
s
n
n
p/x statbuf.st_mode
n
n
p S_IFLNK
n
n
s
n
p/x statbuf.st_mode
q
p 0010000
p/x 0010000
p/x 0020000
p/x 0030000
p/x 0120000
p 0x81a4 & 0120000
p/x 0x81a4 & 0120000
p 0120000
q
p/x 120000
p/x 0120000
q
b chdir_by_identifier
r /Users/icculus/Desktop/test.mojopatch
n
p buf
n
n
s
n
n
p mem
n
n
n
s
n
s
n
n
p ptr
q
b chdir_by_identifier
r /Users/icculus/Desktop/test.mojopatch
n
p buf
n
s
n
n
n
s
n
s
n
n
p tag
p *tag
n
n
q
b parse_xml
r /Users/icculus/Desktop/test.mojopatch
n
p tag
p *tag
n
q
b parse_xml
r /Users/icculus/Desktop/test.mojopatch
n
p tag
n
n
n
n
q
b parse_xml
r /Users/icculus/Desktop/test.mojopatch
n
p tag
p value
p val
q
b parse_xml
r
q
b parse_xml
r /Users/icculus/Desktop/test.mojopatch
n
p ptr
n
q
b parse_xml
r /Users/icculus/Desktop/test.mojopatch
n
p tag
p val
q
b find_info_plist_version
r /Users/icculus/Desktop/test.mojopatch
n
q
b find_info_plist_version
r /Users/icculus/Desktop/test.mojopatch
n
q
b find_info_plist_version
r /Users/icculus/Desktop/test.mojopatch
n
p tag
p val
n
l
l
b 208
commands 2
end
d 2
l 208
b 210
commands 3
p tag
p val
end
c
n
n
n
c
n
n
c
n
n
p val
n
c
q
b main
r
s
q
b main
r
s
n
p buf
n
s
n
p ptr
n
cv
c
q
b main
r
s
n
p buf
n
n
s
n
p ptr
q
72 changes: 72 additions & 0 deletions Makefile
@@ -0,0 +1,72 @@

# Quick Makefile by ryan c. gordon. (icculus@clutteredmind.org)

CC := gcc
LINKER := gcc
BINDIR := bin
SRCDIR := .

platform := macosx

ifeq ($(strip $(platform)),macosx)
PLATFORMDEF := -DPLATFORM_UNIX -DPLATFORM_MACOSX
PLATFORMSRCS := platform_unix.c ui_carbon.c
LDFLAGS := -framework Carbon
endif

ifeq ($(strip $(platform)),win32)
PLATFORMDEF := -DPLATFORM_WIN32
PLATFORMSRCS := platform_win32.c ui_stdio.c
endif

ifeq ($(strip $(platform)),unix)
PLATFORMDEF := -DPLATFORM_UNIX
PLATFORMSRCS := platform_unix.c ui_stdio.c
endif

CFLAGS := $(PLATFORMDEF) -Wall -g -fsigned-char -fno-omit-frame-pointer -Os


MOJOPATCHSRCS := mojopatch.c md5.c $(PLATFORMSRCS)
OBJS1 := $(MOJOPATCHSRCS:.c=.o)
OBJS2 := $(OBJS1:.cpp=.o)
OBJS3 := $(OBJS2:.asm=.o)
OBJS4 := $(OBJS3:.m=.o)
MOJOPATCHOBJS := $(foreach f,$(OBJS4),$(BINDIR)/$(f))
MOJOPATCHSRCS := $(foreach f,$(MOJOPATCHSRCS),$(SRCDIR)/$(f))

.PHONY: all mojopatch clean distclean listobjs listsrcs

all : mojopatch

mojopatch : $(BINDIR)/mojopatch

$(BINDIR)/%.o: $(SRCDIR)/%.m
$(CC) -c -o $@ $< $(CFLAGS)

$(BINDIR)/%.o: $(SRCDIR)/%.cpp
$(CC) -c -o $@ $< $(CFLAGS)

$(BINDIR)/%.o: $(SRCDIR)/%.c
$(CC) -c -o $@ $< $(CFLAGS)

$(BINDIR)/mojopatch : $(BINDIR) $(MOJOPATCHOBJS)
$(LINKER) $(LDFLAGS) -o $@ $(MOJOPATCHOBJS)

$(BINDIR):
mkdir -p $(BINDIR)

distclean : clean

clean:
rm -rf $(BINDIR)

listsrcs:
@echo $(MOJOPATCHSRCS)

listobjs:
@echo $(MOJOPATCHOBJS)


# end of Makefile ...

30 changes: 30 additions & 0 deletions MojoPatch.app/Contents/Info.plist
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>mojopatch</string>
<key>CFBundleIdentifier</key>
<string>org.icculus.mojopatch</string>
<key>CFBundleIconFile</key>
<string>mojopatch.icns</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.0.1</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>NSMainNibFile</key>
<string>mojopatch</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>CFBundleName</key>
<string>MojoPatch</string>
</dict>
</plist>
Binary file added MojoPatch.app/Contents/MacOS/mojopatch
Binary file not shown.
Binary file added MojoPatch.app/Contents/MacOS/xdelta
Binary file not shown.
1 change: 1 addition & 0 deletions MojoPatch.app/Contents/PkgInfo
@@ -0,0 +1 @@
APPL????
@@ -0,0 +1,6 @@
/* Localized versions of Info.plist keys */

CFBundleName = "MojoPatch";
CFBundleShortVersionString = "mojopatch";
CFBundleGetInfoString = "MojoPatch";

Binary file added MojoPatch.app/Contents/Resources/mojopatch.icns
Binary file not shown.
4 changes: 4 additions & 0 deletions MojoPatch.app/Contents/Resources/mojopatch.nib/classes.nib

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4fb6090

Please sign in to comment.