Commit graph

28 commits

Author SHA1 Message Date
Giovanni Bajo
5431cd25b3 cen64: cleanup console/windowed support
Currently, the experience of cen64 binaries of Windows is not the
greatest, to be kind. If you get the binary and double-click on it,
you get nothing (no feedback whatsoever). If you run it from the
console, you get nothing (no command line help is shown). I am not sure
how Windows users ever manage to use it.

This happens because the binary is linked as a windowed application,
but when run with no command line applications, it exits after printing
the help with printf, which does nothing since no console is
attached to the windowed application.

This PR improves the usability on Windows. It compiles cen64 has a
console application (as was meant to be used), so that the help text
or any other stdout/stderr output is now visible on console. Moreover,
to provide a decent experience to users double-clicking on the
binary, it displays an error message explaining that it should be run
from the command line instead.
2022-03-19 22:59:20 +01:00
Giovanni Bajo
87ed667c38 Show Windows console when isviewer is present. 2021-09-06 23:35:40 +02:00
Christopher Bonhage
8f64dcd8b3 Implement RTC write support
* Set local time offset when writing to Joybus or 64DD RTC.
* Refactor get_local_time to use ISO C Time APIs.

Special thanks to @jago85 and @LuigiBlood for their research!
2021-09-04 22:02:29 +02:00
peterlemon
6278d46fb7 fix implicit decleration of keyboard functions on windows 2018-09-10 22:39:26 +01:00
Thomas Lercher
f27a35aa32 Remove windows support for setthread_name alltogether 2018-05-06 22:45:58 +02:00
Thomas Lercher
87e4c99e35 Fix windows build which APIs which don't feature 'SetThreadName' 2018-05-06 22:32:50 +02:00
Thomas Lercher
8dfae37edb Fix thread_setname handling for macOS and older Windows APIs 2018-05-05 23:01:35 +02:00
Thomas Lercher
c16a317b3d Add thread names 2018-05-05 17:43:36 +02:00
queueRAM
93e956fba6 Verify calloc return value for RAM saves files 2018-02-24 18:29:09 -08:00
queueRAM
9c5c5bb1fb Verify save file options for entries in cart DB
If an entry in the cartridge database specifies use of a save type, then
verify that save type is present in the options. If not, warn and allocate
the save file in RAM.

Fixes #76
2018-02-20 05:55:20 +00:00
Tyler J. Stachecki
ac8f2283af Use a different version of cpuid functions. 2017-02-15 19:04:53 -05:00
Mike Ryan
abca698a75 core: add cpuid fetching code from 4996031 2017-02-14 16:44:18 -08:00
Tyler J. Stachecki
322ac0c934 Another fix for MSVC builds. 2016-06-26 17:20:20 -04:00
Simon Eriksson
135a6cab5e Change default window size and aspect to 640*474.
Fixes vertical stretching issues when the N64 framebuffer
has 240 or 480 lines.
2016-03-06 13:56:13 -05:00
Mike Ryan
cfd2336443 time: move get_local_time out to platform-specific dir
Patched DD code to make use of this code. Untested on Windows.
2016-02-05 21:44:42 -05:00
Tyler J. Stachecki
d753c37512 save_file patch from izy. 2016-01-30 14:52:25 -05:00
Tyler J. Stachecki
54230639ce Fix typo in WinAPI cen64_cv_wait(...).
This fixes -multithread on Windows.
2016-01-27 00:26:34 -05:00
Tyler J. Stachecki
b0082df3ca Add experimental multithreading support. 2016-01-25 01:10:10 -05:00
Tyler J. Stachecki
1c5360b97a Implement open_gb_save for WinAPI's save_file. 2016-01-24 23:12:04 -05:00
Tyler J. Stachecki
76c633598a Implement save_file for WinAPI. 2016-01-24 21:58:15 -05:00
Derek "Turtle" Roe
8b89df2fdc See long description
Replaced all references to simulation with emulation
Updated copyright year
Updated .gitignore to reduce chances of random files being uploaded to
the repo
Added .gitattributes to normalize all text files, and to ignore binary
files (which includes the logo and the NEC PDF)
2015-07-01 18:44:21 -05:00
Tyler Stachecki
dc336ecfd1 Fix a WinAPI VirtualFree bug.
Thanks go out to izy for this commit.
2015-06-11 08:19:24 -04:00
Tyler J. Stachecki
391b967725 Work on cleaning up the build system somewhat. 2015-05-16 17:15:19 -04:00
Tyler J. Stachecki
db673be5c2 Mutexes seem to result in better performance? 2015-05-16 15:51:35 -04:00
Tyler J. Stachecki
9a9388400f Commit the new WinAPI user interface.
Streamline the Windows version of the source. There is
some breakage with regard to the console window and other
odds and ends.
2015-05-16 15:51:29 -04:00
Tyler J. Stachecki
b5fbc3d939 Add low-level memory allocation interfaces. 2015-05-16 15:50:46 -04:00
Tyler J. Stachecki
926f02a84c Migrate keycodes into new directories. 2015-05-16 15:50:31 -04:00
Tyler J. Stachecki
6d4d8a442a Commit a WinAPI implementation of cen64_gl_*. 2015-05-16 15:50:27 -04:00