Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
LDAsuku committed Nov 23, 2022
1 parent 96d515a commit 3cbba09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
GAME_RES_CUR_VERSION_BYTES = str(GAME_RES_CUR_VERSION).encode("utf8")
DESIGN_DATA_CUR_VERSION_BYTES = str(DESIGN_DATA_CUR_VERSION).encode("utf8")

with open("soggy_cat.png", "rb") as f:
soggy_cat_png = f.read()

class DispatchHandler(http.server.BaseHTTPRequestHandler):
def version_string(self):
return "broken pancake"
Expand Down Expand Up @@ -64,8 +67,7 @@ def do_GET(self):
self.send_header("Content-Type", "image/png")
self.send_header("Content-Disposition", "inline")
self.end_headers()
with open("soggy_cat.png", "rb") as f:
self.wfile.write(f.read())
self.wfile.write(soggy_cat_png)
elif url.path == "/favicon.ico":
self.send_response(404)
self.wfile.write(b"404 Not Found\n")
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
If you're going to chase clout on twitter by posting "leaks" with this, PLEASE credit the project.

# Soggy

Server software implementation for a game I forgot its name 💀
Expand Down Expand Up @@ -45,8 +47,6 @@ cmake -B build -G "Unix Makefiles"
cmake --build build -j8
```

Also: Don't use WSL. According to everyone who's tried, it doesn't work.

## Running

Put the `resources` directory in the current working directory and run. Enter `help` in the interactive prompt to see a list of commands.

0 comments on commit 3cbba09

Please sign in to comment.