mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-08-21 18:15:42 -05:00
File list filtering: If no files, return a newline.
This commit is contained in:
@@ -231,6 +231,9 @@ class NintendoNasHTTPServerHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
||||
if matched == True:
|
||||
output += line + '\r\n'
|
||||
|
||||
if output == '':
|
||||
# if nothing matches, at least return a newline; Pokemon BW at least expects this and will error without it
|
||||
output = '\r\n'
|
||||
|
||||
return output
|
||||
|
||||
|
||||
Reference in New Issue
Block a user