-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some features/fixes #6
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6ea5fc9
Add a simple CMakeLists.txt to CoreCLR wrapper.
Fothsid bbba7ba
Add feature to disable/enable logging.
Fothsid 5b0366c
Fix backslash addition to the name of HDD file.
Fothsid 44c1ecc
Make path to the x86 version of CoreCLR a little bit universal.
Fothsid 850ad66
Remove useless logging.
Fothsid 7a5487c
Some changes.
Fothsid c5a1cc5
Use SDL2's Message Boxes instead of WinForms in .NET Core build.
Fothsid edc6620
- Moved all DEBUG build logging configurations before config file is…
Fothsid d0afe72
Remove references
Fothsid fce76de
moo
Fothsid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.Net; | ||
using System.Runtime.Serialization; | ||
|
||
namespace CLRDEV9.Config | ||
{ | ||
[DataContract(Namespace = "http://schemas.datacontract.org/2004/07/CLRDEV9")] | ||
class ConfigLogging | ||
{ | ||
[DataMember] | ||
public bool Test = true; | ||
[DataMember] | ||
public bool DEV9 = true; | ||
[DataMember] | ||
public bool SPEED = true; | ||
[DataMember] | ||
public bool SMAP = true; | ||
[DataMember] | ||
public bool ATA = true; | ||
[DataMember] | ||
public bool Winsock = true; | ||
[DataMember] | ||
public bool NetAdapter = true; | ||
[DataMember] | ||
public bool UDPSession = true; | ||
[DataMember] | ||
public bool DNSPacket = true; | ||
[DataMember] | ||
public bool DNSSession = true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.IO; | ||
|
||
namespace SDL2 | ||
{ | ||
enum MessageBoxFlags | ||
{ | ||
Error = 0x00000010, | ||
Warning = 0x00000020, | ||
Information = 0x00000040 | ||
} | ||
|
||
static class MessageBox | ||
{ | ||
[DllImport("SDL2")] | ||
private static extern int SDL_ShowSimpleMessageBox(uint flags, string title, string message, IntPtr window); | ||
|
||
public static int Show(MessageBoxFlags flags, string title, string message) | ||
{ | ||
return SDL_ShowSimpleMessageBox((uint)flags, title, message, new IntPtr(0)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(clrdev9) | ||
|
||
add_library(${PROJECT_NAME} SHARED | ||
coreclrhost.h | ||
DEV9.h | ||
DEV9.cpp | ||
PSE.h | ||
PSE.cpp | ||
) | ||
|
||
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32") | ||
target_link_libraries(${PROJECT_NAME} | ||
m | ||
rt | ||
dl | ||
pthread | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do ConfigLogging's defaults apply correctly when loading an older config file (that lacks the entry)?
I remember having issues relating to that in the past.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If config file lacks the entry, it applies default values. (at least on my machine)
However, if you manually add required entries, it still applies default values until you let it recreate config file. (maybe I just did it in wrong order?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC the entries in the file have to be in a specific order for settings to be read. I'm only concerned about updating an old file, and that seems to work.