Skip to content
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

Refactored debugs and added console commands #2769

Merged
merged 3 commits into from
Sep 16, 2023
Merged

Conversation

schwiti6190
Copy link
Contributor

New console commands for printing settings:

  • cpSettingsPrintVehicle
  • cpSettingsPrintGenerator
  • cpSettingsPrintJob
  • cpSettingsPrintGlobal

New console commands for printing settings:
- cpSettingsPrintVehicle
- cpSettingsPrintGenerator
- cpSettingsPrintJob
- cpSettingsPrintGlobal
@schwiti6190 schwiti6190 requested a review from pvaiko September 14, 2023 18:41
---@param channel number
function CpUtil.debugFormat(channel, ...)
if CpDebug and CpDebug:isChannelActive(channel) then
CpUtil.internalPrint("dbg"..channel, ...)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are already at it, don't we want to get rid of this channel as a number, which isn't explicitly defined anywhere, I have no idea which number is which? Or replace it with short, meaningful string?

@Tensuko Tensuko merged commit 6adbbb4 into main Sep 16, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants