diff --git a/BasicDD.exe b/archive/BasicDD.exe similarity index 100% rename from BasicDD.exe rename to archive/BasicDD.exe diff --git a/BasicDD.exe.csv b/archive/BasicDD.exe.csv similarity index 100% rename from BasicDD.exe.csv rename to archive/BasicDD.exe.csv diff --git a/archive/demo/anatyda.exe b/archive/demo/anatyda.exe new file mode 100644 index 000000000..c27200e36 Binary files /dev/null and b/archive/demo/anatyda.exe differ diff --git a/archive/demo/chillfix.exe b/archive/demo/chillfix.exe new file mode 100644 index 000000000..6404242aa Binary files /dev/null and b/archive/demo/chillfix.exe differ diff --git a/effect.exe b/archive/demo/effect.exe similarity index 100% rename from effect.exe rename to archive/demo/effect.exe diff --git a/monolife/BASS.DLL b/archive/demo/monolife/BASS.DLL similarity index 100% rename from monolife/BASS.DLL rename to archive/demo/monolife/BASS.DLL diff --git a/monolife/MONOLIFE.IT b/archive/demo/monolife/MONOLIFE.IT similarity index 100% rename from monolife/MONOLIFE.IT rename to archive/demo/monolife/MONOLIFE.IT diff --git a/monolife/monolife.dat b/archive/demo/monolife/monolife.dat similarity index 100% rename from monolife/monolife.dat rename to archive/demo/monolife/monolife.dat diff --git a/monolife/monolife.exe.orig b/archive/demo/monolife/monolife.exe similarity index 100% rename from monolife/monolife.exe.orig rename to archive/demo/monolife/monolife.exe diff --git a/monolife/monolife.txt b/archive/demo/monolife/monolife.txt similarity index 100% rename from monolife/monolife.txt rename to archive/demo/monolife/monolife.txt diff --git a/psi_mofo.exe b/archive/demo/psi_mofo.exe similarity index 100% rename from psi_mofo.exe rename to archive/demo/psi_mofo.exe diff --git a/win003.exe b/archive/demo/win003.exe similarity index 100% rename from win003.exe rename to archive/demo/win003.exe diff --git a/archive/monolife/BASS.DLL b/archive/monolife/BASS.DLL new file mode 100644 index 000000000..387764938 Binary files /dev/null and b/archive/monolife/BASS.DLL differ diff --git a/archive/monolife/MONOLIFE.IT b/archive/monolife/MONOLIFE.IT new file mode 100644 index 000000000..f27ac3e46 Binary files /dev/null and b/archive/monolife/MONOLIFE.IT differ diff --git a/archive/monolife/monolife.dat b/archive/monolife/monolife.dat new file mode 100644 index 000000000..d7755c482 Binary files /dev/null and b/archive/monolife/monolife.dat differ diff --git a/monolife/monolife.exe b/archive/monolife/monolife.exe similarity index 100% rename from monolife/monolife.exe rename to archive/monolife/monolife.exe diff --git a/archive/monolife/monolife.exe.orig b/archive/monolife/monolife.exe.orig new file mode 100644 index 000000000..cd184087e Binary files /dev/null and b/archive/monolife/monolife.exe.orig differ diff --git a/msvcrt.dll b/archive/win2k/msvcrt.dll similarity index 100% rename from msvcrt.dll rename to archive/win2k/msvcrt.dll diff --git a/winmine.exe b/archive/win2k/winmine.exe similarity index 100% rename from winmine.exe rename to archive/win2k/winmine.exe diff --git a/zig.exe b/archive/zig.exe similarity index 100% rename from zig.exe rename to archive/zig.exe diff --git a/zip.exe b/archive/zip.exe similarity index 100% rename from zip.exe rename to archive/zip.exe diff --git a/zip.exe.csv b/archive/zip.exe.csv similarity index 100% rename from zip.exe.csv rename to archive/zip.exe.csv diff --git a/bundle.js b/bundle.js index 01c5e41ef..21523c060 100644 --- a/bundle.js +++ b/bundle.js @@ -1185,17 +1185,6 @@ function __wbg_get_imports() { return ret; }, arguments); }; - imports.wbg.__wbg_log_21bd4d15c3d236fe = function(arg0, arg1, arg2, arg3) { - let deferred0_0; - let deferred0_1; - try { - deferred0_0 = arg2; - deferred0_1 = arg3; - arg0.log(arg1, getStringFromWasm0(arg2, arg3)); - } finally { - wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); - } - }; imports.wbg.__wbg_read_ca96830ec9aacdcf = function(arg0, arg1, arg2) { const ret = arg0.read(getArrayU8FromWasm0(arg1, arg2)); return ret; @@ -1358,12 +1347,16 @@ function __wbg_get_imports() { arg0.drawImage(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); }, arguments); }; - imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { - const ret = debugString(arg1); - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len1; - getInt32Memory0()[arg0 / 4 + 0] = ptr1; + imports.wbg.__wbg_log_21bd4d15c3d236fe = function(arg0, arg1, arg2, arg3) { + let deferred0_0; + let deferred0_1; + try { + deferred0_0 = arg2; + deferred0_1 = arg3; + arg0.log(arg1, getStringFromWasm0(arg2, arg3)); + } finally { + wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); + } }; imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function() { @@ -1399,6 +1392,13 @@ function __wbg_get_imports() { return ret; }, arguments); }; + imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { + const ret = debugString(arg1); + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; imports.wbg.__wbindgen_throw = function(arg0, arg1) { throw new Error(getStringFromWasm0(arg0, arg1)); }; diff --git a/index.html b/index.html index 9c538a92e..8c893b6ec 100644 --- a/index.html +++ b/index.html @@ -52,29 +52,171 @@

retrowin32

See the README for more.

-

demos

-

None of these fully work, but here are some demos (click 'run'):

+ +

demoscene

+

+

+ +
+ Anatyda + (from + + pouet.net) + +
+
+ Anatyda by Astral (1999) +
status: works but slow +
+ +
+ chillin + (from + + pouet.net) + +
+
+ chillin by Haujobb (2000) +
status: colors are wrong; stuck in first scene +
+ +
+ effect #8 + (from + + pouet.net) + +
+
+ effect #8 by Infuse Project & Trinity (1999) + +
+ +
+ mofo + (from + + pouet.net) + +
+
+ mofo by Psikorp (1999) + +
+ +
+ Monolife + (from + + pouet.net) + +
+
+ Monolife by Hatha (1997) +
status: stuck on first scene, possibly audio related +
+ +
+ Win4k + (from + + pouet.net) + +
+
+ Win4k by Power Flower Crew (2000) + +
+ +
+

+ +

other

+

+

+ +
+ Minesweeper + (from + + Windows 2000) + +
+
+ the classic Windows game + +
+ +
+

+ +

retrowin32 test

+

+

+ +
+ callback test + (from + + retrowin32) + +
+
+ tests x86 calling Windows calling x86 + +
+ +
+ DirectDraw spinning car + (from + + DirectDraw tutorial) + +
+
+ simplest DirectDraw app + +
+ +
+ gdi test + (from + + retrowin32) + +
+
+ empty window Rust GDI program + +
+ +
+ zig hello world + (from + + retrowin32) + +
+
+ trivial Zig program + +
+ +
+ zip/unzip round trip + (from + + retrowin32) + +
+
+ retrowin32's own performance test + +
+ +
+

+ - - \ No newline at end of file diff --git a/local/exe/callback/callback.exe b/local/exe/callback/callback.exe new file mode 100755 index 000000000..7467b1cbe Binary files /dev/null and b/local/exe/callback/callback.exe differ diff --git a/local/exe/zig_hello/hello.exe b/local/exe/zig_hello/hello.exe new file mode 100755 index 000000000..21dab0b0a Binary files /dev/null and b/local/exe/zig_hello/hello.exe differ diff --git a/local/target/i586-pc-windows-msvc/release/gdi.exe b/local/target/i586-pc-windows-msvc/release/gdi.exe new file mode 100755 index 000000000..d7b5f9f31 Binary files /dev/null and b/local/target/i586-pc-windows-msvc/release/gdi.exe differ diff --git a/local/target/i586-pc-windows-msvc/release/zip.exe b/local/target/i586-pc-windows-msvc/release/zip.exe new file mode 100755 index 000000000..3b51047a3 Binary files /dev/null and b/local/target/i586-pc-windows-msvc/release/zip.exe differ diff --git a/unpacked.exe b/unpacked.exe deleted file mode 100644 index ebe00b3e6..000000000 Binary files a/unpacked.exe and /dev/null differ diff --git a/wasm.wasm b/wasm.wasm index a8445d88c..50ef366ae 100644 Binary files a/wasm.wasm and b/wasm.wasm differ